Re: [PHP] Unable to validate XML with Schema if namespace is specified.

2004-11-01 Thread Dusty Bin
Thanks Christian(or chregu), and thanks for the pointer to trang. I've not met that tool before. Best regards. . . Dusty Christian Stocker wrote: Aren't you missing any namespace declaration in your Schema File? Yes I was - duh!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Unable to validate XML with Schema if namespace is specified.

2004-10-31 Thread Christian Stocker
On Sun, 31 Oct 2004 19:08:04 +, Dusty Bin <[EMAIL PROTECTED]> wrote: > I am trying to validate an XML document, using > DomDocument::schemaValidate() as in the following code: > > $txt =<< > >ItemText > > EOT; > $dom = new DOMDocument(); > $dom->loadXML($txt); > if ($dom->schemaValidat

[PHP] Unable to validate XML with Schema if namespace is specified.

2004-10-31 Thread Dusty Bin
I am trying to validate an XML document, using DomDocument::schemaValidate() as in the following code: ItemText EOT; $dom = new DOMDocument(); $dom->loadXML($txt); if ($dom->schemaValidate("Article.xsd")) { print $dom->saveXML(); } ?> The schema I am trying to validate against is: h