Connecting Tech Pros Worldwide Help | Site Map

Odd XML behaviour

  #1  
Old July 17th, 2005, 03:15 PM
Jason Kirk
Guest
 
Posts: n/a
Is there a way to stop PHPs DOM functions from automatically translating
numeric entities?

I've got a file that includes some numeric entities (… etc). I use
$domdoc->loadXML('filename.xml') and the other dom function to load the
file into an array and display it for editing in a html form. Except
that the entities always get decoded (i.e. turned into single
characters) without me specifically asking for it. The reverse is also
true - if I ask the dom functions to build an xml file that includes a
numeric entity the bloody thing just decodes it again. Is there any way to
get the damn thing to stop decoding them.
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Odd error Joshua.R.English@gmail.com answers 3 March 17th, 2007 07:55 PM
Odd behaviour with Decimal.ToString Oenone answers 7 November 23rd, 2005 04:38 AM
Strange behaviour reading XML into DataSet Bill C. answers 3 November 12th, 2005 02:08 AM
Clarification on XML parsing & namespaces (xml.dom.minidom) Greg Wogan-Browne answers 1 July 18th, 2005 09:47 PM