G
gk
my application will get a XML and store in a String variable.
String variable="a big xml string";
i want to check whether it is a valid/proper XML or not.
How do i check ?
my XML has these tags .
Example XML
===========
<note>
<to>peru</to>
<from>sadu</from>
<heading>headline</heading>
<body>do it now</body>
</note>
this is sample XML.
Now, how to check at runtime whether i am having a valid/proper
XML(this means,contains above tags) in the String variable?
String variable="a big xml string";
i want to check whether it is a valid/proper XML or not.
How do i check ?
my XML has these tags .
Example XML
===========
<note>
<to>peru</to>
<from>sadu</from>
<heading>headline</heading>
<body>do it now</body>
</note>
this is sample XML.
Now, how to check at runtime whether i am having a valid/proper
XML(this means,contains above tags) in the String variable?