Quantcast
Channel: parse an xml string in java? - Stack Overflow
Browsing all 5 articles
Browse latest View live

Answer by yegor256 for parse an xml string in java?

Try jcabi-xml (see this blog post) with a one-liner:XML xml = new XMLDocument("<document>...</document>")

View Article



Answer by rob for parse an xml string in java?

Your XML might be simple enough to parse manually using the DOM or SAX API, but I'd still suggest using an XML serialization API such as JAXB, XStream, or Simple instead because writing your own XML...

View Article

Answer by Pierre for parse an xml string in java?

The SAXParser can read an InputSource. An InputSource can take a Reader in its constructorSo, you can put parse XML string via a StringReadernew InputSource(new StringReader("... your xml here....")));

View Article

Answer by Julio Santos for parse an xml string in java?

Take a look at this: http://www.rgagnon.com/javadetails/java-0573.htmlimport javax.xml.parsers.*;import org.xml.sax.InputSource;import org.w3c.dom.*;import java.io.*;public class ParseXMLString {...

View Article

parse an xml string in java?

how do you parse xml stored in a java string object?Java's XMLReader only parses XML documents from a URI or inputstream. is it not possible to parse from a String containing an xml data?Right now I...

View Article

Browsing all 5 articles
Browse latest View live




Latest Images