Re: [nyphp-talk] Schema Validation

2008-05-13 Thread Tim Gales
Ben Sgro wrote: Hello, I'm having a lot of trouble getting the dom object schema validation to work. After looking on google, it seems there isn't a straight forward way to handle complex schemas. Take the following code: if (is_file($schemaFile)) { $domObj->load($r

Re: [nyphp-talk] Schema Validation [Solved]

2008-05-13 Thread Ben Sgro
Hello, The first problem is that the .xsd was not up to date. The second is that you cannot call load() on an xml string, you have to call loadXML(). load() is for a file. - Ben Ben Sgro wrote: Hello, I'm having a lot of trouble getting the dom object schema validation to work. After look