You are here: Odd XML behaviour « PHP Programming Language « IT news, forums, messages
Odd XML behaviour

Posted by Jason Kirk on 11/12/35 11:21

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация