Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a string of xml elements in jsp

Status
Not open for further replies.

acsooley

Programmer
Nov 13, 2002
32
0
0
CA
I have a xml doc like:
<art>
<ele1/>
<ele2/>
<ele3/>
<ele4/>
<english>
<body><b color="red">This is a test</b></body>
</english>
</art>

I would like to read in the english tag into a string and keep all of the tags, elements and text. I am having problems. I can read in the <b> tag and all i get is the text. I would like to keep everything. Any help would be great.

I am using JSP.

Adam
 
I think some more info is needed?

How are you parsing the file? Are you reading and constructing the dom? How are you accessing the elements?

Btw, is that xml-compliant?

Cheers,
Dian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top