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! Quote Link to comment 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. Quote Link to comment 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? Quote Link to comment 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.