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

escaping bad text in XML with Perl

Status
Not open for further replies.

nleco

Programmer
Joined
Dec 10, 2003
Messages
5
Location
US
I have text inside a perl statment, it goes something like this.

<title>DVD&plusmn;R/RW</title>

I wanted to know if there is a Perl module that will somehow change &plusmn; to its proper entity so that it will not give me a bad XML parse error. I've looked at XML::Clean, but it doesnt seem to do what i want.

i thought about subsituting &plusmn; to &#177; wherever there was text, but this seems expensive. and if there are new entities i find, i have to add them.

thank you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top