From: <pa...@bo...> - 2002-04-19 17:58:27
|
ir...@ms... (Mike Orr) wrote: > >On Fri, Apr 19, 2002 at 12:14:15PM -0400, Jeff Johnson wrote: >> >> I haven't checked out pyrxp yet but have you all tried XPath? It's >> really easy to access XML info with it. > >No, what's xpath? ... Hmm, Parnassus lists three xpath packages (xml_indexer, >a 4Suite tool, and PyXPath). Which do you recommend? >http://www.vex.net/parnassus/apyllo.py?so=d&find=xpath From my understanding, XPath is just a convenient way of addressing known locations in an XML document. Indeed, it's used extensively in XSLT and can be quite powerful. It's certainly hard to define what convenience is where XML processing is concerned. Personally, I'm more and more against converting XML documents to other representations (or accessing them as those representations), and I don't think it's particularly hard to use certain parts of the DOM API to find, process or extract parts of XML documents. However, there are some issues (text section handling being a good example) which are irrelevant for certain applications and where it should be possible to "optimise away" the tedious code that results from having to handle them. Paul |