R
Roger Varley
Hi
I have an application that is passing my program a String that contains XML
data. My program needs to examine the values of two elements within this
string which it uses to identify the file "type" and it's "destination" and
then forwards the string to the relevant handler. Is there an API which
would allow me to search the xml data in the string for just those values
that I'm interested in rather than incurring the overhead of building a DOM
or writing an XMLReader class to parse the data? I'm lead to believe that
Xerces will allow me to use an XPath expression but that this is specific to
Xerces and I'd prefer a parser-agnostic soloution if possible.
Regards
Roger
I have an application that is passing my program a String that contains XML
data. My program needs to examine the values of two elements within this
string which it uses to identify the file "type" and it's "destination" and
then forwards the string to the relevant handler. Is there an API which
would allow me to search the xml data in the string for just those values
that I'm interested in rather than incurring the overhead of building a DOM
or writing an XMLReader class to parse the data? I'm lead to believe that
Xerces will allow me to use an XPath expression but that this is specific to
Xerces and I'd prefer a parser-agnostic soloution if possible.
Regards
Roger