ok
Direktori : /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/ |
Current File : //opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/validSchemas.pyo |
� [��ec @ s� d d l Z d d l Z d d l Z d Z d d d � � YZ e j d � d Z d Z d Z e � Z e j e e e � � Z e j � Z e j � Z e j e j e j e � e j e � Z e j e � Z e d k s� e j r� d GHe j d � n e j � e j e � Z e j e � Z e d k s4e j rId GHe j d � n e j � [ [ [ e j � e j � e j d � d k r�d GHn d e j d � GHd S( i����Ns test stringt ErrorHandlerc B s e Z d � Z d � Z RS( c C s g | _ d S( N( t errors( t self( ( sH /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/validSchemas.pyt __init__ s c C s/ | t k r t d � � n | j j | � d S( Ns. Error handler did not receive correct argument( t ARGt ExceptionR t append( R t msgt data( ( sH /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/validSchemas.pyt handler s ( t __name__t __module__R R ( ( ( sH /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/validSchemas.pyR s i s� <?xml version="1.0" encoding="iso-8859-1"?> <schema xmlns = "http://www.w3.org/2001/XMLSchema"> <element name = "Customer"> <complexType> <sequence> <element name = "FirstName" type = "string" /> <element name = "MiddleInitial" type = "string" /> <element name = "LastName" type = "string" /> </sequence> <attribute name = "customerID" type = "integer" /> </complexType> </element> </schema>s� <?xml version="1.0" encoding="iso-8859-1"?> <Customer customerID = "24332"> <FirstName>Raymond</FirstName> <MiddleInitial>G</MiddleInitial> <LastName>Bayliss</LastName> </Customer> s� <?xml version="1.0" encoding="iso-8859-1"?> <Customer customerID = "24332"> <MiddleInitial>G</MiddleInitial> <LastName>Bayliss</LastName> </Customer> i s error doing schema validations- Error: document supposer to be schema invalidt OKs Memory leak %d bytes( ( t setup_testt libxml2t sysR R t debugMemoryt schemat validt invalidt et schemaNewMemParserCtxtt lent ctxt_parsert schemaParset ctxt_schemat schemaNewValidCtxtt ctxt_validt setValidityErrorHandlerR t parseDoct doct schemaValidateDoct retR t exitt freeDoct schemaCleanupTypest cleanupParser( ( ( sH /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/validSchemas.pyt <module> sB