How to parse XML file using servlet

admin

Administrator
Staff member
Hi all!
I am a newbie to j2ee development. My servlet receives XML file in its request object. How to display the same XML in my browser using servlet.
Plesae help me, Its urgent! My XML file will be like this:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Tf_MT1 xmlns:ns0="http://abc.com/files">
<name>ABC</name>
<id>123</id>
</ns0:Tf_MT1>

Thanks
 
Back
Top