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
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
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
3 matches
Mail list logo