Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / March 2004

Tip: Looking for answers? Try searching our database.

simple search on an XML file

Thread view: 
sal achhala - 26 Feb 2004 10:56 GMT
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
FISH - 26 Feb 2004 18:09 GMT
> 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-   ><


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.