ok
Direktori : /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/ |
Current File : //opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/reader6.pyo |
� [��ec @ s� d d l Z d d l Z d d l Z y d d l Z e j Z Wn d d l Z e j Z n Xd Z e j d � e j e e e � � Z e j � Z [ d Z e e � Z e j e � Z e j d � Z e j e � e j � Z x e d k r� e j � Z q� We d k rd GHe j d � n e j � d k rFd GHe j d � n d Z d a d Z d � Z e j e d � e e � Z e j e � Z e j d � Z e j e � e j � Z x e d k r�e j � Z q�We d k r�d GHe j d � n e j � d k rd GHe j d � n t e k rAd GHt GHe j d � n [ [ [ [ e j � e j � e j d � d k r~d GHn d e j d � GHd S( i����Ns� <element name="foo" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"> <oneOrMore> <element name="label"> <text/> </element> <optional> <element name="opt"> <empty/> </element> </optional> <element name="item"> <data type="byte"/> </element> </oneOrMore> </element> i s6 <foo> <label>some text</label> <item>100</item> </foo>t correcti s Error parsing the documents Document failed to validates7 <foo> <label>some text</label> <item>1000</item> </foo>t sl Type byte doesn't allow value '1000' Error validating datatype byte Element item failed to validate content c C s t d | a d S( Ns %s( t err( t ctxt str( ( sC /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/reader6.pyt callbackX s t errors. Document failed to detect the validation errors'