The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
April 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

XML in Java (was creating a DOM object by XPATH ...)

Posted by Aron Roberts on April 30, 2001 at 2:01 PM

Mario wrote:

>lt; I want to create a DOM Object by a Xpath description, e.g.
>lt;
>lt; Xpath looks like: GCIG/CIR/Seller/text()
>lt; from a second programm a value is returned
>lt; e.g "Mario" (String)
>lt;
>lt; the result should be:
>lt;
>lt; <GCIG>
>lt; <CIR>
>lt; <Seller>Mario</Seller>
>lt; </CIR>
>lt; <GCIG>
>lt;
>lt; has anyone a class or example for me?

You might try Electric XML, which is a free set of Java classes for manipulating XML. It comes complete with its own integral XML parser. To the extent we've worked with it, it has been easier than using any of the alternative Java APIs for XML, such as JDOM, JAXP, or the various DOM or SAX APIs.

http://www.themindelectric.com/



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us