> -----Original Message-----
> From: peter [mailto:[EMAIL PROTECTED]]
> Does anybody know where I can get an example of a VC++ XPath routine that
> returns a NodeList ? Please provide anything with a *concrete* source code
> example, thanks. Why ? I'm quite a newbie at VC++ and there's only so much
> geek talk that I can handle :)
>
See the attachment: SimpleDOMXPathAPI.cpp Think of it more as a proof of
concept
that DOM_Node -> XPath -> XObject -> DOM_NodeList CAN BE done; it's by no
means
perfect. All feedback is appreciated. :)
> Furthermore, why do we have XalanNode and DOM_Node at the same time ?
As I understand it, the Xerces classes (DOM_Node, DOM_NodeList, etc.) are
great for general purpose XML parsing. They're not so quick when doing XSLT
processing; you want to use the XalanNode classes for that. (Or better
still, XalanTransformer and XPathEvaluator - classes that provide neat
interfaces for the casual programmer.)
> Isn't this a bit messy and makes using the Xalan and Xerces code only for
> advance coders ? Perhaps there should only be one standard "Node" since
dealing with XPath requires
> using Xerces (DOM_Node) and Xalan (XalanNode) interchangebly.
See above. Most of the Xalan programmers seem happy with the status quo.
Regards,
Peter
SimpleXPathDOMAPI.cpp