I am using DOM to read a xml file in JSP. I am using getElementsByTagName(). When I do this and want "a" I will get returned "This is a test" But I would like to read body and get all the elements, attributes and text. When I read "body" I get nothing returned. Anyone have any suggestions?
<art>
<test/>
<test1/>
<body>
<new><a href="jkhjk">This is a test</a></new>
</body>
</art>
Adam
<art>
<test/>
<test1/>
<body>
<new><a href="jkhjk">This is a test</a></new>
</body>
</art>
Adam