This content has been marked as final.
Show 6 replies
-
1. Re: Convert XML string into DOM
807596 Aug 6, 2004 12:02 PM (in response to 807596)See
http://cvs.sourceforge.net/viewcvs.py/mathml-x/mathml-x/examples/graph/src/com/neuralworks/graph/MixedMain.java?rev=1.1&view=markup
Check the internalXMLDocument object creation. The code prepares an InputStream from a String of mathml and
http://java.sun.com/j2se/1.5.0/docs/api/javax/xml/parsers/DocumentBuilder.html#parse(java.io.InputStream)
-
2. Re: Convert XML string into DOM
800487 Aug 7, 2004 3:35 PM (in response to 807596)
Convert XML String to Document with StringReader.
String xmlString; DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = factory.newDocumentBuilder(); Document document = builder.parse(new InputSource(new StringReader(xmlString)));
-
3. Re: Convert XML string into DOM
807596 Aug 8, 2004 6:41 AM (in response to 800487)Hi dvohra09,
That's exactly what I want.
Thank you so much :)
regards,
Sean -
4. Re: Convert XML string into DOM
807596 Aug 9, 2004 1:07 PM (in response to 807596)dvohra09,
That is a very neat and efficient way. I'll switch my stuff to what you presented too. Thanks!
-
5. Re: Convert XML string into DOM
807596 Jul 13, 2006 9:47 AM (in response to 800487)Hai,
Thx. i was having the same problem i got the code and its working fine -
6. Re: Convert XML string into DOM
807596 May 14, 2007 2:44 AM (in response to 807596)Hi,
Thanks a lot for the reply. Its really helpful.