Paradox Convention 2003 | Paradox and XML |
|
item
elements by navigating the DOM
tree for the RSS document in code now that is has been loaded, but there is
a better way : passing the parser an XPath selection query asking for just
the elements one is interested in.rss
element), and
each element node (as opposed to attributes and other node types) adds a level
to that pathitem
elements, one can pass such
an XPath expresion to the parser from ObjectPAL:
var nl OleAuto endVar [...] nl = oDoc^selectNodes ("/rss/channel/item")
nl
are a DOM
"NodeList", containing a collection of all the subtree root nodes matching
the XPath expression.selectNodes
is applied defines the context in relation to which the path is defined.© 2003 Frédéric G. MARAND - OSInet |