Jump to content

HELP! blank screen when xml is not valid.. using schemaValidate


engelsol

Recommended Posts

Using domxml to validate xml.. when is valid.. all is OK...

but it the xml is invalid.. a blank screen... I am just expecting that if it invalid.. it just tells me.

 

Example 1

<code>

$doc = new DOMDocument();

$doc->load('schema.xml');

 

if ($doc->schemaValidate('schema.xsd')) {

  $valid = 1;

}  else

{

  $valid = 0;

}

</code>

 

 

It was working yesterday but not today..  what can that be....

 

Please help...  I just need to receive the valid = 0; if it is not valid...

 

this same problem happens when using schemaValidateSource

 

Engel

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.