Jump to content

domdocument::loadxml() Problems


EagerWolf

Recommended Posts

Hello!

 

I've been trying to create XML on schema validation.

 

PHP by itself should supports this option with (Document Object Model - http://si2.php.net/manual/en/book.dom.php)

 

I have XML in string XMLData

$vXML = DOMDocument;
$vXML->loadXML("$XMLData");

 

With this code I should be able to load XML from string, but no matter what I try, I always get the following error:

Fatal error: Call to undefined method domdocument::loadxml()

 

I've tried with following code as well and the result was the same:

DOMDocument::loadXML("$XMLData");

 

Anybody knows the solution?

 

Thanks for your help!

Link to comment
https://forums.phpfreaks.com/topic/138301-domdocumentloadxml-problems/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.