Possible values for the options parameter can be found here:
http://us3.php.net/manual/en/ref.libxml.php#libxml.constants
![]() |
|
||||||||||
|
DOMDocument->loadXML()Описаниеclass DOMDocument {mixed loadXML ( string source [, int options] ) } Loads an XML document from a string. This method may also be called statically to load and create a DOMDocument object. The static invocation may be used when no DOMDocument properties need to be set prior to loading. Возвращаемые значенияВозвращает TRUE в случае успешного завершения или FALSE в случае возникновения ошибки. If called statically, returns a DOMDocument. DOMDocument->loadXML()
Stuart Grimshaw
26-Jun-2007 01:57
Possible values for the options parameter can be found here:
Marc Liyanage
18-Jun-2007 07:08
The documentation states that loadXML can be called statically, but this is misleading. This feature seems to be a special case hack and its use seems to be discouraged according to http://bugs.php.net/bug.php?id=41398.
gabriel dot birke at web dot de
03-May-2007 08:44
If you want to preserve greater-than and lower-than signs inside CDATA sections with XSL processing you have to use the LIBXML_NOCDATA option:
jazzslider at hotmail dot com
30-Apr-2007 01:14
When using loadXML() to parse a string that contains entity references (e.g., ), be sure that those entity references are properly declared through the use of a DOCTYPE declaration; otherwise, loadXML() will not be able to interpret the string.
shaoyu73 at gmail dot com
15-Mar-2007 09:53
earth at anonymous dot com,
Gavin Sinai gsinai at gmx dot net
30-Aug-2006 07:34
loadXml reports an error instead of throwing an exception when the xml is not well formed. This is annoying if you are trying to to loadXml() in a try...catch statement. Apparently its a feature, not a bug, because this conforms to a spefication.
mp at webfactory dot de
08-Aug-2006 08:26
While loadXML() expects its input to have a leading XML processing instruction to deduce the encoding used, there's no such concept in (non-XML) HTML documents. Thus, the libxml library underlying the DOM functions peeks at the <META> tags to figure out the encoding used.
earth at anonymous dot com
12-Apr-2006 02:28
Note that loadXML crops off beginning and trailing whitespace and linebreaks.
primaryspace at hotmail dot com
09-Aug-2005 01:42
This method replaces any existing document tree already in the object with the document tree contained in the source argument.
|