I am trying to parse below string in java servlet.
<con>
<status>OK</status>
<session>12312332432</session>
</con>
I want value of <session> element.
Ideas ?
I am trying to parse below string in java servlet.
<con>
<status>OK</status>
<session>12312332432</session>
</con>
I want value of <session> element.
Ideas ?
For XML purposes you should use an XMLParser.
Look at SAXParser it will do the job.
SAXParser is very good when dealing with big files, because the whole document isn´t hold in memory.