Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Validating an xml using a xsd

Status
Not open for further replies.

riddler2

Programmer
Nov 11, 2002
1
NL
Hi,

if got a xsl, xml and a xsd file. I use php to combine the xml and xsl. But now I also want to validate the xml file with the xsd.

My XML looks like this:
<?xml version=&quot;1.0&quot;?>
<page xmlns:xsi=&quot; xsi:SchemaLocation=&quot;
<tag1>infot1</tag1>
<tag2>infot2</tag2>
</page>

But this way it doesn't seem to work, so what i'm i doing wrong. (I also read something abour xerces/parsing and stuff, Im i forgetting something?)?

thanx
 
Not sure about your specific environment php and the parser you are using, but most parsers require calling a method or setting a property to put them into validating mode.

Hope this helps
-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top