Is there a simple search method, using java, for a XML document.
The search does not need to be based on element values, but if it is thats
fine too.
thanks
> Is there a simple search method, using java, for a XML document.
>
> The search does not need to be based on element values, but if it is thats
> fine too.
>
> thanks
What do you mean by 'simple search'? XML documents are structured, so
by specifying that particular format are we to assume that you want the
search to be in some way constrained by the XML structure?
Try searching on Google for documentation on Java and XPath.
-FISH- ><
sal achhala - 28 Feb 2004 18:57 GMT
What I mean (more clearer now) is that Im parsing XML documents for which I
do not know the structure in adavance, so whats the best method, using DOM
and Java to traverse the nodes/elements in the file and extract just the
data content ?
Hope that makes more sense.
thanks
sal
> > Is there a simple search method, using java, for a XML document.
> >
[quoted text clipped - 10 lines]
>
> -FISH- ><
FISH - 03 Mar 2004 13:15 GMT
> What I mean (more clearer now) is that Im parsing XML documents for which I
> do not know the structure in adavance, so whats the best method, using DOM
> and Java to traverse the nodes/elements in the file and extract just the
> data content ?
Try looking at XSL-T, which will enable you to 'rewrite' an XML document
into a specified format.
-FISH- ><