Is there a method of creating an XML DOM Document by passing in a string rather than a file name / data stream? I'm used to the MSXML parser 'loadXML(myString)' method in VB and wondered if any Java parsers support this (which ones and how would help too).
Thanks for that Frank, works like a dream - saved me a great deal of screen-staring. I will probably use the XmlDocument class (rather than DocumentBuilder) to hold my DOM document as it seems to have more in the way of methods for manipulating the XML and extracting / adding nodes.
Hi, I had the same problem,i resolved converting XML string to DOM, but how do i achieve converting DOM back to XML STRING, i am also uising JAXP, and i did not see XMLDocument anywhere???in the API(i heard it is only in DOM3, and the jaxp found in sun's web site supports only DOM2.....PLEASE HELP!!!
CAUTION! Do not touch the blades on your neck propeller while they are active. Tiny ad: