I is simple as long as there aren't default namespaces in the XML document...<g>.  Then it gets  UGGGLY! ;>
 
Hopefully the W3C will come through with something in XSLT 2.X.
 
Rick Bullotta
CTO
Lighthammer Software (www.lighthammer.com)

-----Original Message-----
From: Voytenko, Dimitry [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 18, 2002 9:37 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Extracting information from XML files

Hi Dima,
 
You can try using org.apache.xpath.XPathAPI:
    http://xml.apache.org/xalan-j/apidocs/org/apache/xpath/XPathAPI.html
 
It goes with Xalan 2 distribution, but as you can see it's in separate package.
It's fairly easy to use and sounds like exactly what you want.
 
You can check out Xalan's sample ApplyXPath, which uses this class:
    http://xml.apache.org/xalan-j/samples.html#applyxpath
 
Thanks,
Dmitry
-----Original Message-----
From: Dima Gutzeit [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 17, 2002 20:15
To: [EMAIL PROTECTED]
Subject: Extracting information from XML files

Hi ,
What is the most elegant way of extracting information from XML files ?
I have XML file which is a help file with a list of topics and etc... I am writing aplication that recieves topic as a parameter and outputs a portion of the XML file with the desired topic. How can I traverse XML files (using X-Path preferably) and search for the desired elements? (in Java ofcourse).
 
Thanks in advance.

Regards ,
Dima Gutzeit
.
---------------------------------
MailVision LTD.
R&D Team.
Phone: 972 - 4 - 8508020
Fax: 972 - 3 - 9285149
http://www.mailvision.com


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]


_____________________________________________________

Sector Data, LLC, is not affiliated with Sector, Inc., or SIAC

Reply via email to