ok
Direktori : /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/ |
Current File : //opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/validRNG.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 j e e e � � Z e j � Z e j � Z e � 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( ( sD /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/validRNG.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( ( sD /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/validRNG.pyt handler s ( t __name__t __module__R R ( ( ( sD /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/validRNG.pyR s i s� <?xml version="1.0"?> <element name="foo" xmlns="http://relaxng.org/ns/structure/1.0" xmlns:a="http://relaxng.org/ns/annotation/1.0" xmlns:ex1="http://www.example.com/n1" xmlns:ex2="http://www.example.com/n2"> <a:documentation>A foo element.</a:documentation> <element name="ex1:bar1"> <empty/> </element> <element name="ex2:bar2"> <empty/> </element> </element> s� <?xml version="1.0"?> <foo><pre1:bar1 xmlns:pre1="http://www.example.com/n1"/><pre2:bar2 xmlns:pre2="http://www.example.com/n2"/></foo>s� <?xml version="1.0"?> <foo><pre1:bar1 xmlns:pre1="http://www.example.com/n1">bad</pre1:bar1><pre2:bar2 xmlns:pre2="http://www.example.com/n2"/></foo>i s error doing RelaxNG validations. Error: document supposed to be RelaxNG invalidt OKs Memory leak %d bytes( ( t setup_testt libxml2t sysR R t debugMemoryt schemat validt invalidt relaxNGNewMemParserCtxtt lent rngpt relaxNGParset rngst relaxNGNewValidCtxtt ctxtt et setValidityErrorHandlerR t parseDoct doct relaxNGValidateDoct retR t exitt freeDoct relaxNGCleanupTypest cleanupParser( ( ( sD /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/validRNG.pyt <module> sB