Re: [xml] search for a match in the tree and return a node pointer

Zichao Mao wrote:
Thanks, Stefan.

Is there a way to do it in parser, tree, or reader API? I don't want to support more functionalities.

evaluating xpath expressions requires an in-memory representation of a
document, i.e. the tree API. However, if all you really want is to search
for a string in PCDATA (i.e. no context / markup based search), you
may be better off using the parser (SAX) API and really just apply standard
string search functions. In that case xpath is too powerful for your needs.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]