[XML-SIG] xmlpickle.py ?!
uche.ogbuji@fourthought.com
uche.ogbuji@fourthought.com
Tue, 08 Aug 2000 21:15:11 -0600
> BTW, how would one access "Mike" in this XML file without reverting to
> positional indexing ?
>
> <dictionary>
> <item>
> <key>Mike</key>
> <value><address>1234 Main Street</address></value>
> </item>
> </dictionary>
Hmm? No positional indexing neede, I'd think:
xml.xpath.Evaluate('string(/dictionary/item/key)')
would return "Mike".
Maybe I misunderstand you.
> It seems that these XPath lookups have to be context senstive...
They do, but how does that imply "positional indexing"?
--
Uche Ogbuji Principal Consultant
uche.ogbuji@fourthought.com +1 303 583 9900 x 101
Fourthought, Inc. http://Fourthought.com
4735 East Walnut St, Ste. C, Boulder, CO 80301-2537, USA
Software-engineering, knowledge-management, XML, CORBA, Linux, Python