FOAF / XML Parser 2004-03-16 - By Ted Patrick
Back No Problem! ;)
If I hadn't have made the same mistake myself, I couldn't have helped.
May the FOAF be with you!
Cheers,
Theodore E. Patrick PowerSDK - Code for a distributed world http://www.powersdk.com > Hello Ted, > > Tuesday, March 16, 2004, 2:17:41 PM, you wrote: > > TP> Namespace support is the most likely problem. > > TP> Pathnames can contain ":" but you cannot access them > without using > TP> [] or eval as follows: > > TP> Xobj = MyXML.toObject() > > TP> //this will fail as : is illegal in path > TP> Xobj.foaf:knows.foaf:Person.foaf:nick._value > > TP> //this will work as strings are evaled at each object node > TP> Xobj['foaf:knows']['foaf:Person']['foaf:nick']._value > > Thank you very much, it works with this solution. I thought I > was doing it that way.
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Supported by Fig Leaf Software =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Be sure to check the archives and the wiki: http://chattyfig.figleaf.com/ =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:107124 =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe send a blank e-mail to: Normal Mode: flashcoders-unsubscribe@(protected) Digest Mode: flashcoders-digest-unsubscrive@(protected)
|
|