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

character entity causing parser confusion

Status
Not open for further replies.

opengavel

Programmer
Sep 18, 2006
5
US

When parsing an XML file for a field containing a legal document's title (i.e., "Smith v. Jones"), I am having problems when the amp. character entity is encountered. The PHP parser seems to break up the tag's contents around the entity (and change the named & entity to the actual "&" character.

For example, "A & M Company v. Jones" becomes three parts "A" "&" and "M Company v. Jones".

I have been assuming the solution involves changing the PHP parser code somehow but I haven't gotten any responses on the PHP boards.

I am pretty new at this and I am not that familiar with how to deal with character encoding issues.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top