[
Lists Home |
Date Index |
Thread Index
]
XSLT and XPath are definitely not limited to Web pages. You can use them
in any application you want. It seems like an XPath implementation would
give you what you want -- just use the query //tag-name
Many native XML databases come with XPath implementations. For a list of
these, see [1]. I imagine there are stand-alone XPath implementations as
well, although I'm not sure what they are other than Xalan appears to
include one [2]. (Suggestions, anyone?)
-- Ron
[1] http://www.rpbourret.com/xml/ProdsNative.htm
[2] http://xml.apache.org/xalan-j/apidocs/org/apache/xpath/XPathAPI.html
Adam Chang wrote:
>
> Hi,
> I am currently working on a xml file. What I want to do about it is to = build a query library which can accept some query (like the tag name) = and then return the value of that tag. I hope I can use the same = function in the query library to get the same result even though the xml = file changes (but not dramatically). I don=92t know if Xpath or XSLT = will help me on that because I want to build the query library in Java = and Xpath & XSLT seems mainly working for web pages. If anyone has = experiences on this or knows any product will do this I would appreciate = that very much. Thanks a lot.
|