libxml2dom

Annotated tests/test_invalid_relaxng.xml

339:12307bf68e06
2008-08-31 Paul Boddie Added Relax-NG validation support. Added DOMConfiguration support to the _Document class, adding an error handler (DOMErrorHandler, new in libxml2dom.errors) to deal with validation errors and warnings. Added missing parser context disposal. Switched DOMException usage to specific xml.dom exception usage. Updated release notes.
paul@339 1
<?xml version="1.0"?>
paul@339 2
<element name="zoo" xmlns="http://relaxng.org/ns/structure/1.0">
paul@339 3
  <zeroOrMore>
paul@339 4
    <element name="cage">
paul@339 5
        <attribute name="id"><text/></attribute>
paul@339 6
        <attribute name="description"><text/></attribute>
paul@339 7
        <text/>
paul@339 8
    </element>
paul@339 9
  </zeroOrMore>
paul@339 10
</element>