Although undocumented, domxml_open_mem does not exist in PHP5. See this site for a quick fix:
http://alexandre.alapetite.net/doc-alex/domxml-php4-php5/index.en.html
![]() | domxml_open_mem说明DomDocument domxml_open_mem ( string str [, int mode [, array &error]] )The function parses the XML document in the given string. 参数
![]()
ardent at ahmeni dot org
07-Feb-2006 04:31
Although undocumented, domxml_open_mem does not exist in PHP5. See this site for a quick fix:
msh at onliners dot dk
01-Mar-2005 01:51
It's always nice to see just where in the XML the error is so I've enhanced the error message example above to this:
Lian Yuen Chi <yuenqi at hotmail dot com>
08-Oct-2004 10:40
Regarding the 'magic_quotes_runtime = On' issue in XML parsing, I will suggest using the method below, for those who do not want to turn off the setting in the configuration file.
heiko[dot]weber[at]softwareag[dot]com
20-Aug-2004 05:28
Careful, this function will not work with XML documents which are in UTF-16 or UTF-32 encoding and include a BOM at the beginning, so your code will need a special handling for these encodings.
Carl Wurtz
14-Jul-2004 04:01
A recursive function that parses XML into objects:
voituk [on] asg [dot] kiev [dot] ua
07-Jul-2004 08:48
There is some interesting feature with "magic_quotes_runtime" ini directive and "domxml_open_mem" function.
ej at campbell *dot* name
01-Dec-2003 11:54
The DOM XML parser does not automatically free memory when a DomDocument goes out of scope.
chris at schaake dot nu
02-Nov-2003 02:20
Finally figured out the error handling. The sample below will give a nice error message. Should also work for domxml_open_file.
jon at hiveminds dot net
17-Oct-2003 01:10
You can also create a new DomDocument instance by calling its constructor: | ![]() |