EagerWolf Posted December 24, 2008 Share Posted December 24, 2008 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 More sharing options...
JasonLewis Posted December 24, 2008 Share Posted December 24, 2008 Try making this: $vXML = DOMDocument; This: $vXML = new DOMDocument; Just a stab. Link to comment https://forums.phpfreaks.com/topic/138301-domdocumentloadxml-problems/#findComment-723112 Share on other sites More sharing options...
EagerWolf Posted December 26, 2008 Author Share Posted December 26, 2008 Hehe .. sorry I wrote wrong in forum, but in source code is OK ... any other ideas? Link to comment https://forums.phpfreaks.com/topic/138301-domdocumentloadxml-problems/#findComment-723931 Share on other sites More sharing options...
EagerWolf Posted December 27, 2008 Author Share Posted December 27, 2008 No idea? Is there any other way to validate XML on schema? Link to comment https://forums.phpfreaks.com/topic/138301-domdocumentloadxml-problems/#findComment-724659 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.