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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can you change a character in an element???

Status
Not open for further replies.

tburrows

Technical User
Oct 3, 2003
49
US
I receive an xml file that has the following structure:
<datatable>
<jmmain_archrg>
<book_id>
<bondstatus>
<bondamt>
<fel_misd>
<chrgdesc>
</jmmain_archrg>
</datatable>

The return is about 200-300 records. In chrgdesc, in a few of the records they will contain < or & charaters. Is there a way to go in and have it changed to &lt; or &amp; ??? Our IT dept won't change the oracle table where the information comes from.

Thanks
 
I ran into the same problem receiving data from an outside source. With Unix, the easiest way to get around it is to run the data through a simple sed script:
Code:
/\&/s//\&/g
/\</s//\</g

HTH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top