Posted By:
ajay_luthria
Posted On:
Tuesday, August 13, 2002 09:56 AM
I have downloaded the Nano XML/Lite as I need to parse an XML document. I need to get the value of a the element Time to Live. Please does any one know how to extract the value of element TimeToLive please? public class ExtractElement { String xml = " <?xml version="1.0" encoding="UTF-8"?> " + " " + " " + " " + " Outband " + " " + " " + " " + " Request " + " IMApp# " + " " + " " +
More>>
I have downloaded the Nano XML/Lite as I need to parse an
XML document.
I need to get the value of a the element Time to Live.
Please does any one know how to extract the value of element
TimeToLive please?
public class ExtractElement
{
String xml =
"
<?xml version="1.0" encoding="UTF-8"?> " +
"
" +
"
" +
"
" +
"
Outband
" +
"
" +
"
" +
"
" +
"
Request
" +
"
IMApp#
" +
"
" +
"
" +
"
" +
"
" + getUName() + "
" +
"
" +
"
http://206.226.10.25/IMPSAPP
" +
"
" +
"
" + getUPwd() + "
" +
"
120
" +
"
im.user.com
"+
"
" +
"
" +
"
" +
"
" +
"
"
public void parseXML(String xml)
{
XMLElement root = new XMLElement()
try {
//....
Get the contents of TimetoLive
}catch(Exception o){}
}
Please assist.
ajayluthria@hotmail.com
<<Less