This tip demonstrates how to convert HTML documents to XML (or more specifically, XHTML) with a simple, open source tool, HTML Tidy. This conversion is useful for webmasters who are migrating to XML. It can also help XML converts who have to interface with legacy HTML tools.
hello friends,
<br/>
<br/>I have to convert a xml data into a string. I am confused what to use weather DOM or IOStream. Can any body show me some way out here.
<br/><? xml version=1.0>
<br/><Request>
<br/> <Elemtnt>
<br/>
<br/><data id="1">E1203</data>
<br/>
<br/><data id="2">E1204</data>
<br/> </Element>
<br/></Request>
<br/>if By using IO Streams also ok. what i want is if a java class runs it should contain a string
<br/>[CODE]
<br/>eg:
<br/>
<br/>String xmlRequest =""
<br/>
<br/>for (some process until end of xml file line...n){
<br/> xmlRequest = xmlRequest+new line;
<br/> }
<br/>System.out.println("xmlRequest :"+xmlRequest);
<br/>[/CODE]
<br/>output should be like below.