관리-도구
편집 파일: libxml2.cpython-39.pyc
a �����^�g�H���������������������@���s�9��d�dl�Z�d�dlZd�dlZG�dd��de�Zdd��Zdd��ZG�dd ��d e�ZG�d d��de�ZG�dd ��d e�Z G�dd��de�Z G�dd��d�ZG�dd��de�ZG�dd��de�Z G�dd��d�ZG�dd��d�ZG�dd��d�ZG�dd��d�Zdd��Zd d!��Zd"d#��Zd$Zd%Zd&Zd'Zd$Zd%Zd&Zd'Zd(d)��ZG�d*d+��d+�ZG�d,d-��d-�ZG�d.d/��d/�Z G�d0d1��d1�Z!d2d3��Z"G�d4d5��d5�Z#d6d7��Z$g�Z%d8d9��Z&d:d;��Z'd<d=��Z(d>d?��Z)d@dA��Z*dBdC��Z+dDdE��Z,dFdG��Z-dHdI��Z.dJdK��Z/dLdM��Z0dNdO��Z1dPdQ��Z2dRdS��Z3dTdU��Z4dVdW��Z5dXdY��Z6dZd[��Z7d\d]��Z8d^d_��Z9d`da��Z:dbdc��Z;ddde��Z<dfdg��Z=dhdi��Z>djdk��Z?dldm��Z@dndo��ZAdpdq��ZBdrds��ZCdtdu��ZDdvdw��ZEdxdy��ZFdzd{��ZGd|d}��ZHd~d��ZId�d���ZJd�d���ZKd�d���ZLd�d���ZMd�d���ZNd�d���ZOd�d���ZPd�d���ZQd�d���ZRd�d���ZSd�d���ZTd�d���ZUd�d���ZVd�d���ZWd�d���ZXd�d���ZYd�d���ZZd�d���Z[d�d���Z\d�d���Z]d�d���Z^d�d���Z_d�d���Z`d�d���Zad�d���Zbd�d���Zcd�d���Zdd�d���Zed�d���Zfd�d���Zgd�d���Zhd�d���Zid�d���Zjd�dÄ�Zkd�dń�Zld�dDŽ�Zmd�dɄ�Znd�d˄�Zod�d̈́�Zpd�dτ�Zqd�dф�Zrd�dӄ�Zsd�dՄ�Ztd�dׄ�Zud�dل�Zvd�dۄ�Zwd�d݄�Zxd�d߄�Zyd�d��Zzd�d��Z{d�d��Z|d�d��Z}d�d��Z~d�d��Zd�d��Z�d�d��Z�d�d��Z�d�d��Z�d�d���Z�d�d���Z�d�d���Z�d�d���Z�d�d���Z�d�d���Z��d��d��Z��d�d��Z��d�d��Z��d�d��Z��d�d ��Z��d �d��Z��d�d ��Z��d�d��Z��d�d��Z��d�d��Z��d�d��Z��d�d��Z��d�d��Z��d�d��Z��d�d��Z��d�d��Z��d �d!��Z��d"�d#��Z��d$�d%��Z��d&�d'��Z��d(�d)��Z��d*�d+��Z��d,�d-��Z��d.�d/��Z��d0�d1��Z��d2�d3��Z��d4�d5��Z��d6�d7��Z��d8�d9��Z��d:�d;��Z��d<�d=��Z��d>�d?��Z��d@�dA��Z��dB�dC��Z��dD�dE��Z��dF�dG��Z��dH�dI��Z��dJ�dK��Z��dL�dM��Z��dN�dO��Z��dP�dQ��Z��dR�dS��Z��dT�dU��Z��dV�dW��Z��dX�dY��Z��dZ�d[��Z��d\�d]��Z��d^�d_��Z��d`�da��Z��db�dc��Z��dd�de��Z��df�dg��Z��dh�di��Z��dj�dk��Z��dl�dm��Z��dn�do��Z��dp�dq��Zdr�ds��ZÐdt�du��ZĐdv�dw��ZŐdx�dy��ZƐdz�d{��Zǐd|�d}��ZȐd~�d��Zɐd��d���Zʐd��d���Zːd��d���Z̐d��d���Z͐d��d���Zΐd��d���Zϐd��d���ZАd��d���Zѐd��d���ZҐd��d���ZӐd��d���ZԐd��d���ZՐd��d���Zd��d���Zאd��d���Zؐd��d���Zِd��d���Zڐd��d���Zېd��d���Zܐd��d���Zݐd��d���Zސd��d���Zߐd��d���Z�d��d���Z�d��d���Z�d��d���Z�d��d���Z�d��d���Z�d��d���Z�d��d���Z�d��d���Z�d��d���Z�d��d���Z�ddÄ�Z�dĐdń�Z�dƐdDŽ�Z�dȐdɄ�Z�dʐd˄�Z�d̐d̈́�Z�dΐdτ�Z�dАdф�Z�dҐdӄ�Z�dԐdՄ�Z�ddׄ�Z��dؐdل�Z��dڐdۄ�Z��dܐd݄�Z��dސd߄�Z��d�d��Z��d�d��Z��d�d��Z��d�d��Z��d�d��Z��d�d��Z��d�d���Z��d�d���Z�d�d���Z�d�d���Z�d�d����Z�d��d����Z�d��d����Z�d��d����Z�d��d����Z�d��d����Z �d��d���Z �d�d���Z�d�d���Z�d�d���Z �d�d ���Z�d �d���Z�d�d ���Z�d�d���Z�d�d���Z�d�d���Z�d�d���Z�d�d���Z�d�d���Z�d�d���Z�d�d���Z�d�d���Z�d �d!���Z�d"�d#���Z�d$�d%���Z�d&�d'���Z�d(�d)���Z�d*�d+���Z�d,�d-���Z �d.�d/���Z!�d0�d1���Z"�d2�d3���Z#�d4�d5���Z$�d6�d7���Z%�d8�d9���Z&�d:�d;���Z'�d<�d=���Z(�d>�d?���Z)�d@�dA���Z*�dB�dC���Z+�dD�dE���Z,�dF�dG���Z-�dH�dI���Z.�dJ�dK���Z/�dL�dM���Z0�dN�dO���Z1�dP�dQ���Z2�dR�dS���Z3�dT�dU���Z4�dV�dW���Z5�dX�dY���Z6�dZ�d[���Z7�d\�d]���Z8�d^�d_���Z9�d`�da���Z:�db�dc���Z;�dd�de���Z<�df�dg���Z=�dh�di���Z>�dj�dk���Z?�dl�dm���Z@�dn�do���ZA�dp�dq���ZB�dr�ds���ZC�dt�du���ZD�dv�dw���ZE�dx�dy���ZF�dz�d{���ZG�d|�d}���ZH�d~�d���ZI�d��d����ZJ�d��d����ZK�d��d����ZL�d��d����ZM�d��d����ZN�d��d����ZO�d��d����ZP�d��d����ZQ�d��d����ZR�d��d����ZS�d��d����ZT�d��d����ZU�d��d����ZV�d��d����ZW�d��d����ZX�d��d����ZY�d��d����ZZ�d��d����Z[�d��d����Z\�d��d����Z]�d��d����Z^�d��d����Z_�d��d����Z`�d��d����Za�d��d����Zb�d��d����Zc�d��d����Zd�d��d����Ze�d��d����Zf�d��d����Zg�d��d����Zh�d��d����Zi�d��d����Zj�ddÄ��Zk�dĐdń��Zl�dƐdDŽ��Zm�dȐdɄ��Zn�dʐd˄��Zo�d̐d̈́��Zp�dΐdτ��Zq�dАdф��Zr�dҐdӄ��Zs�dԐdՄ��Zt�ddׄ��Zu�dؐdل��Zv�dڐdۄ��Zw�dܐd݄��Zx�dސd߄��Zy�d�d���Zz�d�d���Z{�d�d���Z|�d�d���Z}�d�d���Z~�d�d���Z�d�d���Z��d�d���Z��d�d���Z��d�d���Z��d�d����Z��d��d����Z��d��d����Z��d��d����Z��d��d����Z��d��d����Z��d��d���Z��d�d���Z��d�d���Z��d�d���Z��d�d ���Z��d �d���Z�G��d�d ���d e��Z�G��d�d���d�e���Z�G��d�d���de��Z�G��d�d���d�e���Z�G��d�d���d�e���Z�G��d�d���d��Z�G��d�d���d�e���Z�G��d�d���d�e���Z�G��d�d���d�e���Z�G��d�d���d��Z�G��d �d!���d!�e���Z�G��d"�d#���d#e ��Z�G��d$�d%���d%e��Z�G��d&�d'���d'��Z�G��d(�d)���d)��Z�G��d*�d+���d+��Z�G��d,�d-���d-e!��Z�G��d.�d/���d/��Z�G��d0�d1���d1��Z�G��d2�d3���d3e ��Z�G��d4�d5���d5��Z�G��d6�d7���d7e#��Z�G��d8�d9���d9��Z�G��d:�d;���d;e��Z�G��d<�d=���d=��Z�G��d>�d?���d?��Z�d��Z�d$�Z�d%�Z�d'�Z��d@�Z�d$�Z�d'�Z��dA�Z��dB�Z��dC�Z��dD�Z��dE�Z��dF�Z��dG�Z��dH�Z�d��Z�d$�Z�d%�Z�d��Z�d$�Z�d%�Z�d&�Z�d��Z�d$�Z�d%�Z�d&�Z�d$�Z�d%�Z�d&�Z�d'�ZǐdI�ZȐdJ�ZɐdK�ZʐdL�ZːdM�Z̐dN�Z�d$�Z�d%�Z�d&�Z�d'�ZѐdI�ZҐdJ�ZӐdK�ZԐdL�ZՐdM�ZdN�ZאdO�Zؐd@�ZِdP�ZڐdQ�ZېdR�ZܐdS�ZݐdT�ZސdU�ZߐdV�Z�dW�Z�dX�Z�d$�Z�d%�Z�d&�Z�d'�Z�d$�Z�d%�Z�d&�Z�d'�Z�dI�Z�dJ�Z�d��Z�d$�Z�d%�Z�d&�Z�d'�Z�dI�Z�dJ�Z�dK�Z�dL�Z��dM�Z��dN�Z��dO�Z��d@�Z��dP�Z��dQ�Z��dR�Z��dS�Z��dT�Z��dU�Z��dV�Z��dW�Z�dX�Z�dY�Z�dZ�Z�d[�Z�d\�Z�d]�Z�d^�Z�d_�Z �d`�Z �da�Z�db�Z�dA�Z �dc�Z�dd�Z�de�Z�df�Z�dg�Z�dh�Z�di�Z�dj�Z�dk�Z�dl�Z�dm�Z�dn�Z�do�Z�dp�Z�dq�Z�dr�Z�ds�Z�dt�Z�du�Z �dv�Z!�dw�Z"�dx�Z#�dy�Z$�dz�Z%�d{�Z&�d|�Z'�d}�Z(�d~�Z)�d�Z*�d��Z+�d��Z,�dB�Z-�d��Z.�d��Z/�d��Z0�d��Z1�d��Z2�d��Z3�d��Z4�d��Z5�d��Z6�d��Z7�d��Z8�d��Z9�d��Z:�d��Z;�d��Z<�d��Z=�d��Z>�d��Z?�d��Z@�d��ZA�d��ZB�d��ZC�d��ZD�d��ZE�d��ZF�d��ZG�d��ZH�d��ZI�d��ZJ�d��ZK�d��ZL�d��ZM�d��ZN�d��ZO�d��ZP�d��ZQ�d��ZR�d��ZS�d��ZT�d��ZU�d��ZV�d��ZW�d��ZX�d��ZY�d��ZZ�d��Z[�d��Z\�d��Z]�d��Z^�d��Z_�d��Z`�d��Za�d��Zb�d��Zc�d��Zd�d��Ze�d��Zf�d��Zg�d��Zh�d��Zi�d��Zj�d��Zk�d��Zl�d��Zm�dZn�dÐZo�dĐZp�dŐZq�dƐZr�dǐZs�dȐZt�dɐZu�dʐZv�dːZw�d̐Zx�d͐Zy�dΐZz�dϐZ{�dАZ|�dѐZ}�dҐZ~�dӐZ�dԐZ��dՐZ��dZ��dאZ��dؐZ��dِZ��dڐZ��dېZ��dܐZ��dݐZ��dސZ��dߐZ��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d��Z��d��Z��d��Z��d��Z��d��Z��d��Z��d��Z��d��Z��d��Z��d��Z��d��Z��d��Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d �Z��d �Z��d�Z��d�Z��d �Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Zd�ZÐd�ZĐd�ZŐd�ZƐd�Zǐd�ZȐd�Zɐd�Zʐd�Zːd �Z̐d!�Z͐d"�Zΐd#�Zϐd$�ZАd%�Zѐd&�ZҐd'�ZӐd(�ZԐd)�ZՐd*�Zd+�Zאd,�Zؐd-�Zِd.�Zڐd/�Zېd0�Zܐd1�Zݐd2�Zސd3�Zߐd4�Z�d5�Z�d6�Z�d7�Z�d8�Z�d9�Z�d:�Z�d;�Z�d<�Z�d=�Z�d>�Z�d?�Z�d@�Z�dA�Z�dB�Z�dC�Z�dD�Z�dE�Z�dF�Z�dG�Z�dH�Z�dI�Z��dJ�Z��dK�Z��dL�Z��dM�Z��dN�Z��dO�Z��dP�Z��dQ�Z��dR�Z��dS�Z��dT�Z��dU�Z�dV�Z�dW�Z�dX�Z�dY�Z�dZ�Z�d[�Z�d\�Z�d]�Z �d^�Z �d_�Z�d`�Z�da�Z �db�Z�dc�Z�dd�Z�de�Z�df�Z�dg�Z�dh�Z�di�Z�dj�Z�dk�Z�dl�Z�dm�Z�dn�Z�do�Z�dp�Z�dq�Z�dr�Z�ds�Z�dt�Z �du�Z!�dv�Z"�dw�Z#�dx�Z$�dy�Z%�dz�Z&�d{�Z'�d|�Z(�d}�Z)�d~�Z*�d�Z+�d��Z,�d��Z-�d��Z.�d��Z/�d��Z0�d��Z1�d��Z2�d��Z3�d��Z4�d��Z5�d��Z6�d��Z7�d��Z8�d��Z9�d��Z:�d��Z;�d��Z<�d��Z=�d��Z>�d��Z?�d��Z@�d��ZA�d��ZB�d��ZC�d��ZD�d��ZE�d��ZF�d��ZG�d��ZH�d��ZI�d��ZJ�d��ZK�d��ZL�d��ZM�d��ZN�d��ZO�d��ZP�d��ZQ�d��ZR�d��ZS�d��ZT�d��ZU�d��ZV�d��ZW�d��ZX�d��ZY�d��ZZ�d��Z[�d��Z\�d��Z]�d��Z^�d��Z_�d��Z`�d��Za�d��Zb�d��Zc�d��Zd�d��Ze�d��Zf�d��Zg�d��Zh�d��Zi�d��Zj�d��Zk�d��Zl�d��Zm�dZn�dÐZo�dĐZp�dŐZq�dƐZr�dǐZs�dȐZt�dɐZu�dʐZv�dːZw�d̐Zx�d͐Zy�dΐZz�dϐZ{�dАZ|�dѐZ}�dҐZ~�dӐZ�dԐZ��dՐZ��dZ��dאZ��dؐZ��dِZ��dڐZ��dېZ��dܐZ��dݐZ��dސZ��dߐZ��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d��Z��d��Z��d��Z��d��Z��d��Z��d��Z��d��Z��d��Z��d��Z��d��Z��d��Z��d��Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d �Z��d �Z��d�Z��d�Z��d �Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Zd�ZÐd�ZĐd�ZŐd�ZƐd�Zǐd�ZȐd�Zɐd�Zʐd�Zːd �Z̐d!�Z͐d"�Zΐd#�Zϐd$�ZАd%�Zѐd&�ZҐd'�ZӐd(�ZԐd)�ZՐd*�Zd+�Zאd,�Zؐd-�Zِd.�Zڐd/�Zېd0�Zܐd1�Zݐd2�Zސd3�Zߐd4�Z�d5�Z�d6�Z�d7�Z�d8�Z�d9�Z�d:�Z�d;�Z�d<�Z�d=�Z�d>�Z�d?�Z�d@�Z�dA�Z�dB�Z�dC�Z�dD�Z�dE�Z�dF�Z�dG�Z�dH�Z�dI�Z��dJ�Z��dK�Z��dL�Z��dM�Z��dN�Z��dO�Z��dP�Z��dQ�Z��dR�Z��dS�Z��dT�Z��dU�Z�dV�Z�dW�Z�dX�Z�dY�Z�dZ�Z�d[�Z�d\�Z�d]�Z �d^�Z �d_�Z�d`�Z�da�Z �db�Z�dc�Z�dd�Z�de�Z�df�Z�dg�Z�dh�Z�di�Z�dj�Z�dk�Z�dl�Z�dm�Z�dn�Z�do�Z�dp�Z�dq�Z�dr�Z�ds�Z�dt�Z �du�Z!�dv�Z"�dw�Z#�dx�Z$�dy�Z%�dz�Z&�d{�Z'�d|�Z(�d}�Z)�d~�Z*�d�Z+�d��Z,�d��Z-�d��Z.�d��Z/�d��Z0�d��Z1�d��Z2�d��Z3�d��Z4�d��Z5�d��Z6�d��Z7�d��Z8�d��Z9�d��Z:�d��Z;�d��Z<�d��Z=�d��Z>�d��Z?�d��Z@�d��ZA�d��ZB�d��ZC�d��ZD�d��ZE�d��ZF�d��ZG�d��ZH�d��ZI�d��ZJ�d��ZK�d��ZL�d��ZM�d��ZN�d��ZO�d��ZP�d��ZQ�d��ZR�d��ZS�d��ZT�d��ZU�d��ZV�d��ZW�d��ZX�d��ZY�d��ZZ�d��Z[�d��Z\�d��Z]�d��Z^�d��Z_�d��Z`�d��Za�d��Zb�d��Zc�d��Zd�d��Ze�d��Zf�d��Zg�d��Zh�d��Zi�d��Zj�d��Zk�d��Zl�d��Zm�dZn�dÐZo�dĐZp�dŐZq�dƐZr�dǐZs�dȐZt�dɐZu�dʐZv�dːZw�d̐Zx�d͐Zy�dΐZz�dϐZ{�dАZ|�dѐZ}�dҐZ~�dӐZ�dԐZ��dՐZ��dZ��dאZ��dؐZ��dِZ��dڐZ��dېZ��dܐZ��dݐZ��dސZ��dߐZ��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d��Z��d��Z��d��Z��d��Z��d��Z��d��Z��d��Z��d��Z��d��Z��d��Z��d��Z��d��Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d �Z��d �Z��d�Z��d�Z��d �Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Z��d�Zd�ZÐd�ZĐd�ZŐd�ZƐd�Zǐd�ZȐd�Zɐd�Z�d��Z�d$�Z�d%�Z�d��Z�d$�Z�d%�Z�d&�Z�d��Z�d$�Z�d%�ZԐd�Z�d��Z�d$�Z�d%�Z�d&�Z�d'�ZڐdI�ZېdJ�ZܐdK�ZݐdL�ZސdM�ZߐdN�Z�dO�Z�d@�Z�dP�Z�dQ�Z�dR�Z�dS�Z�dT�Z�dU�Z�dV�Z�dW�Z�dX�Z�dY�Z�d$�Z�d%�Z�d'�Z�dL�Z�dS�Z�dA�Z�dB�Z�dC�Z�d$�Z�d%�Z�d&�Z�d'�Z�d$�Z�d%�Z�d&�Z�d'�Z�d��Z�d$�Z�d%�Z�d&�Z�d'�Zd��Zd$�Zd%�Zd&�Zd��Zd$�Zd%�Zd&�Z d'�Z �dI�Zd$�Zd%�Z d&�Zd'�Z�dI�Z�dJ�Zd��Zd$�Zd%�Zd&�Zd'�Z�dI�Z�dJ�Z�dK�Z�dL�Z�dM�Z�dN�Z�dO�Z�d@�Z�dP�Z�dQ�Z �dR�Z!�dS�Z"�dT�Z#�dU�Z$�dV�Z%�dW�Z&�dX�Z'�dY�Z(�dZ�Z)�d[�Z*�d\�Z+�d]�Z,�d^�Z-�d_�Z.�d`�Z/�da�Z0d$�Z1d%�Z2�d�Z3d��Z4d$�Z5d%�Z6d&�Z7d'�Z8�dI�Z9�dJ�Z:�dK�Z;�dL�Z<�dM�Z=�dN�Z>�dO�Z?�d@�Z@�dP�ZA�dQ�ZB�dR�ZC�dS�ZDd$�ZEd%�ZFd&�ZGd'�ZHd$�ZId%�ZJd&�ZKd'�ZLd$�ZMd%�ZNd'�ZO�dL�ZP�dS�ZQ�dA�ZR�dB�ZS�dC�ZT�dD�ZU�dÐZV�d��ZW�dE�ZX�d �ZY�dF�ZZ�d!�Z[�d"�Z\�dG�Z]�d#�Z^�d$�Z_�d%�Z`�d&�Za�dH�Zb�d'�Zcd��Zdd$�Zed%�Zfd&�Zgd'�Zh�dI�Zid��Zjd$�Zkd%�Zld'�Zmd��Znd$�Zod%�Zpd&�Zqd'�Zr�dI�Zs�dJ�Zt�dK�Zu�dL�Zv�dM�Zw�dN�Zx�dO�Zy�d@�Zz�dP�Z{�dQ�Z|�dR�Z}�dS�Z~�dT�Zd��Z�d$�Z�d%�Z�d��Z�d$�Z�d%�Z�d&�Z�d'�Z��dI�Z��dJ�Z��dK�Z��dL�Z��dM�Z��dN�Z��dO�Z��d@�Z��dP�Z��dQ�Z��dR�Z��dS�Z��dT�Z��dU�Z��dV�Z��dW�Z��dX�Z��dY�Z��dZ�Z��d[�Z��d\�Z��d]�Z��d^�Z��d_�Z��d`�Z��da�Z��db�Z��dA�Z��dc�Z��dd�Z��de�Z��df�Z��dg�Z��dh�Z��di�Z�d$�Z�d%�Z�d'�Z��dL�Z��dS�Z��dA�Z��dB�Z��dC�Z�d��Z�d$�Z�d%�Z�d&�Z�d'�Z��dI�Z��dJ�Z��dK�Z��dL�Z��dM�Z��dN�Z��dO�Z��d@�Z��dP�Z��dQ�Z��dR�ZdS�ZÐdT�ZĐdU�ZŐdV�ZƐdW�ZǐdX�ZȐdY�ZɐdZ�Zʐd[�Zːd\�Z̐d]�Z͐d^�Zΐd_�Zϐd`�ZАda�Zѐdb�ZҐdA�ZӐdc�ZԐdd�ZՐde�Zdf�Zאdg�Zؐdh�Zِdi�Zڐdj�Zېdk�Zܐdl�Zݐdm�Zސdn�Zߐdo�Z�dp�Z�d��Z�d$�Z�d%�Z�d&�Z�d'�Z�dI�Z�dJ�Z�dK�Z�dL�Z�dM�Z�dN�Z�dO�Z�d@�Z�dP�Z�dQ�Z�dR�Z�dS�Z�dT�Z�dU�Z�dV�Z��dW�Z��dX�Z��dY�Z��dZ�Z��d[�Z��d\�Z�d$�Z�d%�Z�d'�Z��dL�Z��dD�Z��dÐZ�d��Zd��Zd$�Zd%�Zd&�Zd'�Z�dI�Z�dJ�Z �dK�Z d$�Zd%�Zd&�Z d'�Z�dI�Z�dJ�Z�dK�Z�dL�Z�dM�Z�dN�Z�dO�Z�d@�Z�dP�Z�dQ�Z�dR�Z�dS�Z�dT�Z�dU�Z�dV�Z�dW�Z�dX�Z�dY�Z �dZ�Z!�d[�Z"�d\�Z#�d]�Z$�d�Z%�d�Z&�d�Z'�d�Z(�d�Z)�d�Z*�d�Z+�d�Z,�d�Z-�d�Z.�d�Z/�d�Z0�d��Z1�d��Z2d$�Z3d��Z4d$�Z5d%�Z6d&�Z7d��Z8d$�Z9d%�Z:d&�Z;d'�Z<�dI�Z=d$�Z>d%�Z?d&�Z@d'�ZA�dI�ZB�dJ�ZC�dK�ZD�dL�ZE�dM�ZF�dN�ZG�dO�ZH�d@�ZI�dP�ZJ�dQ�ZK�dR�ZL�dS�ZM�dT�ZN�dU�ZO�dV�ZP�dW�ZQ�dX�ZR�dY�ZS�dZ�ZT�d[�ZU�d\�ZV�d]�ZW�d^�ZX�d_�ZY�d`�ZZ�da�Z[�db�Z\�dA�Z]�dc�Z^�d(�Z_d��Z`d$�Zad%�Zbd&�Zcd'�Zd�dI�Ze�dJ�Zf�dK�Zg�dL�Zh�dM�Zid��Zjd$�Zkd%�Zld&�Zmd'�Zn�dI�Zo�dJ�Zp�dK�Zq�dL�Zr�dM�Zs�dN�Zt�dO�Zu�d@�Zv�dP�Zw�dQ�Zx�dR�Zy�dS�Zz�dT�Z{�dU�Z|�dV�Z}�dW�Z~�dX�Z�dY�Z��dZ�Z��d[�Z��d\�Z��d]�Z�dS�()�������Nc�������������������@���s���e�Zd�ZdS�)�libxmlErrorN)�__name__� __module__�__qualname__��r���r����-/usr/lib64/python3.9/site-packages/libxml2.pyr�����������r���c�����������������C���s8���z$t�t�j}|dkr"|dkr"W�dS�W�n���Y�dS�0�dS�)NZ PyCObject� PyCapsule����r���)�type�_objr���)�obj�nr���r���r����checkWrapper ���s���� r���c�����������������C���s���t�|��}|dk�rtj|�S�|S��Nr���)�id�sys�maxsize)�o�ir���r���r����pos_id���s���� r���c�������������������@���s���e�Zd�Zdd��Zdd��ZdS�)� treeErrorc�����������������C���s ���||�_�d�S��N��msg��selfr���r���r���r����__init__���s����ztreeError.__init__c�����������������C���s���|�j�S�r���r����r���r���r���r����__str__!���s����ztreeError.__str__N�r���r���r���r���r���r���r���r���r���r������s���r���c�������������������@���s���e�Zd�Zdd��Zdd��ZdS�)�parserErrorc�����������������C���s ���||�_�d�S�r���r���r���r���r���r���r���%���s����zparserError.__init__c�����������������C���s���|�j�S�r���r���r���r���r���r���r���'���s����zparserError.__str__Nr ���r���r���r���r���r!���$���s���r!���c�������������������@���s���e�Zd�Zdd��Zdd��ZdS�)�uriErrorc�����������������C���s ���||�_�d�S�r���r���r���r���r���r���r���+���s����zuriError.__init__c�����������������C���s���|�j�S�r���r���r���r���r���r���r���-���s����zuriError.__str__Nr ���r���r���r���r���r"���*���s���r"���c�������������������@���s���e�Zd�Zdd��Zdd��ZdS�)� xpathErrorc�����������������C���s ���||�_�d�S�r���r���r���r���r���r���r���1���s����zxpathError.__init__c�����������������C���s���|�j�S�r���r���r���r���r���r���r���3���s����zxpathError.__str__Nr ���r���r���r���r���r#���0���s���r#���c�������������������@���s8���e�Zd�Zdd��Zdd��Zdd��Zd dd �Zdd d�ZdS�)� ioWrapperc�����������������C���s���||�_�d�|�_d�S�r���)�_ioWrapper__io�_o�r���r���r���r���r���r���7���s����zioWrapper.__init__c�����������������C���s"���|�j�d�krdS�|�j�����d�|�_�dS��N���r���)r%����closer���r���r���r����io_close;���s ���� zioWrapper.io_closec�����������������C���s���|�j�d�krdS�|�j�����dS�r(���)r%����flushr���r���r���r����io_flushB���s���� zioWrapper.io_flushr)���c�����������������C���s����|�j�d�krdS�z$|dk�r$|�j����}n|�j��|�}W�nL�ty~���dd�l}|���d�}tdt|���td|�j���|�j�d�k�Y�dS�0�|S�)Nr)���r���r ���zfailed to read from Python:zon IO:)r%����read� Exceptionr����exc_info�printr���)r����len�retr����er���r���r����io_readH���s���� zioWrapper.io_readc�����������������C���s0���|�j�d�krdS�|dk�r"|�j��|�S�|�j��||�S�r(���)r%����write)r����strr2���r���r���r����io_writeZ���s ���� zioWrapper.io_writeN)r)���)r)���)r���r���r���r���r+���r-���r5���r8���r���r���r���r���r$���6���s ��� r$���c�������������������@���s&���e�Zd�Zd dd�Zdd��Zdd��ZdS�) � ioReadWrapper��c�����������������C���s���t��|�|��t�|�|�|�_d�S�r���)r$���r���� libxml2mod�xmlCreateInputBufferr&���)r���r����encr���r���r���r���b���s����zioReadWrapper.__init__c�����������������C���s0���t�d��|�����|�jd�kr&t�|�j��d�|�_d�S�)N�__del__)r1���r+���r&���r;����xmlFreeParserInputBufferr���r���r���r���r>���f���s ���� zioReadWrapper.__del__c�����������������C���s(���|������|�jd�krt�|�j��d�|�_d�S�r���)r+���r&���r;���r?���r���r���r���r���r*���m���s���� zioReadWrapper.closeN)r:���)r���r���r���r���r>���r*���r���r���r���r���r9���a���s��� r9���c�������������������@���s.���e�Zd�Zddd�Zdd��Zdd��Zdd ��Zd S�)�ioWriteWrapperr:���c�����������������C���s����t�|�t�d�kr td��d�|�_ntt�|�jdkrbt�|�}|d�krNt�|�|��nt�|�|��||�_n2t�|�}|d�kr�t�|�|��nt�|�|��||�_d�S�)Nr:���zwrite io from a stringr ���) r���r1���r���r���r;���ZoutputBufferGetPythonFiler$���r���r&���)r���r���r=����filer���r���r���r���t���s���� zioWriteWrapper.__init__c�����������������C���s(���|������|�jd�krt�|�j��d�|�_d�S�r���)r+���r&���r;����xmlOutputBufferCloser���r���r���r���r>�������s���� zioWriteWrapper.__del__c�����������������C���s(���|������|�jd�krt�|�j��d�|�_d�S�r����r-���r&���r;���rB���r���r���r���r���r,�������s���� zioWriteWrapper.flushc�����������������C���s(���|������|�jd�krt�|�j��d�|�_d�S�r���rC���r���r���r���r���r*�������s���� zioWriteWrapper.closeN)r:���)r���r���r���r���r>���r,���r*���r���r���r���r���r@���s���s��� r@���c�������������������@���s����e�Zd�ZdZdd��Zdd��Zdd��Zdd ��Zd d��Zdd ��Z dd��Z dd��Zdd��Zdd��Z dd��Zdd��Zdd��Zdd��Zdd��Zd d!��Zd"d��Zd#d$��Zd%d&��Zd'd(��Zd)S�)*�SAXCallbackzBase class for SAX handlersc�����������������C���s���dS�)z#called at the start of the documentNr���r���r���r���r���� startDocument����s����zSAXCallback.startDocumentc�����������������C���s���dS�)z!called at the end of the documentNr���r���r���r���r����endDocument����s����zSAXCallback.endDocumentc�����������������C���s���dS�)z�called at the start of every element, tag is the name of the element, attrs is a dictionary of the element's attributesNr���)r����tag�attrsr���r���r����startElement����s����zSAXCallback.startElementc�����������������C���s���dS�)zOcalled at the start of every element, tag is the name of the elementNr���)r���rG���r���r���r���� endElement����s����zSAXCallback.endElementc�����������������C���s���dS�)z�called when character data have been read, data is the string containing the data, multiple consecutive characters() callback are possible.Nr����r����datar���r���r���� characters����s����zSAXCallback.charactersc�����������������C���s���dS�)z�called when CDATA section have been read, data is the string containing the data, multiple consecutive cdataBlock() callback are possible.Nr���rK���r���r���r���� cdataBlock����s����zSAXCallback.cdataBlockc�����������������C���s���dS�)z.called when an entity reference has been foundNr����r����namer���r���r���� reference����s����zSAXCallback.referencec�����������������C���s���dS�)z>called when potentially ignorable white spaces have been foundNr���rK���r���r���r����ignorableWhitespace����s����zSAXCallback.ignorableWhitespacec�����������������C���s���dS�)zqcalled when a PI has been found, target contains the PI name and data is the associated data in the PINr���)r����targetrL���r���r���r����processingInstruction����s����z!SAXCallback.processingInstructionc�����������������C���s���dS�)zBcalled when a comment has been found, content contains the commentNr����r����contentr���r���r����comment����s����zSAXCallback.commentc�����������������C���s���dS�)z�called when a DOCTYPE declaration has been found, name is the DTD name and externalID, systemID are the DTD public and system identifier for that DTd if availableNr����r���rP���� externalID�systemIDr���r���r����externalSubset����s����zSAXCallback.externalSubsetc�����������������C���s���dS�)z�called when a DOCTYPE declaration has been found, name is the DTD name and externalID, systemID are the DTD public and system identifier for that DTD if availableNr���rX���r���r���r����internalSubset����s����zSAXCallback.internalSubsetc�����������������C���s���dS�)a��called when an ENTITY declaration has been found, name is the entity name and externalID, systemID are the entity public and system identifier for that entity if available, type indicates the entity type, and content reports it's string contentNr���)r���rP���r���rY���rZ���rV���r���r���r���� entityDecl����s����zSAXCallback.entityDeclc�����������������C���s���dS�)z�called when an NOTATION declaration has been found, name is the notation name and externalID, systemID are the notation public and system identifier for that notation if availableNr���rX���r���r���r����notationDecl����s����zSAXCallback.notationDeclc�����������������C���s���dS�)z2called when an ATTRIBUTE definition has been foundNr���)r����elemrP���r���ZdefiZdefaultValueZnameListr���r���r���� attributeDecl����s����zSAXCallback.attributeDeclc�����������������C���s���dS�)z0called when an ELEMENT definition has been foundNr���)r���rP���r���rV���r���r���r����elementDecl����s����zSAXCallback.elementDeclc�����������������C���s���dS�)a��called when an unparsed ENTITY declaration has been found, name is the entity name and publicId,, systemID are the entity public and system identifier for that entity if available, and notationName indicate the associated NOTATIONNr���)r���rP���ZpublicIdrZ����notationNamer���r���r���r]�������s����c�����������������C���s���d�S�r���r���r���r���r���r����warning����s����zSAXCallback.warningc�����������������C���s���t�|��d�S�r����r!���r���r���r���r����error����s����zSAXCallback.errorc�����������������C���s���t�|��d�S�r���rd���r���r���r���r���� fatalError��s����zSAXCallback.fatalErrorN)r���r���r����__doc__rE���rF���rI���rJ���rM���rN���rQ���rR���rT���rW���r[���r\���r]���r^���r`���ra���rc���re���rf���r���r���r���r���rD�������s*���rD���c�������������������@���s���e�Zd�ZdCdd�Zdd��Zdd��Zdd ��Zd d��Zdd ��Zdd��Z dd��Z dd��Zdd��Zdd��Z dd��ZeZdd��Zdd��Zdd��Zd dlZeejd d!���d"k�r�d#d$��Zn�eeddd%�Zee ddd&�Zee ddd'�Zeeddd(�Zee ddd)�Zeeddd*�Zeeddd+�Zeeddd,�Zeeddd-�Z eeddd.�Z!dDd/d0�Z"dEd1d2�Z#dFd3d4�Z$dGd5d6�Z%d7d8��Z&d9d:��Z'd;d<��Z(d=d>��Z)d?d@��Z*e)Z+dAdB��Z,dS�)H�xmlCoreNc�����������������C���s���|d�kr||�_�d�S�d�|�_�d�S�r����r&���r'���r���r���r���r�����s����zxmlCore.__init__c�����������������C���s0���|d�krdS�t��|�j|j�}|d�kr(dS�|dkS�)NFT�r;���ZcompareNodesEqualr&����r����otherr3���r���r���r����__eq__��s����zxmlCore.__eq__c�����������������C���s"���|d�krdS�t��|�j|j�}|�S�)NTrj���rk���r���r���r����__ne__��s����zxmlCore.__ne__c�����������������C���s���t��|�j�}|S�r���)r;���ZnodeHashr&����r���r3���r���r���r����__hash__��s����zxmlCore.__hash__c�����������������C���s���|�����S�r���)� serializer���r���r���r���r���"��s����zxmlCore.__str__c�����������������C���s ���t��|�j�}|d�krd�S�t|�S�r���)r;����parentr&����nodeWrapro���r���r���r���� get_parent$��s����zxmlCore.get_parentc�����������������C���s ���t��|�j�}|d�krd�S�t|�S�r���)r;����childrenr&���rs���ro���r���r���r����get_children)��s����zxmlCore.get_childrenc�����������������C���s ���t��|�j�}|d�krd�S�t|�S�r���)r;����lastr&���rs���ro���r���r���r����get_last.��s����zxmlCore.get_lastc�����������������C���s ���t��|�j�}|d�krd�S�t|�S�r���)r;����nextr&���rs���ro���r���r���r����get_next3��s����zxmlCore.get_nextc�����������������C���s"���t��|�j�}|d�krd�S�t|d�S��N�r���)r;���� propertiesr&����xmlAttrro���r���r���r����get_properties8��s����zxmlCore.get_propertiesc�����������������C���s ���t��|�j�}|d�krd�S�t|�S�r���)r;����prevr&���rs���ro���r���r���r����get_prev=��s����zxmlCore.get_prevc�����������������C���s���t��|�j�S�r����r;����xmlNodeGetContentr&���r���r���r���r����get_contentB��s����zxmlCore.get_contentc�����������������C���s���t��|�j�S�r���)r;���rP���r&���r���r���r���r����get_nameE��s����zxmlCore.get_namec�����������������C���s���t��|�j�S�r���)r;���r���r&���r���r���r���r����get_typeG��s����zxmlCore.get_typec�����������������C���s8���t��|�j�}|d�kr.|�jdv�r*t|�jd�S�d�S�t|d�S�)N)�document_xml� document_htmlr|���)r;����docr&���r����xmlDocro���r���r���r����get_docI��s���� zxmlCore.get_docr�������g������@c�����������������C���s���|dkr(t��|�j�}|d�kr d�S�t|�S�|dkrRt��|�j�}|d�krHd�S�t|d�S�|dkrzt��|�j�}|d�krrd�S�t|�S�|dkr�t��|�j�}|d�kr�d�S�t|�S�|dkr�t��|�j�}|d�kr�d�S�t|�S�|dk��r�t�� |�j�}|d�kr�d�S�t|�S�|dk�r t�� |�j�S�|d k�r t��|�j�S�|d k�r6t��|�j�S�|dk�r�t�� |�j�}|d�k�r~|�jdk�sn|�jd k�rzt|�jd�S�d�S�t|d�S�t|��d�S�)Nrr���r}���r|���ru���rw���ry���r����rV���rP���r���r����r����r����)r;���rr���r&���rs���r}���r~���ru���rw���ry���r����r����rP���r���r����r�����AttributeError)r����attrr3���r���r���r����__getattr__W��sX���� zxmlCore.__getattr__zParent nodezFirst child nodezLast sibling nodezNext sibling nodezPrevious sibling nodezList of propertieszContent of this nodez Node namez Node typez!The document this node belongs toc�����������������C���s���t��|�j||�S�r���)r;���Z serializeNoder&���)r����encoding�formatr���r���r���rq������s����zxmlCore.serializec�����������������C���s���t��|�j|||�S�r���)r;���Z saveNodeTor&���)r���rA���r����r����r���r���r����saveTo���s����zxmlCore.saveToc�����������������C���s2���|rdd��|D��}t��|����j||dk||dk�S�)Nc�����������������S���s���g�|�] }|j��qS�r���ri�����.0r���r���r���r���� <listcomp>���r���z&xmlCore.c14nMemory.<locals>.<listcomp>r���)r;���ZxmlC14NDocDumpMemoryr����r&���)r����nodes� exclusive�prefixes� with_commentsr���r���r���� c14nMemory���s�����zxmlCore.c14nMemoryc�����������������C���s4���|rdd��|D��}t��|����j||dk||dk|�S�)Nc�����������������S���s���g�|�] }|j��qS�r���ri���r����r���r���r���r�������r���z&xmlCore.c14nSaveTo.<locals>.<listcomp>r���)r;���ZxmlC14NDocSaveTor����r&���)r���rA���r����r����r����r����r���r���r���� c14nSaveTo���s�����zxmlCore.c14nSaveToc�����������������C���s:���|�j�}|d�krd�S�|���}|�|���|�|�}|����|S�r���)r�����xpathNewContext�setContextNode� xpathEval�xpathFreeContext)r����exprr�����ctxt�resr���r���r���r�������s���� zxmlCore.xpathEvalc�����������������C���s ���|���|�S�r���)r����)r���r����r���r���r���� xpathEval2���s����zxmlCore.xpathEval2c�����������������C���s(���t��|�j|�}|du�rdS�t|d�}|S�)a5�� Remove a namespace definition from a node. If href is None, remove all of the ns definitions on that node. The removed namespaces are returned as a linked list. Note: If any child nodes referred to the removed namespaces, they will be left with dangling links. You should call renconciliateNs() to fix those pointers. Note: This method does not free memory taken by the ns definitions. You will need to free it manually with the freeNsList() method on the returns xmlNs object. Nr|���)r;���ZxmlNodeRemoveNsDefr&����xmlNs)r����hrefr3���Z _xmlCore__tmpr���r���r����removeNsDef���s���� zxmlCore.removeNsDefc�����������������C���s���t�|��S�r���)�xmlCoreDepthFirstItertorr���r���r���r����walk_depth_first���s����zxmlCore.walk_depth_firstc�����������������C���s���t�|��S�r���)�xmlCoreBreadthFirstItertorr���r���r���r����walk_breadth_first���s����zxmlCore.walk_breadth_firstc�����������������C���s.���z|�j�j����W�n���Y�n0�t�|�j��d�S�r���)r����Z_ctxtr����r;���� xmlFreeDocr&���r���r���r���r����free��s ����zxmlCore.free)N)Nr���)Nr���)Nr���Nr���)Nr���Nr���)-r���r���r���r���rm���rn���rp���r���rt���rv���rx���rz���r���r����r����� getContentr����r����r����r����float�versionr�����propertyrr���ru���rw���ry���r����r}���rV���rP���r���r����rq���r����r����r����r����r����r����r����r�����__iter__r����r���r���r���r���rh�����s`��� / ����� ����� rh���c�������������������@���s(���e�Zd�Zdd��Zdd��Zdd��ZeZdS�)r����c�����������������C���s���||�_�g�|�_d�S�r�����node�parents�r���r����r���r���r���r�����s����z!xmlCoreDepthFirstItertor.__init__c�����������������C���s���|�S�r���r���r���r���r���r���r������s����z!xmlCoreDepthFirstItertor.__iter__c�����������������C���s\���|�j�r(|�j�}|�j�|�j���|�j�j|�_�|S�z|�j���}W�n�tyL���t�Y�n0�|j|�_�q�d�S�r���)r����r�����appendru����pop� IndexError� StopIterationry����r���r3���rr���r���r���r����__next__��s���� z!xmlCoreDepthFirstItertor.__next__N�r���r���r���r���r����r����ry���r���r���r���r���r������s���r����c�������������������@���s(���e�Zd�Zdd��Zdd��Zdd��ZeZdS�)r����c�����������������C���s���||�_�g�|�_d�S�r���r����r����r���r���r���r���'��s����z#xmlCoreBreadthFirstItertor.__init__c�����������������C���s���|�S�r���r���r���r���r���r���r����*��s����z#xmlCoreBreadthFirstItertor.__iter__c�����������������C���s\���|�j�r(|�j�}|�j�|�j���|�j�j|�_�|S�z|�j���}W�n�tyL���t�Y�n0�|j|�_�q�d�S�r���)r����r����r����ry���r����r����r����ru���r����r���r���r���r����,��s���� z#xmlCoreBreadthFirstItertor.__next__Nr����r���r���r���r���r����&��s���r����c�����������������C���s����t��|��}|dks|dkr$t|�d�S�|dkr6t|�d�S�|dd��dkrPt|�d�S�|dkrbt|�d�S�|d krtt|�d�S�|d kr�t|�d�S�|dkr�t|�d�S�|dkr�t |�d�S�t|�d�S�) N�element�textr|���Z attributer�������Zdocument� namespaceZ elem_declZattribute_declZentity_decl�dtd) r;���r����xmlNoder~���r����r����� xmlElement�xmlAttribute� xmlEntity�xmlDtd)r���rP���r���r���r���rs���=��s$���� rs���c�����������������C���s|���t�|��}|t�g��kr&ttt|���}|S�|t�d�krHttt|���}t|�S�|t�d�ksl|t�d�ksl|t�d�krp|�S�t|��S�d�S�)Nr���r:���r���g��������)r����list�map�xpathObjectRet�tuplers���)r���Zotyper3���r���r���r���r����R��s����$r����c�����������������C���s���t��|�|||�}d�S�r���)r;����xmlRegisterXPathFunction)r����rP����ns_uri�fr3���r���r���r����registerXPathFunctionb��s����r����r �������r��������c�����������������C���s8���ddl�}d|jvr t�|�|�}nddl}|�|�|�}|S�)zpRegister a Python written function to for error reporting. The function is called back as f(ctx, error). r���N�libxslt)r����modulesr;���ZxmlRegisterErrorHandlerr�����registerErrorHandler)r�����ctxr���r3���r����r���r���r���r����x��s���� r����c�������������������@���s6���e�Zd�Zddd�Zdd��Zdd��Zdd ��Zd d��ZdS�) �parserCtxtCoreNc�����������������C���s���|d�kr||�_�d�S�d�|�_�d�S�r���ri���r'���r���r���r���r������s����zparserCtxtCore.__init__c�����������������C���s ���|�j�d�krt�|�j���d�|�_�d�S�r����r&���r;���ZxmlFreeParserCtxtr���r���r���r���r>������s���� zparserCtxtCore.__del__c�����������������C���s���t��|�j||��dS�)z�Register an error handler that will be called back as f(arg,msg,severity,reserved). @reserved is currently always None.N)r;���ZxmlParserCtxtSetErrorHandlerr&����r���r�����argr���r���r����setErrorHandler���s����zparserCtxtCore.setErrorHandlerc�����������������C���s���t��|�j�S�)�WReturn (f,arg) as previously registered with setErrorHandler or (None,None).)r;���ZxmlParserCtxtGetErrorHandlerr&���r���r���r���r����getErrorHandler���s����zparserCtxtCore.getErrorHandlerc�����������������C���s���t��|�j|�S�)z(Register a local catalog with the parser)r;����addLocalCatalogr&����r���Zurir���r���r���r�������s����zparserCtxtCore.addLocalCatalog)N)r���r���r���r���r>���r����r����r����r���r���r���r���r�������s ��� r����c�������������������@���s���e�Zd�Zdd��Zddd�ZdS�)� ValidCtxtCorec�����������������O���s���d�S�r���r����r����args�kwr���r���r���r������s����zValidCtxtCore.__init__Nc�����������������C���s���t��|�j|||��dS�)zy Register error and warning handlers for DTD validation. These will be called back as f(msg,arg) N)r;���ZxmlSetValidErrorsr&����r���Zerr_funcZ warn_funcr����r���r���r����setValidityErrorHandler���s����z%ValidCtxtCore.setValidityErrorHandler)N�r���r���r���r���r����r���r���r���r���r�������s���r����c�������������������@���s���e�Zd�Zdd��Zddd�ZdS�)�SchemaValidCtxtCorec�����������������O���s���d�S�r���r���r����r���r���r���r������s����zSchemaValidCtxtCore.__init__Nc�����������������C���s���t��|�j|||��dS�)z| Register error and warning handlers for Schema validation. These will be called back as f(msg,arg) N)r;���ZxmlSchemaSetValidErrorsr&���r����r���r���r���r�������s����z+SchemaValidCtxtCore.setValidityErrorHandler)Nr����r���r���r���r���r�������s���r����c�������������������@���s���e�Zd�Zdd��Zddd�ZdS�)�relaxNgValidCtxtCorec�����������������O���s���d�S�r���r���r����r���r���r���r������s����zrelaxNgValidCtxtCore.__init__Nc�����������������C���s���t��|�j|||��dS�)z} Register error and warning handlers for RelaxNG validation. These will be called back as f(msg,arg) N)r;���ZxmlRelaxNGSetValidErrorsr&���r����r���r���r���r�������s����z,relaxNgValidCtxtCore.setValidityErrorHandler)Nr����r���r���r���r���r�������s���r����c�����������������C���s���|�\}}||||t�|��S�)z)Intermediate callback to wrap the locator)�xmlTextReaderLocator)Zxxx_todo_changemer���ZseverityZlocatorr����r����r���r���r����_xmlTextReaderErrorFunc���s����r����c�������������������@���s.���e�Zd�Zd dd�Zdd��Zdd��Zdd ��ZdS�)�xmlTextReaderCoreNc�����������������C���s"���d�|�_�|d�kr||�_d�S�d�|�_d�S�r���)�inputr&���r'���r���r���r���r������s����zxmlTextReaderCore.__init__c�����������������C���s ���|�j�d�krt�|�j���d�|�_�d�S�r����r&���r;���ZxmlFreeTextReaderr���r���r���r���r>������s���� zxmlTextReaderCore.__del__c�����������������C���s2���|du�rt��|�jdd��nt��|�jt||f��dS�)z]Register an error handler that will be called back as f(arg,msg,severity,locator).N)r;���ZxmlTextReaderSetErrorHandlerr&���r����r����r���r���r����SetErrorHandler���s������z!xmlTextReaderCore.SetErrorHandlerc�����������������C���s$���t��|�j�\}}|du�rdS�|S�dS�)r����N)NN)r;���ZxmlTextReaderGetErrorHandlerr&���r����r���r���r����GetErrorHandler���s����z!xmlTextReaderCore.GetErrorHandler)N)r���r���r���r���r>���r����r����r���r���r���r���r�������s��� r����c�������������������C���s���t�����d�S�r����r;���ZxmlPythonCleanupParserr���r���r���r���� cleanupParser���s����r����c�����������������C���s ���dd��}t��|��t�|���d�S�)Nc�����������������S���s*���t�t�D�]}||��}|d�ur|��S�qd�S�r���)�reversed�__input_callbacks)�URI�cbr���r���r���r����findOpenCallback���s����z/registerInputCallback.<locals>.findOpenCallback)r;���ZxmlRegisterInputCallbackr����r����)�funcr����r���r���r����registerInputCallback���s���� r����c�������������������C���s,���t�t�dkrt����t�t�dkr(t����d�S�r���)r2���r����r����r;���ZxmlUnregisterInputCallbackr���r���r���r����popInputCallbacks��s����r����c�����������������C���s&���t��|�|�}|du�rtd��t|d�S�)z8Create a parser context for an HTML in-memory document. Nz#htmlCreateMemoryParserCtxt() failedr|���)r;����htmlCreateMemoryParserCtxtr!���� parserCtxt��buffer�sizer3���r���r���r���r������s����r����c�����������������C���s���t��|��}|S�)zISet and return the previous value for handling HTML omitted tags. )r;����htmlHandleOmittedElem��valr3���r���r���r���r������s���� r����c�����������������C���s���t��|��}|S�)z0Check if an attribute is of content type Script )r;����htmlIsScriptAttribute�rP���r3���r���r���r���r���%��s���� r���c������������������C���s"���t����}�|�du�rtd��t|�d�S�)�.Allocate and initialize a new parser context. NzhtmlNewParserCtxt() failedr|���)r;����htmlNewParserCtxtr!���r�����r3���r���r���r���r��*��s����r��c�����������������C���s&���t��|�|�}|du�rtd��t|d�S�)z3parse an HTML in-memory document and build a tree. NzhtmlParseDoc() failedr|���)r;����htmlParseDocr!���r����)�curr����r3���r���r���r���r��0��s����r��c�����������������C���s&���t��|�|�}|du�rtd��t|d�S�)z�parse an HTML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. NzhtmlParseFile() failedr|���)r;���� htmlParseFiler!���r������filenamer����r3���r���r���r���r��6��s����r��c�����������������C���s*���t��|�|||�}|du�r td��t|d�S�)�2parse an XML in-memory document and build a tree. NzhtmlReadDoc() failedr|���)r;����htmlReadDocr���r�����r���URLr�����optionsr3���r���r���r���r��>��s����r��c�����������������C���s*���t��|�|||�}|du�r td��t|d�S�)z�parse an HTML from a file descriptor and build a tree. NOTE that the file descriptor will not be closed when the reader is closed or reset. NzhtmlReadFd() failedr|���)r;���� htmlReadFdr���r������fdr ��r����r��r3���r���r���r���r��D��s����r��c�����������������C���s(���t��|�||�}|du�rtd��t|d�S�)�6parse an XML file from the filesystem or the network. NzhtmlReadFile() failedr|���)r;����htmlReadFiler���r�����r ��r����r��r3���r���r���r���r��L��s����r��c�����������������C���s,���t��|�||||�}|du�r"td��t|d�S�)r ��NzhtmlReadMemory() failedr|���)r;����htmlReadMemoryr���r�����r����r����r ��r����r��r3���r���r���r���r��R��s����r��c�����������������C���s���t��|��}|S�)z7Determine if a given attribute is a boolean attribute. )r;����htmlIsBooleanAttrr��r���r���r���r��\��s���� r��c�����������������C���s&���t��|�|�}|du�rtd��t|d�S�)zCreates a new HTML document NzhtmlNewDoc() failedr|���)r;���� htmlNewDocr���r�����r����� ExternalIDr3���r���r���r���r��a��s����r��c�����������������C���s&���t��|�|�}|du�rtd��t|d�S�)zWCreates a new HTML document without a DTD node if @URI and @ExternalID are None NzhtmlNewDocNoDtD() failedr|���)r;����htmlNewDocNoDtDr���r����r��r���r���r���r��g��s����r��c�����������������C���s���t��|��}|S�)a��Set the default version of SAX used globally by the library. By default, during initialization the default is set to 2. Note that it is generally a better coding style to use xmlSAXVersion() to set up the version explicitly for a given parsing context. )r;���ZxmlSAXDefaultVersion�r����r3���r���r���r����SAXDefaultVersionr��s���� r��c�������������������C���s���t�����dS�)z$Initialize the default SAX2 handler N)r;���ZxmlDefaultSAXHandlerInitr���r���r���r����defaultSAXHandlerInit{��s����r��c�������������������C���s���t�����dS��z#Initialize the default SAX handler N)r;����docbDefaultSAXHandlerInitr���r���r���r���r ����s����r ��c�������������������C���s���t�����dS�r��)r;����htmlDefaultSAXHandlerInitr���r���r���r���r!�����s����r!��c�����������������C���s���t��|�||�}|S�)z�Add an entry in the catalog, it may overwrite existing but different entries. If called before any other catalog routine, allows to override the default shared catalog put in place by xmlInitializeCatalog(); )r;���Z xmlCatalogAdd)r����orig�replacer3���r���r���r���� catalogAdd���s����r$��c�������������������C���s���t�����dS�)z0Free up all the memory associated with catalogs N)r;���ZxmlCatalogCleanupr���r���r���r����catalogCleanup���s����r%��c������������������C���s���t����}�|�S��z1Convert all the SGML catalog entries as XML ones )r;���ZxmlCatalogConvertr��r���r���r����catalogConvert���s����r'��c�����������������C���s���|�dur|������t�|���dS�)z7Dump all the global catalog content to the given file. N)r,���r;���ZxmlCatalogDump)�outr���r���r����catalogDump���s����r)��c�����������������C���s���t��|��}|S�)zoTry to lookup the catalog reference associated to a public ID DEPRECATED, use xmlCatalogResolvePublic() )r;���ZxmlCatalogGetPublic��pubIDr3���r���r���r����catalogGetPublic���s���� r,��c�����������������C���s���t��|��}|S�)zoTry to lookup the catalog reference associated to a system ID DEPRECATED, use xmlCatalogResolveSystem() )r;���ZxmlCatalogGetSystem��sysIDr3���r���r���r����catalogGetSystem���s���� r/��c�����������������C���s���t��|��}|S��z!Remove an entry from the catalog )r;���ZxmlCatalogRemove��valuer3���r���r���r���� catalogRemove���s���� r3��c�����������������C���s���t��|�|�}|S��z:Do a complete resolution lookup of an External Identifier )r;���ZxmlCatalogResolve)r+��r.��r3���r���r���r����catalogResolve���s����r5��c�����������������C���s���t��|��}|S�)zETry to lookup the catalog reference associated to a public ID )r;���ZxmlCatalogResolvePublicr*��r���r���r����catalogResolvePublic���s���� r6��c�����������������C���s���t��|��}|S��z3Try to lookup the catalog resource for a system ID )r;���ZxmlCatalogResolveSystemr-��r���r���r����catalogResolveSystem���s���� r8��c�����������������C���s���t��|��}|S��z*Do a complete resolution lookup of an URI )r;���ZxmlCatalogResolveURI�r����r3���r���r���r����catalogResolveURI���s���� r;��c�����������������C���s���t��|��}|S�)z[Used to set the debug level for catalog operation, 0 disable debugging, 1 enable it )r;���ZxmlCatalogSetDebug)�levelr3���r���r���r����catalogSetDebug���s���� r=��c�������������������C���s���t�����dS�)z�Do the catalog initialization. this function is not thread safe, catalog initialization should preferably be done once at startup N)r;���ZxmlInitializeCatalogr���r���r���r����initializeCatalog���s����r>��c�����������������C���s$���t��|��}|du�rtd��t|d�S�)z�Load the catalog and build the associated data structures. This can be either an XML Catalog or an SGML Catalog It will recurse in SGML CATALOG entries. On the other hand XML Catalogs are not handled recursively. NzxmlLoadACatalog() failedr|���)r;���ZxmlLoadACatalogr����catalog�r ��r3���r���r���r����loadACatalog���s���� rA��c�����������������C���s���t��|��}|S�)z�Load the catalog and makes its definitions effective for the default external entity loader. It will recurse in SGML CATALOG entries. this function is not thread safe, catalog initialization should preferably be done once at startup )r;���ZxmlLoadCatalogr@��r���r���r����loadCatalog���s���� rB��c�����������������C���s���t��|���dS�)z�Load the catalogs and makes their definitions effective for the default external entity loader. this function is not thread safe, catalog initialization should preferably be done once at startup N)r;���ZxmlLoadCatalogs)Zpathssr���r���r����loadCatalogs���s����rC��c�����������������C���s$���t��|��}|du�rtd��t|d�S�)z�Load an SGML super catalog. It won't expand CATALOG or DELEGATE references. This is only needed for manipulating SGML Super Catalogs like adding and removing CATALOG or DELEGATE entries. Nz xmlLoadSGMLSuperCatalog() failedr|���)r;���ZxmlLoadSGMLSuperCatalogr���r?��r@��r���r���r����loadSGMLSuperCatalog���s���� rD��c�����������������C���s$���t��|��}|du�rtd��t|d�S�)zcreate a new Catalog. NzxmlNewCatalog() failedr|���)r;���Z xmlNewCatalogr���r?��)Zsgmlr3���r���r���r���� newCatalog���s���� rE��c�����������������C���s$���t��|��}|du�rtd��t|d�S�)zjparse an XML file and build a tree. It's like xmlParseFile() except it bypass all catalog lookups. NzxmlParseCatalogFile() failedr|���)r;���ZxmlParseCatalogFiler!���r����r@��r���r���r����parseCatalogFile���s���� rF��c�����������������C���s���t��|��}|S�)zSThis function is DEPRECATED. Use xmlIsBaseChar_ch or xmlIsBaseCharQ instead )r;���Z xmlIsBaseChar�Zchr3���r���r���r���� isBaseChar��s���� rH��c�����������������C���s���t��|��}|S�)zMThis function is DEPRECATED. Use xmlIsBlank_ch or xmlIsBlankQ instead )r;���Z xmlIsBlankrG��r���r���r����isBlank��s���� rI��c�����������������C���s���t��|��}|S�)zKThis function is DEPRECATED. Use xmlIsChar_ch or xmlIsCharQ instead )r;���Z xmlIsCharrG��r���r���r����isChar��s���� rJ��c�����������������C���s���t��|��}|S�)z9This function is DEPRECATED. Use xmlIsCombiningQ instead )r;���ZxmlIsCombiningrG��r���r���r����isCombining��s���� rK��c�����������������C���s���t��|��}|S�)zMThis function is DEPRECATED. Use xmlIsDigit_ch or xmlIsDigitQ instead )r;���Z xmlIsDigitrG��r���r���r����isDigit��s���� rL��c�����������������C���s���t��|��}|S�)zSThis function is DEPRECATED. Use xmlIsExtender_ch or xmlIsExtenderQ instead )r;���Z xmlIsExtenderrG��r���r���r���� isExtender"��s���� rM��c�����������������C���s���t��|��}|S�)z;This function is DEPRECATED. Use xmlIsIdeographicQ instead )r;���ZxmlIsIdeographicrG��r���r���r���� isIdeographic(��s���� rN��c�����������������C���s���t��|��}|S�)zUThis function is DEPRECATED. Use xmlIsPubidChar_ch or xmlIsPubidCharQ instead )r;���ZxmlIsPubidCharrG��r���r���r����isPubidChar-��s���� rO��c�����������������C���s���t��|��}|S�)z&Convenient way to turn bool into text )r;���Z xmlBoolToText)Zboolvalr3���r���r���r���� boolToText7��s���� rP��c�����������������C���s ���|�dur|������t�|�|��dS�)z<Dumps information about the string, shorten it if necessary N)r,���r;���ZxmlDebugDumpString)�outputr7���r���r���r����debugDumpString<��s����rR��c�����������������C���s���t��|�|��dS�)z6Print the xpath error to libxml default error channel N)r;���ZxmlShellPrintXPathError)Z errorTyper����r���r���r����shellPrintXPathErrorA��s����rS��c�������������������C���s���t�����dS�)z^Free the dictionary mutex. Do not call unless sure the library is not in use anymore ! N)r;���ZxmlDictCleanupr���r���r���r����dictCleanupI��s����rT��c������������������C���s���t����}�|�S�)zKDo the dictionary mutex initialization. this function is deprecated )r;���ZxmlInitializeDictr��r���r���r����initializeDictN��s����rU��c�����������������C���s���t��|�|�}|S�)zbRegisters an alias @alias for an encoding named @name. Existing alias will be overwritten. )r;���ZxmlAddEncodingAlias)rP����aliasr3���r���r���r����addEncodingAliasX��s����rW��c�������������������C���s���t�����dS�)z}Cleanup the memory allocated for the char encoding support, it unregisters all the encoding handlers and the aliases. N)r;���ZxmlCleanupCharEncodingHandlersr���r���r���r����cleanupCharEncodingHandlers^��s����rX��c�������������������C���s���t�����dS�)zUnregisters all aliases N)r;���ZxmlCleanupEncodingAliasesr���r���r���r����cleanupEncodingAliasesc��s����rY��c�����������������C���s���t��|��}|S�)z%Unregisters an encoding alias @alias )r;���ZxmlDelEncodingAlias�rV��r3���r���r���r����delEncodingAliasg��s���� r[��c�����������������C���s���t��|��}|S�)z-Lookup an encoding name for the given alias. )r;���ZxmlGetEncodingAliasrZ��r���r���r���� encodingAliasl��s���� r\��c�������������������C���s���t�����dS�)z�Initialize the char encoding support, it registers the default encoding supported. NOTE: while public, this function usually doesn't need to be called in normal processing. N)r;���ZxmlInitCharEncodingHandlersr���r���r���r����initCharEncodingHandlersq��s����r]��c�������������������C���s���t�����dS�)z:Cleanup up the predefined entities table. Deprecated call N)r;���ZxmlCleanupPredefinedEntitiesr���r���r���r����cleanupPredefinedEntities|��s����r^��c�������������������C���s���t�����dS�)z0Set up the predefined entities. Deprecated call N)r;���ZxmlInitializePredefinedEntitiesr���r���r���r����initializePredefinedEntities���s����r_��c�����������������C���s$���t��|��}|du�rtd��t|d�S�)z1Check whether this name is an predefined entity. NzxmlGetPredefinedEntity() failedr|���)r;���ZxmlGetPredefinedEntityr���r����r��r���r���r����predefinedEntity���s���� r`��c�������������������C���s���t�����dS�)z'Additional cleanup for multi-threading N)r;���ZxmlCleanupGlobalsr���r���r���r����cleanupGlobals���s����ra��c�������������������C���s���t�����dS�)z.Additional initialisation for multi-threading N)r;���ZxmlInitGlobalsr���r���r���r����initGlobals���s����rb��c�����������������C���s���t��|��}|S�r���)r;���ZxmlThrDefDefaultBufferSize��vr3���r���r���r����thrDefDefaultBufferSize���s���� re��c�����������������C���s���t��|��}|S�r���)r;���Z'xmlThrDefDoValidityCheckingDefaultValuerc��r���r���r����$thrDefDoValidityCheckingDefaultValue���s���� rf��c�����������������C���s���t��|��}|S�r���)r;���Z xmlThrDefGetWarningsDefaultValuerc��r���r���r����thrDefGetWarningsDefaultValue���s���� rg��c�����������������C���s���t��|��}|S�r���)r;���ZxmlThrDefIndentTreeOutputrc��r���r���r����thrDefIndentTreeOutput���s���� rh��c�����������������C���s���t��|��}|S�r���)r;���ZxmlThrDefKeepBlanksDefaultValuerc��r���r���r����thrDefKeepBlanksDefaultValue���s���� ri��c�����������������C���s���t��|��}|S�r���)r;���Z xmlThrDefLineNumbersDefaultValuerc��r���r���r����thrDefLineNumbersDefaultValue���s���� rj��c�����������������C���s���t��|��}|S�r���)r;���ZxmlThrDefLoadExtDtdDefaultValuerc��r���r���r����thrDefLoadExtDtdDefaultValue���s���� rk��c�����������������C���s���t��|��}|S�r���)r;���ZxmlThrDefParserDebugEntitiesrc��r���r���r����thrDefParserDebugEntities���s���� rl��c�����������������C���s���t��|��}|S�r���)r;���Z#xmlThrDefPedanticParserDefaultValuerc��r���r���r���� thrDefPedanticParserDefaultValue���s���� rm��c�����������������C���s���t��|��}|S�r���)r;���ZxmlThrDefSaveNoEmptyTagsrc��r���r���r����thrDefSaveNoEmptyTags���s���� rn��c�����������������C���s���t��|��}|S�r���)r;���Z'xmlThrDefSubstituteEntitiesDefaultValuerc��r���r���r����$thrDefSubstituteEntitiesDefaultValue���s���� ro��c�����������������C���s���t��|��}|S�r���)r;���ZxmlThrDefTreeIndentStringrc��r���r���r����thrDefTreeIndentString���s���� rp��c�������������������C���s���t�����dS�)zGCleanup the FTP protocol layer. This cleanup proxy information. N)r;���ZxmlNanoFTPCleanupr���r���r���r����nanoFTPCleanup���s����rq��c�������������������C���s���t�����dS�)zoInitialize the FTP protocol layer. Currently it just checks for proxy information, and get the hostname N)r;���ZxmlNanoFTPInitr���r���r���r����nanoFTPInit���s����rr��c�����������������C���s���t��|�||||��dS�)z�Setup the FTP proxy information. This can also be done by using ftp_proxy ftp_proxy_user and ftp_proxy_password environment variables. N)r;���ZxmlNanoFTPProxy)�host�port�user�passwdr���r���r���r����nanoFTPProxy���s����rw��c�����������������C���s���t��|���dS�)z�(Re)Initialize the FTP Proxy context by parsing the URL and finding the protocol host port it indicates. Should be like ftp://myproxy/ or ftp://myproxy:3128/ A None URL cleans up proxy information. N)r;���ZxmlNanoFTPScanProxy�r ��r���r���r����nanoFTPScanProxy���s����ry��c�������������������C���s���t�����dS�)z!Cleanup the HTTP protocol layer. N)r;���ZxmlNanoHTTPCleanupr���r���r���r����nanoHTTPCleanup���s����rz��c�������������������C���s���t�����dS�)zZInitialize the HTTP protocol layer. Currently it just checks for proxy information N)r;���ZxmlNanoHTTPInitr���r���r���r����nanoHTTPInit���s����r{��c�����������������C���s���t��|���dS�)z�(Re)Initialize the HTTP Proxy context by parsing the URL and finding the protocol host port it indicates. Should be like http://myproxy/ or http://myproxy:3128/ A None URL cleans up proxy information. N)r;���ZxmlNanoHTTPScanProxyrx��r���r���r����nanoHTTPScanProxy���s����r|��c�����������������C���s$���t��|��}|du�rtd��t|d�S�)z8Creates a parser context for an XML in-memory document. NzxmlCreateDocParserCtxt() failedr|���)r;���ZxmlCreateDocParserCtxtr!���r�����r��r3���r���r���r����createDocParserCtxt���s���� r~��c�������������������C���s���t�����dS�)z�Initialization function for the XML parser. This is not reentrant. Call once before processing in case of use in multithreaded programs. N)r;���Z xmlInitParserr���r���r���r���� initParser���s����r��c�����������������C���s���t��|��}|S�)aH��Set and return the previous value for default blanks text nodes support. The 1.x version of the parser used an heuristic to try to detect ignorable white spaces. As a result the SAX callback was generating xmlSAX2IgnorableWhitespace() callbacks instead of characters() one, and when using the DOM output text nodes containing those blanks were not generated. The 2.x and later version will switch to the XML standard way and ignorableWhitespace() are only generated when running the parser in validating mode and when the current element doesn't allow CDATA or mixed content. This function is provided as a way to force the standard behavior on 1.X libs and to switch back to the old mode for compatibility when running 1.X client code on 2.X . Upgrade of 1.X code should be done by using xmlIsBlankNode() commodity function to detect the "empty" nodes generated. This value also affect autogeneration of indentation when saving code if blanks sections are kept, indentation is not generated. )r;���ZxmlKeepBlanksDefaultr����r���r���r����keepBlanksDefault��s���� r���c�����������������C���s���t��|��}|S�)z�Set and return the previous value for enabling line numbers in elements contents. This may break on old application and is turned off by default. )r;���ZxmlLineNumbersDefaultr����r���r���r����lineNumbersDefault��s���� r���c������������������C���s"���t����}�|�du�rtd��t|�d�S�)r��NzxmlNewParserCtxt() failedr|���)r;���ZxmlNewParserCtxtr!���r����r��r���r���r���� newParserCtxt"��s����r���c�����������������C���s&���t��|�|�}|du�rtd��t|d�S�)z#Load and parse an external subset. NzxmlParseDTD() failedr|���)r;���ZxmlParseDTDr!���r����)r���SystemIDr3���r���r���r����parseDTD(��s����r���c�����������������C���s$���t��|��}|du�rtd��t|d�S�)r ��NzxmlParseDoc() failedr|���)r;���ZxmlParseDocr!���r����r}��r���r���r����parseDoc.��s���� r���c�����������������C���s$���t��|��}|du�rtd��t|d�S�)z�parse an XML external entity out of context and build a tree. [78] extParsedEnt ::= TextDecl? content This correspond to a "Well Balanced" chunk NzxmlParseEntity() failedr|���)r;���ZxmlParseEntityr!���r����r@��r���r���r����parseEntity4��s���� r���c�����������������C���s$���t��|��}|du�rtd��t|d�S�)z�parse an XML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. NzxmlParseFile() failedr|���)r;���ZxmlParseFiler!���r����r@��r���r���r���� parseFile<��s���� r���c�����������������C���s&���t��|�|�}|du�rtd��t|d�S�)z/parse an XML in-memory block and build a tree. NzxmlParseMemory() failedr|���)r;���ZxmlParseMemoryr!���r����r����r���r���r����parseMemoryD��s����r���c�����������������C���s���t��|��}|S�)zISet and return the previous value for enabling pedantic warnings. )r;���ZxmlPedanticParserDefaultr����r���r���r����pedanticParserDefaultJ��s���� r���c�����������������C���s*���t��|�|||�}|du�r td��t|d�S�)r ��NzxmlReadDoc() failedr|���)r;���Z xmlReadDocr���r����r��r���r���r����readDocP��s����r���c�����������������C���s*���t��|�|||�}|du�r td��t|d�S�)z�parse an XML from a file descriptor and build a tree. NOTE that the file descriptor will not be closed when the reader is closed or reset. NzxmlReadFd() failedr|���)r;���Z xmlReadFdr���r����r��r���r���r����readFdV��s����r���c�����������������C���s(���t��|�||�}|du�rtd��t|d�S�)r��NzxmlReadFile() failedr|���)r;���ZxmlReadFiler���r����r��r���r���r����readFile^��s����r���c�����������������C���s,���t��|�||||�}|du�r"td��t|d�S�)r ��NzxmlReadMemory() failedr|���)r;���Z xmlReadMemoryr���r����r��r���r���r���� readMemoryd��s����r���c�����������������C���s$���t��|��}|du�rtd��t|d�S�)z�parse an XML in-memory document and build a tree. In the case the document is not Well Formed, a attempt to build a tree is tried anyway NzxmlRecoverDoc() failedr|���)r;���Z xmlRecoverDocr���r����r}��r���r���r���� recoverDocj��s���� r���c�����������������C���s$���t��|��}|du�rtd��t|d�S�)z�parse an XML file and build a tree. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. In the case the document is not Well Formed, it attempts to build a tree anyway NzxmlRecoverFile() failedr|���)r;���ZxmlRecoverFiler���r����r@��r���r���r����recoverFiler��s���� r���c�����������������C���s&���t��|�|�}|du�rtd��t|d�S�)z�parse an XML in-memory block and build a tree. In the case the document is not Well Formed, an attempt to build a tree is tried anyway NzxmlRecoverMemory() failedr|���)r;���ZxmlRecoverMemoryr���r����r����r���r���r���� recoverMemory{��s����r���c�����������������C���s���t��|��}|S�)a\��Set and return the previous value for default entity support. Initially the parser always keep entity references instead of substituting entity values in the output. This function has to be used to change the default parser behavior SAX::substituteEntities() has to be used for changing that on a file by file basis. )r;���ZxmlSubstituteEntitiesDefaultr����r���r���r����substituteEntitiesDefault���s���� r���c�����������������C���s���t��|��}|S�)a1��Checks that the value conforms to the LanguageID production: NOTE: this is somewhat deprecated, those productions were removed from the XML Second edition. [33] LanguageID ::= Langcode ('-' Subcode)* [34] Langcode ::= ISO639Code | IanaCode | UserCode [35] ISO639Code ::= ([a-z] | [A-Z]) ([a-z] | [A-Z]) [36] IanaCode ::= ('i' | 'I') '-' ([a-z] | [A-Z])+ [37] UserCode ::= ('x' | 'X') '-' ([a-z] | [A-Z])+ [38] Subcode ::= ([a-z] | [A-Z])+ The current REC reference the successors of RFC 1766, currently 5646 http://www.rfc-editor.org/rfc/rfc5646.txt langtag = language ["-" script] ["-" region] *("-" variant) *("-" extension) ["-" privateuse] language = 2*3ALPHA ; shortest ISO 639 code ["-" extlang] ; sometimes followed by ; extended language subtags / 4ALPHA ; or reserved for future use / 5*8ALPHA ; or registered language subtag extlang = 3ALPHA ; selected ISO 639 codes *2("-" 3ALPHA) ; permanently reserved script = 4ALPHA ; ISO 15924 code region = 2ALPHA ; ISO 3166-1 code / 3DIGIT ; UN M.49 code variant = 5*8alphanum ; registered variants / (DIGIT 3alphanum) extension = singleton 1*("-" (2*8alphanum)) ; Single alphanumerics ; "x" reserved for private use singleton = DIGIT ; 0 - 9 / %x41-57 ; A - W / %x59-5A ; Y - Z / %x61-77 ; a - w / %x79-7A ; y - z it sounds right to still allow Irregular i-xxx IANA and user codes too The parser below doesn't try to cope with extension or privateuse that could be added but that's not interoperable anyway )r;���ZxmlCheckLanguageID)�langr3���r���r���r����checkLanguageID���s���� r���c�����������������C���s���t��|�||�}|S��z#append the char value in the array )r;���ZxmlCopyChar)r2���r(��r����r3���r���r���r����copyChar���s����r���c�����������������C���s���t��|�|�}|S�r���)r;���ZxmlCopyCharMultiByte)r(��r����r3���r���r���r����copyCharMultiByte���s����r���c�����������������C���s(���t��|�||�}|du�rtd��t|d�S�)z�Create a parser context for an external entity Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. Nz"xmlCreateEntityParserCtxt() failedr|���)r;���ZxmlCreateEntityParserCtxtr!���r����)r ���ID�baser3���r���r���r����createEntityParserCtxt���s����r���c�����������������C���s$���t��|��}|du�rtd��t|d�S�)��Create a parser context for a file content. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time. Nz xmlCreateFileParserCtxt() failedr|���)r;���ZxmlCreateFileParserCtxtr!���r����r@��r���r���r����createFileParserCtxt���s���� r���c�����������������C���s&���t��|�|�}|du�rtd��t|d�S�)z7Create a parser context for an XML in-memory document. Nz"xmlCreateMemoryParserCtxt() failedr|���)r;���ZxmlCreateMemoryParserCtxtr!���r����r����r���r���r����createMemoryParserCtxt���s����r���c�����������������C���s&���t��|�|�}|du�rtd��t|d�S�)z�Create a parser context for a file or URL content. Automatic support for ZLIB/Compress compressed document is provided by default if found at compile-time and for file accesses NzxmlCreateURLParserCtxt() failedr|���)r;���ZxmlCreateURLParserCtxtr!���r����)r ��r��r3���r���r���r����createURLParserCtxt���s����r���c�����������������C���s&���t��|�|�}|du�rtd��t|d�S�)r���Nz!htmlCreateFileParserCtxt() failedr|���)r;����htmlCreateFileParserCtxtr!���r����r��r���r���r���r������s����r���c�������������������C���s���t�����dS�)zThis is a no-op now. N)r;����htmlInitAutoCloser���r���r���r���r������s����r���c�����������������C���s���t��|��}|S�)zgCheck whether the character is allowed by the production [84] Letter ::= BaseChar | Ideographic )r;���ZxmlIsLetter)�cr3���r���r���r����isLetter���s���� r���c�����������������C���s"���|�du�rd}n|�j�}t�|�}|S�)z.Pops the top element name from the name stack N)r&���r;����namePop�r�����ctxt__or3���r���r���r���r������s���� r���c�����������������C���s$���|�du�rd}n|�j�}t�||�}|S�)z3Pushes a new element name on top of the name stack N)r&���r;����namePush)r����r2��r���r3���r���r���r���r������s����r���c�����������������C���s8���|�du�rd}n|�j�}t�|�}|du�r.td��t|d�S�)z.Pops the top element node from the node stack NznodePop() failedr|���)r&���r;����nodePopr���r����r���r���r���r���r������s ���� r���c�����������������C���s8���|�du�rd}n|�j�}|du�r"d}n|j�}t�||�}|S�)z3Pushes a new element node on top of the node stack N)r&���r;����nodePush)r����r2��r���Zvalue__or3���r���r���r���r�����s����r���c�����������������C���s���t��|�||��dS�)zmInterface to parse an XML file or resource pointed by an URI to build an event flow to the SAX object N)r;���ZxmlSAXParseFile)�SAXr����Zrecoverr���r���r����SAXParseFile��s����r���c�����������������C���s&���t��|�|�}|du�rtd��t|d�S�)z1Create a libxml2 input buffer from a Python file NzxmlCreateInputBuffer() failedr|���)r;���r<���r����inputBuffer�rA���r����r3���r���r���r����createInputBuffer��s����r���c�����������������C���s&���t��|�|�}|du�rtd��t|d�S�)z2Create a libxml2 output buffer from a Python file NzxmlCreateOutputBuffer() failedr|���)r;���ZxmlCreateOutputBufferr����outputBufferr���r���r���r����createOutputBuffer��s����r���c�����������������C���s*���t��|�|||�}|du�r td��t|d�S�)z�Create a progressive XML parser context to build either an event flow if the SAX object is not None, or a DOM tree otherwise. NzxmlCreatePushParser() failedr|���)r;���ZxmlCreatePushParserr!���r�����r����chunkr����r����r3���r���r���r����createPushParser"��s����r���c�����������������C���s���t��|��}|S�)z�Switch on the generation of line number for elements nodes. Also returns the number of bytes allocated and not freed by libxml2 since memory debugging was switched on. )r;���ZxmlDebugMemory)Zactivater3���r���r���r����debugMemory*��s���� r���c�������������������C���s���t�����dS�)z/dump the memory allocated in the file .memdump N)r;���Z xmlDumpMemoryr���r���r���r���� dumpMemory1��s����r���c�����������������C���s*���t��|�|||�}|du�r td��t|d�S�)z�Create a progressive HTML parser context to build either an event flow if the SAX object is not None, or a DOM tree otherwise. NzhtmlCreatePushParser() failedr|���)r;����htmlCreatePushParserr!���r����r���r���r���r���r���5��s����r���c�����������������C���s���t��|�||��dS�)znInterface to parse an HTML file or resource pointed by an URI to build an event flow to the SAX object N)r;����htmlSAXParseFile)r���r����r����r���r���r���r���=��s����r���c������������������C���s���t����}�|�S�)z8Returns the total amount of memory allocated by libxml2 )r;���Z xmlMemoryUsedr��r���r���r���� memoryUsedB��s����r���c�����������������C���s$���t��|��}|du�rtd��t|d�S�)zCreate a new Node NzxmlNewNode() failedr|���)r;���Z xmlNewNoder���r����r��r���r���r����newNodeG��s���� r���c�������������������C���s���t�����dS�)a���Cleanup function for the XML library. It tries to reclaim all parsing related global memory allocated for the library processing. It doesn't deallocate any document related memory. Calling this function should not prevent reusing the library but one should call xmlCleanupParser() only when the process has finished using the library or XML document built with it. Nr����r���r���r���r����pythonCleanupParserM��s����r���c�����������������C���s���t��|��}|S�)z-Set the entity resolver as a python function )r;���ZxmlSetEntityLoader)Zresolverr3���r���r���r����setEntityLoaderW��s���� r���c�������������������C���s���t�����dS�)zFCleanup the default Schemas type library associated to RelaxNG N)r;���ZxmlRelaxNGCleanupTypesr���r���r���r����relaxNGCleanupTypes`��s����r���c������������������C���s���t����}�|�S�)z'Initialize the default type libraries. )r;���ZxmlRelaxNGInitTypesr��r���r���r����relaxNGInitTypese��s����r���c�����������������C���s&���t��|�|�}|du�rtd��t|d�S�)zmCreate an XML RelaxNGs parse context for that memory buffer expected to contain an XML RelaxNGs file. Nz#xmlRelaxNGNewMemParserCtxt() failedr|���)r;���ZxmlRelaxNGNewMemParserCtxtr!����relaxNgParserCtxtr����r���r���r����relaxNGNewMemParserCtxtj��s����r���c�����������������C���s$���t��|��}|du�rtd��t|d�S�)zmCreate an XML RelaxNGs parse context for that file/resource expected to contain an XML RelaxNGs file. Nz xmlRelaxNGNewParserCtxt() failedr|���)r;���ZxmlRelaxNGNewParserCtxtr!���r����r ��r3���r���r���r����relaxNGNewParserCtxtq��s���� r���c�����������������C���s���t��|�|||�}|S�)z�Builds the QName @prefix:@ncname in @memory if there is enough space and prefix is not None nor empty, otherwise allocate a new string. If prefix is None or empty it returns ncname. )r;���Z xmlBuildQName)Zncname�prefixZmemoryr2���r3���r���r���r���� buildQName|��s����r���c������������������C���s���t����}�|�S�)z3get the default compression mode used, ZLIB based. )r;���ZxmlGetCompressModer��r���r���r����compressMode���s����r���c�����������������C���s���t��|�|�}|S�)z7Try to find if the document correspond to an XHTML DTD )r;���Z xmlIsXHTML)rZ���ZpublicIDr3���r���r���r����isXHTML���s����r���c�����������������C���s$���t��|��}|du�rtd��t|d�S�)z-Creation of a new node containing a comment. NzxmlNewComment() failedr|���)r;���Z xmlNewCommentr���r�����rV���r3���r���r���r���� newComment���s���� r���c�����������������C���s$���t��|��}|du�rtd��t|d�S�)zCreates a new XML document NzxmlNewDoc() failedr|���)r;���Z xmlNewDocr���r����r��r���r���r����newDoc���s���� r���c�����������������C���s&���t��|�|�}|du�rtd��t|d�S�)zhCreation of a processing instruction element. Use xmlDocNewPI preferably to get string interning NzxmlNewPI() failedr|���)r;���ZxmlNewPIr���r����)rP���rV���r3���r���r���r����newPI���s����r���c�����������������C���s$���t��|��}|du�rtd��t|d�S�)zCreation of a new text node. NzxmlNewText() failedr|���)r;���Z xmlNewTextr���r����r���r���r���r����newText���s���� r���c�����������������C���s&���t��|�|�}|du�rtd��t|d�S�)zTCreation of a new text node with an extra parameter for the content's length NzxmlNewTextLen() failedr|���)r;���Z xmlNewTextLenr���r����)rV���r2���r3���r���r���r���� newTextLen���s����r���c�����������������C���s���t��|���dS�)zqset the default compression mode used, ZLIB based Correct values: 0 (uncompressed) to 9 (max compression) N)r;���ZxmlSetCompressMode)�moder���r���r����setCompressMode���s����r���c�����������������C���s���t��|�|�}|S�)z;Check that a value conforms to the lexical space of NCName )r;���ZxmlValidateNCName�r2���spacer3���r���r���r����validateNCName���s����r���c�����������������C���s���t��|�|�}|S�)z<Check that a value conforms to the lexical space of NMToken )r;���ZxmlValidateNMTokenr���r���r���r����validateNMToken���s����r���c�����������������C���s���t��|�|�}|S�)z9Check that a value conforms to the lexical space of Name )r;���ZxmlValidateNamer���r���r���r����validateName���s����r���c�����������������C���s���t��|�|�}|S�)z:Check that a value conforms to the lexical space of QName )r;���ZxmlValidateQNamer���r���r���r���� validateQName���s����r���c�����������������C���s���t��|��}|S�)z�Escaping routine, does not do validity checks ! It will try to escape the chars needing this, but this is heuristic based it's impossible to be sure. )r;���ZxmlURIEscape�r7���r3���r���r���r���� URIEscape���s���� r���c�����������������C���s���t��|�|�}|S�)zzThis routine escapes a string to hex, ignoring reserved characters (a-z) and the characters in the exception list. )r;���ZxmlURIEscapeStr)r7���r����r3���r���r���r����URIEscapeStr���s����r���c�����������������C���s���t��|�||�}|S�)z�Unescaping routine, but does not check that the string is an URI. The output is a direct unsigned char translation of %XX values (no encoding) Note that the length of the result can only be smaller or same size as the input string. )r;���ZxmlURIUnescapeString)r7���r2���rS���r3���r���r���r����URIUnescapeString���s����r���c�����������������C���s���t��|�|�}|S�)a!��Expresses the URI of the reference in terms relative to the base. Some examples of this operation include: base = "http://site1.com/docs/book1.html" URI input URI returned docs/pic1.gif pic1.gif docs/img/pic1.gif img/pic1.gif img/pic1.gif ../img/pic1.gif http://site1.com/docs/pic1.gif pic1.gif http://site2.com/docs/pic1.gif http://site2.com/docs/pic1.gif base = "docs/book1.html" URI input URI returned docs/pic1.gif pic1.gif docs/img/pic1.gif img/pic1.gif img/pic1.gif ../img/pic1.gif http://site1.com/docs/pic1.gif http://site1.com/docs/pic1.gif Note: if the URI reference is really weird or complicated, it may be worthwhile to first convert it into a "nice" one by calling xmlBuildURI (using 'base') before calling this routine, since this routine (for reasonable efficiency) assumes URI has already been through some validation. )r;���ZxmlBuildRelativeURI�r����r���r3���r���r���r����buildRelativeURI���s����r���c�����������������C���s���t��|�|�}|S�)a ��Computes he final URI of the reference done by checking that the given URI is valid, and building the final URI using the base URI. This is processed according to section 5.2 of the RFC 2396 5.2. Resolving Relative References to Absolute Form )r;���ZxmlBuildURIr���r���r���r����buildURI���s����r���c�����������������C���s���t��|��}|S�)z3Constructs a canonic path from the specified path. )r;���ZxmlCanonicPath��pathr3���r���r���r����canonicPath���s���� r���c������������������C���s"���t����}�|�du�rtd��t|�d�S�)zSimply creates an empty xmlURI NzxmlCreateURI() failedr|���)r;���ZxmlCreateURIr"���r����r��r���r���r���� createURI��s����r���c�����������������C���s���t��|��}|S�)z�Applies the 5 normalization steps to a path string--that is, RFC 2396 Section 5.2, steps 6.c through 6.g. Normalization occurs directly on the string, no new allocation is done )r;���ZxmlNormalizeURIPathr���r���r���r����normalizeURIPath ��s���� r���c�����������������C���s$���t��|��}|du�rtd��t|d�S�)zfParse an URI based on RFC 3986 URI-reference = [ absoluteURI | relativeURI ] [ "#" fragment ] NzxmlParseURI() failedr|���)r;���ZxmlParseURIr"���r����r���r���r���r����parseURI��s���� r���c�����������������C���s&���t��|�|�}|du�rtd��t|d�S�)zjParse an URI but allows to keep intact the original fragments. URI-reference = URI / relative-ref NzxmlParseURIRaw() failedr|���)r;���ZxmlParseURIRawr"���r����)r7����rawr3���r���r���r����parseURIRaw��s����r���c�����������������C���s���t��|��}|S�)z/Constructs an URI expressing the existing path )r;���ZxmlPathToURIr���r���r���r���� pathToURI ��s���� r���c������������������C���s"���t����}�|�du�rtd��t|�d�S�)z)Allocate a validation context structure. NzxmlNewValidCtxt() failedr|���)r;���ZxmlNewValidCtxtr���� ValidCtxtr��r���r���r����newValidCtxt)��s����r���c�����������������C���s���t��|��}|S�)z4Validate that the given value match Name production )r;���ZxmlValidateNameValuer1��r���r���r����validateNameValue/��s���� r���c�����������������C���s���t��|��}|S�)z5Validate that the given value match Names production )r;���ZxmlValidateNamesValuer1��r���r���r����validateNamesValue4��s���� r���c�����������������C���s���t��|��}|S�)zRValidate that the given value match Nmtoken production [ VC: Name Token ] )r;���ZxmlValidateNmtokenValuer1��r���r���r����validateNmtokenValue9��s���� r���c�����������������C���s���t��|��}|S�)zSValidate that the given value match Nmtokens production [ VC: Name Token ] )r;���ZxmlValidateNmtokensValuer1��r���r���r����validateNmtokensValue?��s���� r���c�����������������C���s���t��|��}|S�)z�function checks to see if @path is a valid source (file, socket...) for XML. if stat is not available on the target machine, )r;���ZxmlCheckFilenamer���r���r���r���� checkFilenameI��s���� r���c�������������������C���s���t�����dS�)zRclears the entire input callback table. this includes the compiled-in I/O. N)r;���ZxmlCleanupInputCallbacksr���r���r���r����cleanupInputCallbacksP��s����r���c�������������������C���s���t�����dS�)z]clears the entire output callback table. this includes the compiled-in I/O callbacks. N)r;���ZxmlCleanupOutputCallbacksr���r���r���r����cleanupOutputCallbacksU��s����r���c�����������������C���s���t��|��}|S�)zinput from FILE * )r;���ZxmlFileMatchr@��r���r���r���� fileMatchZ��s���� r���c�����������������C���s���t��|��}|S�)z$check if the URI matches an FTP one )r;���Z xmlIOFTPMatchr@��r���r���r���� iOFTPMatch_��s���� r���c�����������������C���s���t��|��}|S�)z%check if the URI matches an HTTP one )r;���ZxmlIOHTTPMatchr@��r���r���r����iOHTTPMatchd��s���� r���c�����������������C���s���t��|��}|S�)z\This function is obsolete. Please see xmlURIFromPath in uri.c for a better solution. )r;���ZxmlNormalizeWindowsPathr���r���r���r����normalizeWindowsPathi��s���� r���c�����������������C���s���t��|��}|S�)z#lookup the directory for that file )r;���ZxmlParserGetDirectoryr@��r���r���r����parserGetDirectoryo��s���� r���c������������������C���s���t����}�|�S�)zaRemove the top output callbacks from the output stack. This includes the compiled-in I/O. )r;���ZxmlPopOutputCallbacksr��r���r���r����popOutputCallbackst��s����r���c�������������������C���s���t�����dS��z0Registers the default compiled-in I/O handlers. N)r;���Z xmlRegisterDefaultInputCallbacksr���r���r���r����registerDefaultInputCallbacksz��s����r���c�������������������C���s���t�����dS�r���)r;���Z!xmlRegisterDefaultOutputCallbacksr���r���r���r����registerDefaultOutputCallbacks~��s����r���c�������������������C���s���t�����dS�)z�By default, libxml submits HTTP output requests using the "PUT" method. Calling this method changes the HTTP output method to use the "POST" method instead. N)r;���ZxmlRegisterHTTPPostCallbacksr���r���r���r����registerHTTPPostCallbacks���s����r���c������������������C���s"���t����}�|�du�rtd��t|�d�S�)zaGet the last global error registered. This is per thread if compiled with thread support. NzxmlGetLastError() failedr|���)r;���ZxmlGetLastErrorr����Errorr��r���r���r���� lastError���s����r���c�������������������C���s���t�����dS�)ztCleanup the last global error registered. For parsing error this does not change the well-formedness result. N)r;���ZxmlResetLastErrorr���r���r���r����resetLastError���s����r���c�����������������C���s$���t��|��}|du�rtd��t|d�S�)zGCreate an xmlTextReader structure fed with the resource at @URI Nz!xmlNewTextReaderFilename() failedr|���)r;���ZxmlNewTextReaderFilenamer���� xmlTextReaderr:��r���r���r����newTextReaderFilename���s���� r���c�����������������C���s*���t��|�|||�}|du�r td��t|d�S�)�~Create an xmltextReader for an XML in-memory document. The parsing flags @options are a combination of xmlParserOption. NzxmlReaderForDoc() failedr|���)r;���ZxmlReaderForDocr���r���r��r���r���r����readerForDoc���s����r���c�����������������C���s*���t��|�|||�}|du�r td��t|d�S�)z�Create an xmltextReader for an XML from a file descriptor. The parsing flags @options are a combination of xmlParserOption. NOTE that the file descriptor will not be closed when the reader is closed or reset. NzxmlReaderForFd() failedr|���)r;���ZxmlReaderForFdr���r���r��r���r���r����readerForFd���s����r���c�����������������C���s(���t��|�||�}|du�rtd��t|d�S�)z}parse an XML file from the filesystem or the network. The parsing flags @options are a combination of xmlParserOption. NzxmlReaderForFile() failedr|���)r;���ZxmlReaderForFiler���r���r��r���r���r���� readerForFile���s����r���c�����������������C���s,���t��|�||||�}|du�r"td��t|d�S�)r���NzxmlReaderForMemory() failedr|���)r;���ZxmlReaderForMemoryr���r���r��r���r���r����readerForMemory���s����r���c�����������������C���s$���t��|��}|du�rtd��t|d�S�)z�Parses a regular expression conforming to XML Schemas Part 2 Datatype Appendix F and builds an automata suitable for testing strings against that regular expression NzxmlRegexpCompile() failedr|���)r;���ZxmlRegexpCompiler����xmlReg)Zregexpr3���r���r���r���� regexpCompile���s���� r���c�����������������C���s&���t��|�|�}|du�rtd��t|d�S�)zkCreate an XML Schemas parse context for that memory buffer expected to contain an XML Schemas file. Nz"xmlSchemaNewMemParserCtxt() failedr|���)r;���ZxmlSchemaNewMemParserCtxtr!����SchemaParserCtxtr����r���r���r����schemaNewMemParserCtxt���s����r��c�����������������C���s$���t��|��}|du�rtd��t|d�S�)zkCreate an XML Schemas parse context for that file/resource expected to contain an XML Schemas file. NzxmlSchemaNewParserCtxt() failedr|���)r;���ZxmlSchemaNewParserCtxtr!���r��r���r���r���r����schemaNewParserCtxt���s���� r��c�������������������C���s���t�����dS�)z-Cleanup the default XML Schemas type library N)r;���ZxmlSchemaCleanupTypesr���r���r���r����schemaCleanupTypes���s����r��c�����������������C���s���t��|��}|S�)z1Removes and normalize white spaces in the string )r;���ZxmlSchemaCollapseStringr1��r���r���r����schemaCollapseString���s���� r��c�������������������C���s���t�����dS�)z0Initialize the default XML Schemas type library N)r;���ZxmlSchemaInitTypesr���r���r���r����schemaInitTypes���s����r��c�����������������C���s���t��|��}|S�)z(Replaces 0xd, 0x9 and 0xa with a space. )r;���ZxmlSchemaWhiteSpaceReplacer1��r���r���r����schemaWhiteSpaceReplace���s���� r��c�����������������C���s���t��|�|�}|S�)zcompares the two UCS4 values )r;���ZxmlUTF8Charcmp)Zutf1Zutf2r3���r���r���r����UTF8Charcmp���s����r��c�����������������C���s���t��|��}|S�)z1calculates the internal size of a UTF8 character )r;���ZxmlUTF8Size��utfr3���r���r���r����UTF8Size���s���� r��c�����������������C���s���t��|��}|S�)zncompute the length of an UTF8 string, it doesn't do a full UTF8 checking of the content of the string. )r;���Z xmlUTF8Strlenr ��r���r���r���� UTF8Strlen��s���� r��c�����������������C���s���t��|�|�}|S�)z;a function to provide the relative location of a UTF8 char )r;���Z xmlUTF8Strloc)r ��Zutfcharr3���r���r���r���� UTF8Strloc ��s����r ��c�����������������C���s���t��|�|�}|S�)za strndup for array of UTF8's )r;���ZxmlUTF8Strndup�r ��r2���r3���r���r���r����UTF8Strndup��s����r��c�����������������C���s���t��|�|�}|S�)zXa function to provide the equivalent of fetching a character from a string array )r;���Z xmlUTF8Strpos)r ���posr3���r���r���r���� UTF8Strpos��s����r��c�����������������C���s���t��|�|�}|S�)zgstorage size of an UTF8 string the behaviour is not guaranteed if the input string is not UTF-8 )r;���ZxmlUTF8Strsizer��r���r���r����UTF8Strsize��s����r��c�����������������C���s���t��|�||�}|S�)zgCreate a substring from a given UTF-8 string Note: positions are given in units of UTF-8 chars )r;���Z xmlUTF8Strsub)r ���startr2���r3���r���r���r���� UTF8Strsub��s����r��c�����������������C���s���t��|��}|S�)as��Checks @utf for being valid UTF-8. @utf is assumed to be null-terminated. This function is not super-strict, as it will allow longer UTF-8 sequences than necessary. Note that Java is capable of producing these sequences if provoked. Also note, this routine checks for the 4-byte maximum size, but does not check for 0x10ffff maximum value. )r;���ZxmlCheckUTF8r ��r���r���r���� checkUTF8%��s���� r��c�����������������C���s���t��|��}|S�)zFCheck whether the character is part of AegeanNumbers UCS Block )r;���ZxmlUCSIsAegeanNumbers��coder3���r���r���r����uCSIsAegeanNumbers3��s���� r��c�����������������C���s���t��|��}|S�)zTCheck whether the character is part of AlphabeticPresentationForms UCS Block )r;���Z#xmlUCSIsAlphabeticPresentationFormsr��r���r���r���� uCSIsAlphabeticPresentationForms9��s���� r��c�����������������C���s���t��|��}|S�)z8Check whether the character is part of Arabic UCS Block )r;���ZxmlUCSIsArabicr��r���r���r����uCSIsArabic?��s���� r��c�����������������C���s���t��|��}|S�)zRCheck whether the character is part of ArabicPresentationForms-A UCS Block )r;���Z xmlUCSIsArabicPresentationFormsAr��r���r���r����uCSIsArabicPresentationFormsAD��s���� r��c�����������������C���s���t��|��}|S�)zRCheck whether the character is part of ArabicPresentationForms-B UCS Block )r;���Z xmlUCSIsArabicPresentationFormsBr��r���r���r����uCSIsArabicPresentationFormsBJ��s���� r��c�����������������C���s���t��|��}|S�)z:Check whether the character is part of Armenian UCS Block )r;���ZxmlUCSIsArmenianr��r���r���r���� uCSIsArmenianP��s���� r��c�����������������C���s���t��|��}|S�)z8Check whether the character is part of Arrows UCS Block )r;���ZxmlUCSIsArrowsr��r���r���r����uCSIsArrowsU��s���� r��c�����������������C���s���t��|��}|S�)z<Check whether the character is part of BasicLatin UCS Block )r;���ZxmlUCSIsBasicLatinr��r���r���r����uCSIsBasicLatinZ��s���� r��c�����������������C���s���t��|��}|S�)z9Check whether the character is part of Bengali UCS Block )r;���ZxmlUCSIsBengalir��r���r���r����uCSIsBengali_��s���� r ��c�����������������C���s���t��|�|�}|S�)z5Check whether the character is part of the UCS Block )r;���Z xmlUCSIsBlock)r���blockr3���r���r���r���� uCSIsBlockd��s����r"��c�����������������C���s���t��|��}|S�)zFCheck whether the character is part of BlockElements UCS Block )r;���ZxmlUCSIsBlockElementsr��r���r���r����uCSIsBlockElementsi��s���� r#��c�����������������C���s���t��|��}|S�)z:Check whether the character is part of Bopomofo UCS Block )r;���ZxmlUCSIsBopomofor��r���r���r���� uCSIsBopomofoo��s���� r$��c�����������������C���s���t��|��}|S�)zICheck whether the character is part of BopomofoExtended UCS Block )r;���ZxmlUCSIsBopomofoExtendedr��r���r���r����uCSIsBopomofoExtendedt��s���� r%��c�����������������C���s���t��|��}|S�)z<Check whether the character is part of BoxDrawing UCS Block )r;���ZxmlUCSIsBoxDrawingr��r���r���r����uCSIsBoxDrawingz��s���� r&��c�����������������C���s���t��|��}|S�)zHCheck whether the character is part of BraillePatterns UCS Block )r;���ZxmlUCSIsBraillePatternsr��r���r���r����uCSIsBraillePatterns��s���� r'��c�����������������C���s���t��|��}|S�)z7Check whether the character is part of Buhid UCS Block )r;���Z xmlUCSIsBuhidr��r���r���r���� uCSIsBuhid���s���� r(��c�����������������C���s���t��|��}|S�)zPCheck whether the character is part of ByzantineMusicalSymbols UCS Block )r;���ZxmlUCSIsByzantineMusicalSymbolsr��r���r���r����uCSIsByzantineMusicalSymbols���s���� r)��c�����������������C���s���t��|��}|S�)zICheck whether the character is part of CJKCompatibility UCS Block )r;���ZxmlUCSIsCJKCompatibilityr��r���r���r����uCSIsCJKCompatibility���s���� r*��c�����������������C���s���t��|��}|S�)zNCheck whether the character is part of CJKCompatibilityForms UCS Block )r;���ZxmlUCSIsCJKCompatibilityFormsr��r���r���r����uCSIsCJKCompatibilityForms���s���� r+��c�����������������C���s���t��|��}|S�)zSCheck whether the character is part of CJKCompatibilityIdeographs UCS Block )r;���Z"xmlUCSIsCJKCompatibilityIdeographsr��r���r���r����uCSIsCJKCompatibilityIdeographs���s���� r,��c�����������������C���s���t��|��}|S�)z]Check whether the character is part of CJKCompatibilityIdeographsSupplement UCS Block )r;���Z,xmlUCSIsCJKCompatibilityIdeographsSupplementr��r���r���r����)uCSIsCJKCompatibilityIdeographsSupplement���s���� r-��c�����������������C���s���t��|��}|S�)zNCheck whether the character is part of CJKRadicalsSupplement UCS Block )r;���ZxmlUCSIsCJKRadicalsSupplementr��r���r���r����uCSIsCJKRadicalsSupplement���s���� r.��c�����������������C���s���t��|��}|S�)zQCheck whether the character is part of CJKSymbolsandPunctuation UCS Block )r;���Z xmlUCSIsCJKSymbolsandPunctuationr��r���r���r����uCSIsCJKSymbolsandPunctuation���s���� r/��c�����������������C���s���t��|��}|S�)zMCheck whether the character is part of CJKUnifiedIdeographs UCS Block )r;���ZxmlUCSIsCJKUnifiedIdeographsr��r���r���r����uCSIsCJKUnifiedIdeographs���s���� r0��c�����������������C���s���t��|��}|S�)zWCheck whether the character is part of CJKUnifiedIdeographsExtensionA UCS Block )r;���Z&xmlUCSIsCJKUnifiedIdeographsExtensionAr��r���r���r����#uCSIsCJKUnifiedIdeographsExtensionA���s���� r1��c�����������������C���s���t��|��}|S�)zWCheck whether the character is part of CJKUnifiedIdeographsExtensionB UCS Block )r;���Z&xmlUCSIsCJKUnifiedIdeographsExtensionBr��r���r���r����#uCSIsCJKUnifiedIdeographsExtensionB���s���� r2��c�����������������C���s���t��|�|�}|S�)z8Check whether the character is part of the UCS Category )r;���ZxmlUCSIsCat)r���catr3���r���r���r����uCSIsCat���s����r4��c�����������������C���s���t��|��}|S�)z6Check whether the character is part of C UCS Category )r;���ZxmlUCSIsCatCr��r���r���r���� uCSIsCatC���s���� r5��c�����������������C���s���t��|��}|S�)z7Check whether the character is part of Cc UCS Category )r;���Z xmlUCSIsCatCcr��r���r���r���� uCSIsCatCc���s���� r6��c�����������������C���s���t��|��}|S�)z7Check whether the character is part of Cf UCS Category )r;���Z xmlUCSIsCatCfr��r���r���r���� uCSIsCatCf���s���� r7��c�����������������C���s���t��|��}|S�)z7Check whether the character is part of Co UCS Category )r;���Z xmlUCSIsCatCor��r���r���r���� uCSIsCatCo���s���� r8��c�����������������C���s���t��|��}|S�)z7Check whether the character is part of Cs UCS Category )r;���Z xmlUCSIsCatCsr��r���r���r���� uCSIsCatCs���s���� r9��c�����������������C���s���t��|��}|S�)z6Check whether the character is part of L UCS Category )r;���ZxmlUCSIsCatLr��r���r���r���� uCSIsCatL���s���� r:��c�����������������C���s���t��|��}|S�)z7Check whether the character is part of Ll UCS Category )r;���Z xmlUCSIsCatLlr��r���r���r���� uCSIsCatLl���s���� r;��c�����������������C���s���t��|��}|S�)z7Check whether the character is part of Lm UCS Category )r;���Z xmlUCSIsCatLmr��r���r���r���� uCSIsCatLm���s���� r<��c�����������������C���s���t��|��}|S�)z7Check whether the character is part of Lo UCS Category )r;���Z xmlUCSIsCatLor��r���r���r���� uCSIsCatLo���s���� r=��c�����������������C���s���t��|��}|S�)z7Check whether the character is part of Lt UCS Category )r;���Z xmlUCSIsCatLtr��r���r���r���� uCSIsCatLt���s���� r>��c�����������������C���s���t��|��}|S�)z7Check whether the character is part of Lu UCS Category )r;���Z xmlUCSIsCatLur��r���r���r���� uCSIsCatLu���s���� r?��c�����������������C���s���t��|��}|S�)z6Check whether the character is part of M UCS Category )r;���ZxmlUCSIsCatMr��r���r���r���� uCSIsCatM ��s���� r@��c�����������������C���s���t��|��}|S�)z7Check whether the character is part of Mc UCS Category )r;���Z xmlUCSIsCatMcr��r���r���r���� uCSIsCatMc ��s���� rA��c�����������������C���s���t��|��}|S�)z7Check whether the character is part of Me UCS Category )r;���Z xmlUCSIsCatMer��r���r���r���� uCSIsCatMe ��s���� rB��c�����������������C���s���t��|��}|S�)z7Check whether the character is part of Mn UCS Category )r;���Z xmlUCSIsCatMnr��r���r���r���� uCSIsCatMn ��s���� rC��c�����������������C���s���t��|��}|S�)z6Check whether the character is part of N UCS Category )r;���ZxmlUCSIsCatNr��r���r���r���� uCSIsCatN ��s���� rD��c�����������������C���s���t��|��}|S�)z7Check whether the character is part of Nd UCS Category )r;���Z xmlUCSIsCatNdr��r���r���r���� uCSIsCatNd ��s���� rE��c�����������������C���s���t��|��}|S�)z7Check whether the character is part of Nl UCS Category )r;���Z xmlUCSIsCatNlr��r���r���r���� uCSIsCatNl ��s���� rF��c�����������������C���s���t��|��}|S�)z7Check whether the character is part of No UCS Category )r;���Z xmlUCSIsCatNor��r���r���r���� uCSIsCatNo% ��s���� rG��c�����������������C���s���t��|��}|S�)z6Check whether the character is part of P UCS Category )r;���ZxmlUCSIsCatPr��r���r���r���� uCSIsCatP* ��s���� rH��c�����������������C���s���t��|��}|S�)z7Check whether the character is part of Pc UCS Category )r;���Z xmlUCSIsCatPcr��r���r���r���� uCSIsCatPc/ ��s���� rI��c�����������������C���s���t��|��}|S�)z7Check whether the character is part of Pd UCS Category )r;���Z xmlUCSIsCatPdr��r���r���r���� uCSIsCatPd4 ��s���� rJ��c�����������������C���s���t��|��}|S�)z7Check whether the character is part of Pe UCS Category )r;���Z xmlUCSIsCatPer��r���r���r���� uCSIsCatPe9 ��s���� rK��c�����������������C���s���t��|��}|S�)z7Check whether the character is part of Pf UCS Category )r;���Z xmlUCSIsCatPfr��r���r���r���� uCSIsCatPf> ��s���� rL��c�����������������C���s���t��|��}|S�)z7Check whether the character is part of Pi UCS Category )r;���Z xmlUCSIsCatPir��r���r���r���� uCSIsCatPiC ��s���� rM��c�����������������C���s���t��|��}|S�)z7Check whether the character is part of Po UCS Category )r;���Z xmlUCSIsCatPor��r���r���r���� uCSIsCatPoH ��s���� rN��c�����������������C���s���t��|��}|S�)z7Check whether the character is part of Ps UCS Category )r;���Z xmlUCSIsCatPsr��r���r���r���� uCSIsCatPsM ��s���� rO��c�����������������C���s���t��|��}|S�)z6Check whether the character is part of S UCS Category )r;���ZxmlUCSIsCatSr��r���r���r���� uCSIsCatSR ��s���� rP��c�����������������C���s���t��|��}|S�)z7Check whether the character is part of Sc UCS Category )r;���Z xmlUCSIsCatScr��r���r���r���� uCSIsCatScW ��s���� rQ��c�����������������C���s���t��|��}|S�)z7Check whether the character is part of Sk UCS Category )r;���Z xmlUCSIsCatSkr��r���r���r���� uCSIsCatSk\ ��s���� rR��c�����������������C���s���t��|��}|S�)z7Check whether the character is part of Sm UCS Category )r;���Z xmlUCSIsCatSmr��r���r���r���� uCSIsCatSma ��s���� rS��c�����������������C���s���t��|��}|S�)z7Check whether the character is part of So UCS Category )r;���Z xmlUCSIsCatSor��r���r���r���� uCSIsCatSof ��s���� rT��c�����������������C���s���t��|��}|S�)z6Check whether the character is part of Z UCS Category )r;���ZxmlUCSIsCatZr��r���r���r���� uCSIsCatZk ��s���� rU��c�����������������C���s���t��|��}|S�)z7Check whether the character is part of Zl UCS Category )r;���Z xmlUCSIsCatZlr��r���r���r���� uCSIsCatZlp ��s���� rV��c�����������������C���s���t��|��}|S�)z7Check whether the character is part of Zp UCS Category )r;���Z xmlUCSIsCatZpr��r���r���r���� uCSIsCatZpu ��s���� rW��c�����������������C���s���t��|��}|S�)z7Check whether the character is part of Zs UCS Category )r;���Z xmlUCSIsCatZsr��r���r���r���� uCSIsCatZsz ��s���� rX��c�����������������C���s���t��|��}|S�)z:Check whether the character is part of Cherokee UCS Block )r;���ZxmlUCSIsCherokeer��r���r���r���� uCSIsCherokee ��s���� rY��c�����������������C���s���t��|��}|S�)zRCheck whether the character is part of CombiningDiacriticalMarks UCS Block )r;���Z!xmlUCSIsCombiningDiacriticalMarksr��r���r���r����uCSIsCombiningDiacriticalMarks� ��s���� rZ��c�����������������C���s���t��|��}|S�)z\Check whether the character is part of CombiningDiacriticalMarksforSymbols UCS Block )r;���Z+xmlUCSIsCombiningDiacriticalMarksforSymbolsr��r���r���r����(uCSIsCombiningDiacriticalMarksforSymbols� ��s���� r[��c�����������������C���s���t��|��}|S�)zKCheck whether the character is part of CombiningHalfMarks UCS Block )r;���ZxmlUCSIsCombiningHalfMarksr��r���r���r����uCSIsCombiningHalfMarks� ��s���� r\��c�����������������C���s���t��|��}|S�)zQCheck whether the character is part of CombiningMarksforSymbols UCS Block )r;���Z xmlUCSIsCombiningMarksforSymbolsr��r���r���r����uCSIsCombiningMarksforSymbols� ��s���� r]��c�����������������C���s���t��|��}|S�)zHCheck whether the character is part of ControlPictures UCS Block )r;���ZxmlUCSIsControlPicturesr��r���r���r����uCSIsControlPictures� ��s���� r^��c�����������������C���s���t��|��}|S�)zHCheck whether the character is part of CurrencySymbols UCS Block )r;���ZxmlUCSIsCurrencySymbolsr��r���r���r����uCSIsCurrencySymbols� ��s���� r_��c�����������������C���s���t��|��}|S�)zICheck whether the character is part of CypriotSyllabary UCS Block )r;���ZxmlUCSIsCypriotSyllabaryr��r���r���r����uCSIsCypriotSyllabary� ��s���� r`��c�����������������C���s���t��|��}|S�)z:Check whether the character is part of Cyrillic UCS Block )r;���ZxmlUCSIsCyrillicr��r���r���r���� uCSIsCyrillic� ��s���� ra��c�����������������C���s���t��|��}|S�)zKCheck whether the character is part of CyrillicSupplement UCS Block )r;���ZxmlUCSIsCyrillicSupplementr��r���r���r����uCSIsCyrillicSupplement� ��s���� rb��c�����������������C���s���t��|��}|S�)z9Check whether the character is part of Deseret UCS Block )r;���ZxmlUCSIsDeseretr��r���r���r����uCSIsDeseret� ��s���� rc��c�����������������C���s���t��|��}|S�)z<Check whether the character is part of Devanagari UCS Block )r;���ZxmlUCSIsDevanagarir��r���r���r����uCSIsDevanagari� ��s���� rd��c�����������������C���s���t��|��}|S�)z:Check whether the character is part of Dingbats UCS Block )r;���ZxmlUCSIsDingbatsr��r���r���r���� uCSIsDingbats� ��s���� re��c�����������������C���s���t��|��}|S�)zNCheck whether the character is part of EnclosedAlphanumerics UCS Block )r;���ZxmlUCSIsEnclosedAlphanumericsr��r���r���r����uCSIsEnclosedAlphanumerics� ��s���� rf��c�����������������C���s���t��|��}|S�)zTCheck whether the character is part of EnclosedCJKLettersandMonths UCS Block )r;���Z#xmlUCSIsEnclosedCJKLettersandMonthsr��r���r���r���� uCSIsEnclosedCJKLettersandMonths� ��s���� rg��c�����������������C���s���t��|��}|S�)z:Check whether the character is part of Ethiopic UCS Block )r;���ZxmlUCSIsEthiopicr��r���r���r���� uCSIsEthiopic� ��s���� rh��c�����������������C���s���t��|��}|S�)zKCheck whether the character is part of GeneralPunctuation UCS Block )r;���ZxmlUCSIsGeneralPunctuationr��r���r���r����uCSIsGeneralPunctuation� ��s���� ri��c�����������������C���s���t��|��}|S�)zHCheck whether the character is part of GeometricShapes UCS Block )r;���ZxmlUCSIsGeometricShapesr��r���r���r����uCSIsGeometricShapes� ��s���� rj��c�����������������C���s���t��|��}|S�)z:Check whether the character is part of Georgian UCS Block )r;���ZxmlUCSIsGeorgianr��r���r���r���� uCSIsGeorgian� ��s���� rk��c�����������������C���s���t��|��}|S�)z8Check whether the character is part of Gothic UCS Block )r;���ZxmlUCSIsGothicr��r���r���r����uCSIsGothic� ��s���� rl��c�����������������C���s���t��|��}|S�)z7Check whether the character is part of Greek UCS Block )r;���Z xmlUCSIsGreekr��r���r���r���� uCSIsGreek� ��s���� rm��c�����������������C���s���t��|��}|S�)zFCheck whether the character is part of GreekExtended UCS Block )r;���ZxmlUCSIsGreekExtendedr��r���r���r����uCSIsGreekExtended� ��s���� rn��c�����������������C���s���t��|��}|S�)zGCheck whether the character is part of GreekandCoptic UCS Block )r;���ZxmlUCSIsGreekandCopticr��r���r���r����uCSIsGreekandCoptic� ��s���� ro��c�����������������C���s���t��|��}|S�)z:Check whether the character is part of Gujarati UCS Block )r;���ZxmlUCSIsGujaratir��r���r���r���� uCSIsGujarati� ��s���� rp��c�����������������C���s���t��|��}|S�)z:Check whether the character is part of Gurmukhi UCS Block )r;���ZxmlUCSIsGurmukhir��r���r���r���� uCSIsGurmukhi ��s���� rq��c�����������������C���s���t��|��}|S�)zSCheck whether the character is part of HalfwidthandFullwidthForms UCS Block )r;���Z"xmlUCSIsHalfwidthandFullwidthFormsr��r���r���r����uCSIsHalfwidthandFullwidthForms ��s���� rr��c�����������������C���s���t��|��}|S�)zPCheck whether the character is part of HangulCompatibilityJamo UCS Block )r;���ZxmlUCSIsHangulCompatibilityJamor��r���r���r����uCSIsHangulCompatibilityJamo ��s���� rs��c�����������������C���s���t��|��}|S�)z<Check whether the character is part of HangulJamo UCS Block )r;���ZxmlUCSIsHangulJamor��r���r���r����uCSIsHangulJamo ��s���� rt��c�����������������C���s���t��|��}|S�)zHCheck whether the character is part of HangulSyllables UCS Block )r;���ZxmlUCSIsHangulSyllablesr��r���r���r����uCSIsHangulSyllables ��s���� ru��c�����������������C���s���t��|��}|S�)z9Check whether the character is part of Hanunoo UCS Block )r;���ZxmlUCSIsHanunoor��r���r���r����uCSIsHanunoo! ��s���� rv��c�����������������C���s���t��|��}|S�)z8Check whether the character is part of Hebrew UCS Block )r;���ZxmlUCSIsHebrewr��r���r���r����uCSIsHebrew& ��s���� rw��c�����������������C���s���t��|��}|S�)zQCheck whether the character is part of HighPrivateUseSurrogates UCS Block )r;���Z xmlUCSIsHighPrivateUseSurrogatesr��r���r���r����uCSIsHighPrivateUseSurrogates+ ��s���� rx��c�����������������C���s���t��|��}|S�)zGCheck whether the character is part of HighSurrogates UCS Block )r;���ZxmlUCSIsHighSurrogatesr��r���r���r����uCSIsHighSurrogates1 ��s���� ry��c�����������������C���s���t��|��}|S�)z:Check whether the character is part of Hiragana UCS Block )r;���ZxmlUCSIsHiraganar��r���r���r���� uCSIsHiragana7 ��s���� rz��c�����������������C���s���t��|��}|S�)zFCheck whether the character is part of IPAExtensions UCS Block )r;���ZxmlUCSIsIPAExtensionsr��r���r���r����uCSIsIPAExtensions< ��s���� r{��c�����������������C���s���t��|��}|S�)zYCheck whether the character is part of IdeographicDescriptionCharacters UCS Block )r;���Z(xmlUCSIsIdeographicDescriptionCharactersr��r���r���r����%uCSIsIdeographicDescriptionCharactersB ��s���� r|��c�����������������C���s���t��|��}|S�)z8Check whether the character is part of Kanbun UCS Block )r;���ZxmlUCSIsKanbunr��r���r���r����uCSIsKanbunH ��s���� r}��c�����������������C���s���t��|��}|S�)zGCheck whether the character is part of KangxiRadicals UCS Block )r;���ZxmlUCSIsKangxiRadicalsr��r���r���r����uCSIsKangxiRadicalsM ��s���� r~��c�����������������C���s���t��|��}|S�)z9Check whether the character is part of Kannada UCS Block )r;���ZxmlUCSIsKannadar��r���r���r����uCSIsKannadaS ��s���� r��c�����������������C���s���t��|��}|S�)z:Check whether the character is part of Katakana UCS Block )r;���ZxmlUCSIsKatakanar��r���r���r���� uCSIsKatakanaX ��s���� r���c�����������������C���s���t��|��}|S�)zSCheck whether the character is part of KatakanaPhoneticExtensions UCS Block )r;���Z"xmlUCSIsKatakanaPhoneticExtensionsr��r���r���r����uCSIsKatakanaPhoneticExtensions] ��s���� r���c�����������������C���s���t��|��}|S�)z7Check whether the character is part of Khmer UCS Block )r;���Z xmlUCSIsKhmerr��r���r���r���� uCSIsKhmerc ��s���� r���c�����������������C���s���t��|��}|S�)zECheck whether the character is part of KhmerSymbols UCS Block )r;���ZxmlUCSIsKhmerSymbolsr��r���r���r����uCSIsKhmerSymbolsh ��s���� r���c�����������������C���s���t��|��}|S�)z5Check whether the character is part of Lao UCS Block )r;���ZxmlUCSIsLaor��r���r���r����uCSIsLaon ��s���� r���c�����������������C���s���t��|��}|S�)zJCheck whether the character is part of Latin-1Supplement UCS Block )r;���ZxmlUCSIsLatin1Supplementr��r���r���r����uCSIsLatin1Supplements ��s���� r���c�����������������C���s���t��|��}|S�)zHCheck whether the character is part of LatinExtended-A UCS Block )r;���ZxmlUCSIsLatinExtendedAr��r���r���r����uCSIsLatinExtendedAy ��s���� r���c�����������������C���s���t��|��}|S�)zPCheck whether the character is part of LatinExtendedAdditional UCS Block )r;���ZxmlUCSIsLatinExtendedAdditionalr��r���r���r����uCSIsLatinExtendedAdditional ��s���� r���c�����������������C���s���t��|��}|S�)zHCheck whether the character is part of LatinExtended-B UCS Block )r;���ZxmlUCSIsLatinExtendedBr��r���r���r����uCSIsLatinExtendedB� ��s���� r���c�����������������C���s���t��|��}|S�)zJCheck whether the character is part of LetterlikeSymbols UCS Block )r;���ZxmlUCSIsLetterlikeSymbolsr��r���r���r����uCSIsLetterlikeSymbols� ��s���� r���c�����������������C���s���t��|��}|S�)z7Check whether the character is part of Limbu UCS Block )r;���Z xmlUCSIsLimbur��r���r���r���� uCSIsLimbu� ��s���� r���c�����������������C���s���t��|��}|S�)zICheck whether the character is part of LinearBIdeograms UCS Block )r;���ZxmlUCSIsLinearBIdeogramsr��r���r���r����uCSIsLinearBIdeograms� ��s���� r���c�����������������C���s���t��|��}|S�)zICheck whether the character is part of LinearBSyllabary UCS Block )r;���ZxmlUCSIsLinearBSyllabaryr��r���r���r����uCSIsLinearBSyllabary� ��s���� r���c�����������������C���s���t��|��}|S�)zFCheck whether the character is part of LowSurrogates UCS Block )r;���ZxmlUCSIsLowSurrogatesr��r���r���r����uCSIsLowSurrogates� ��s���� r���c�����������������C���s���t��|��}|S�)z;Check whether the character is part of Malayalam UCS Block )r;���ZxmlUCSIsMalayalamr��r���r���r����uCSIsMalayalam� ��s���� r���c�����������������C���s���t��|��}|S�)zXCheck whether the character is part of MathematicalAlphanumericSymbols UCS Block )r;���Z'xmlUCSIsMathematicalAlphanumericSymbolsr��r���r���r����$uCSIsMathematicalAlphanumericSymbols� ��s���� r���c�����������������C���s���t��|��}|S�)zNCheck whether the character is part of MathematicalOperators UCS Block )r;���ZxmlUCSIsMathematicalOperatorsr��r���r���r����uCSIsMathematicalOperators� ��s���� r���c�����������������C���s���t��|��}|S�)z[Check whether the character is part of MiscellaneousMathematicalSymbols-A UCS Block )r;���Z)xmlUCSIsMiscellaneousMathematicalSymbolsAr��r���r���r����&uCSIsMiscellaneousMathematicalSymbolsA� ��s���� r���c�����������������C���s���t��|��}|S�)z[Check whether the character is part of MiscellaneousMathematicalSymbols-B UCS Block )r;���Z)xmlUCSIsMiscellaneousMathematicalSymbolsBr��r���r���r����&uCSIsMiscellaneousMathematicalSymbolsB� ��s���� r���c�����������������C���s���t��|��}|S�)zMCheck whether the character is part of MiscellaneousSymbols UCS Block )r;���ZxmlUCSIsMiscellaneousSymbolsr��r���r���r����uCSIsMiscellaneousSymbols� ��s���� r���c�����������������C���s���t��|��}|S�)zVCheck whether the character is part of MiscellaneousSymbolsandArrows UCS Block )r;���Z%xmlUCSIsMiscellaneousSymbolsandArrowsr��r���r���r����"uCSIsMiscellaneousSymbolsandArrows� ��s���� r���c�����������������C���s���t��|��}|S�)zOCheck whether the character is part of MiscellaneousTechnical UCS Block )r;���ZxmlUCSIsMiscellaneousTechnicalr��r���r���r����uCSIsMiscellaneousTechnical� ��s���� r���c�����������������C���s���t��|��}|S�)z;Check whether the character is part of Mongolian UCS Block )r;���ZxmlUCSIsMongolianr��r���r���r����uCSIsMongolian� ��s���� r���c�����������������C���s���t��|��}|S�)zGCheck whether the character is part of MusicalSymbols UCS Block )r;���ZxmlUCSIsMusicalSymbolsr��r���r���r����uCSIsMusicalSymbols� ��s���� r���c�����������������C���s���t��|��}|S�)z9Check whether the character is part of Myanmar UCS Block )r;���ZxmlUCSIsMyanmarr��r���r���r����uCSIsMyanmar� ��s���� r���c�����������������C���s���t��|��}|S�)z=Check whether the character is part of NumberForms UCS Block )r;���ZxmlUCSIsNumberFormsr��r���r���r����uCSIsNumberForms� ��s���� r���c�����������������C���s���t��|��}|S�)z7Check whether the character is part of Ogham UCS Block )r;���Z xmlUCSIsOghamr��r���r���r���� uCSIsOgham� ��s���� r���c�����������������C���s���t��|��}|S�)z;Check whether the character is part of OldItalic UCS Block )r;���ZxmlUCSIsOldItalicr��r���r���r����uCSIsOldItalic� ��s���� r���c�����������������C���s���t��|��}|S�)zTCheck whether the character is part of OpticalCharacterRecognition UCS Block )r;���Z#xmlUCSIsOpticalCharacterRecognitionr��r���r���r���� uCSIsOpticalCharacterRecognition� ��s���� r���c�����������������C���s���t��|��}|S�)z7Check whether the character is part of Oriya UCS Block )r;���Z xmlUCSIsOriyar��r���r���r���� uCSIsOriya� ��s���� r���c�����������������C���s���t��|��}|S�)z9Check whether the character is part of Osmanya UCS Block )r;���ZxmlUCSIsOsmanyar��r���r���r����uCSIsOsmanya��s���� r���c�����������������C���s���t��|��}|S�)zKCheck whether the character is part of PhoneticExtensions UCS Block )r;���ZxmlUCSIsPhoneticExtensionsr��r���r���r����uCSIsPhoneticExtensions��s���� r���c�����������������C���s���t��|��}|S�)z<Check whether the character is part of PrivateUse UCS Block )r;���ZxmlUCSIsPrivateUser��r���r���r����uCSIsPrivateUse��s���� r���c�����������������C���s���t��|��}|S�)zGCheck whether the character is part of PrivateUseArea UCS Block )r;���ZxmlUCSIsPrivateUseArear��r���r���r����uCSIsPrivateUseArea��s���� r���c�����������������C���s���t��|��}|S�)z7Check whether the character is part of Runic UCS Block )r;���Z xmlUCSIsRunicr��r���r���r���� uCSIsRunic��s���� r���c�����������������C���s���t��|��}|S�)z9Check whether the character is part of Shavian UCS Block )r;���ZxmlUCSIsShavianr��r���r���r����uCSIsShavian��s���� r���c�����������������C���s���t��|��}|S�)z9Check whether the character is part of Sinhala UCS Block )r;���ZxmlUCSIsSinhalar��r���r���r����uCSIsSinhala!��s���� r���c�����������������C���s���t��|��}|S�)zJCheck whether the character is part of SmallFormVariants UCS Block )r;���ZxmlUCSIsSmallFormVariantsr��r���r���r����uCSIsSmallFormVariants&��s���� r���c�����������������C���s���t��|��}|S�)zOCheck whether the character is part of SpacingModifierLetters UCS Block )r;���ZxmlUCSIsSpacingModifierLettersr��r���r���r����uCSIsSpacingModifierLetters,��s���� r���c�����������������C���s���t��|��}|S�)z:Check whether the character is part of Specials UCS Block )r;���ZxmlUCSIsSpecialsr��r���r���r���� uCSIsSpecials2��s���� r���c�����������������C���s���t��|��}|S�)zRCheck whether the character is part of SuperscriptsandSubscripts UCS Block )r;���Z!xmlUCSIsSuperscriptsandSubscriptsr��r���r���r����uCSIsSuperscriptsandSubscripts7��s���� r���c�����������������C���s���t��|��}|S�)zMCheck whether the character is part of SupplementalArrows-A UCS Block )r;���ZxmlUCSIsSupplementalArrowsAr��r���r���r����uCSIsSupplementalArrowsA=��s���� r���c�����������������C���s���t��|��}|S�)zMCheck whether the character is part of SupplementalArrows-B UCS Block )r;���ZxmlUCSIsSupplementalArrowsBr��r���r���r����uCSIsSupplementalArrowsBC��s���� r���c�����������������C���s���t��|��}|S�)zZCheck whether the character is part of SupplementalMathematicalOperators UCS Block )r;���Z)xmlUCSIsSupplementalMathematicalOperatorsr��r���r���r����&uCSIsSupplementalMathematicalOperatorsI��s���� r���c�����������������C���s���t��|��}|S�)zVCheck whether the character is part of SupplementaryPrivateUseArea-A UCS Block )r;���Z$xmlUCSIsSupplementaryPrivateUseAreaAr��r���r���r����!uCSIsSupplementaryPrivateUseAreaAO��s���� r���c�����������������C���s���t��|��}|S�)zVCheck whether the character is part of SupplementaryPrivateUseArea-B UCS Block )r;���Z$xmlUCSIsSupplementaryPrivateUseAreaBr��r���r���r����!uCSIsSupplementaryPrivateUseAreaBU��s���� r���c�����������������C���s���t��|��}|S�)z8Check whether the character is part of Syriac UCS Block )r;���ZxmlUCSIsSyriacr��r���r���r����uCSIsSyriac[��s���� r���c�����������������C���s���t��|��}|S�)z9Check whether the character is part of Tagalog UCS Block )r;���ZxmlUCSIsTagalogr��r���r���r����uCSIsTagalog`��s���� r���c�����������������C���s���t��|��}|S�)z:Check whether the character is part of Tagbanwa UCS Block )r;���ZxmlUCSIsTagbanwar��r���r���r���� uCSIsTagbanwae��s���� r���c�����������������C���s���t��|��}|S�)z6Check whether the character is part of Tags UCS Block )r;���ZxmlUCSIsTagsr��r���r���r���� uCSIsTagsj��s���� r���c�����������������C���s���t��|��}|S�)z7Check whether the character is part of TaiLe UCS Block )r;���Z xmlUCSIsTaiLer��r���r���r���� uCSIsTaiLeo��s���� r���c�����������������C���s���t��|��}|S�)zKCheck whether the character is part of TaiXuanJingSymbols UCS Block )r;���ZxmlUCSIsTaiXuanJingSymbolsr��r���r���r����uCSIsTaiXuanJingSymbolst��s���� r���c�����������������C���s���t��|��}|S�)z7Check whether the character is part of Tamil UCS Block )r;���Z xmlUCSIsTamilr��r���r���r���� uCSIsTamilz��s���� r���c�����������������C���s���t��|��}|S�)z8Check whether the character is part of Telugu UCS Block )r;���ZxmlUCSIsTelugur��r���r���r����uCSIsTelugu��s���� r���c�����������������C���s���t��|��}|S�)z8Check whether the character is part of Thaana UCS Block )r;���ZxmlUCSIsThaanar��r���r���r����uCSIsThaana���s���� r���c�����������������C���s���t��|��}|S�)z6Check whether the character is part of Thai UCS Block )r;���ZxmlUCSIsThair��r���r���r���� uCSIsThai���s���� r���c�����������������C���s���t��|��}|S�)z9Check whether the character is part of Tibetan UCS Block )r;���ZxmlUCSIsTibetanr��r���r���r����uCSIsTibetan���s���� r���c�����������������C���s���t��|��}|S�)z:Check whether the character is part of Ugaritic UCS Block )r;���ZxmlUCSIsUgariticr��r���r���r���� uCSIsUgaritic���s���� r���c�����������������C���s���t��|��}|S�)z[Check whether the character is part of UnifiedCanadianAboriginalSyllabics UCS Block )r;���Z*xmlUCSIsUnifiedCanadianAboriginalSyllabicsr��r���r���r����'uCSIsUnifiedCanadianAboriginalSyllabics���s���� r���c�����������������C���s���t��|��}|S�)zKCheck whether the character is part of VariationSelectors UCS Block )r;���ZxmlUCSIsVariationSelectorsr��r���r���r����uCSIsVariationSelectors���s���� r���c�����������������C���s���t��|��}|S�)zUCheck whether the character is part of VariationSelectorsSupplement UCS Block )r;���Z$xmlUCSIsVariationSelectorsSupplementr��r���r���r����!uCSIsVariationSelectorsSupplement���s���� r���c�����������������C���s���t��|��}|S�)z<Check whether the character is part of YiRadicals UCS Block )r;���ZxmlUCSIsYiRadicalsr��r���r���r����uCSIsYiRadicals���s���� r���c�����������������C���s���t��|��}|S�)z=Check whether the character is part of YiSyllables UCS Block )r;���ZxmlUCSIsYiSyllablesr��r���r���r����uCSIsYiSyllables���s���� r���c�����������������C���s���t��|��}|S�)zNCheck whether the character is part of YijingHexagramSymbols UCS Block )r;���ZxmlUCSIsYijingHexagramSymbolsr��r���r���r����uCSIsYijingHexagramSymbols���s���� r���c�����������������C���s���t��|���dS�)zqcheck the compiled lib version against the include one. This can warn or immediately kill the application N)r;���ZxmlCheckVersion)r����r���r���r����checkVersion���s����r���c�����������������C���s"���|�du�rd}n|�j�}t�|�}|S�)z/Pops the top XPath object from the value stack N)r&���r;����valuePopr���r���r���r���r������s���� r���c�������������������@���s>��e�Zd�Zd�dd�Zdd��Zdd��Zdd ��Zd d��Zdd ��Zdd��Z dd��Z dd��Zdd��Zdd��Z dd��Zdd��Zdd��Zdd��Zd d!��Zd"d#��Zd$d%��Zd&d'��Zd(d)��Zd*d+��Zd,d-��Zd.d/��Zd0d1��Zd2d3��Zd4d5��Zd6d7��Zd8d9��Zd:d;��Zd<d=��Z d>d?��Z!d@dA��Z"dBdC��Z#dDdE��Z$dFdG��Z%dHdI��Z&dJdK��Z'dLdM��Z(dNdO��Z)dPdQ��Z*dRdS��Z+dTdU��Z,dVdW��Z-dXdY��Z.dZd[��Z/d\d]��Z0d^d_��Z1d`da��Z2dbdc��Z3ddde��Z4dfdg��Z5dhdi��Z6djdk��Z7dldm��Z8dndo��Z9dpdq��Z:drds��Z;dtdu��Z<dvdw��Z=dxdy��Z>dzd{��Z?d|d}��Z@d~d��ZAd�d���ZBd�d���ZCd�d���ZDd�d���ZEd�d���ZFd�d���ZGd�d���ZHd�d���ZId�d���ZJd�d���ZKd�d���ZLd�d���ZMd�d���ZNd�d���ZOd�d���ZPd�d���ZQd�d���ZRd�d���ZSd�d���ZTd�d���ZUd�d���ZVd�d���ZWd�d���ZXd�d���ZYd�d���ZZd�d���Z[d�d���Z\d�d���Z]d�d���Z^d�d���Z_d�d���Z`d�d���Zad�d���Zbd�dÄ�Zcd�dń�Zdd�dDŽ�Zed�dɄ�Zfd�d˄�Zgd�d̈́�ZhdS�)�r����Nc�����������������C���s,���t�|�dkrtd��||�_tj|�|d��d�S�)Nr���z'xmlNode got a wrong wrapper object typer|���)r���� TypeErrorr&���rh���r���r'���r���r���r���r������s����zxmlNode.__init__c�����������������C���s���d|�j�tt|���f�S�)Nz<xmlNode (%s) object at 0x%x>�rP����intr���r���r���r���r����__repr__���s����zxmlNode.__repr__c�����������������C���s&���t��|�j�}|du�rdS�t|d�}|S��zGet the namespace of a node Nr|���)r;���ZxmlNodeGetNsr&���r�����r���r3���� _xmlNode__tmpr���r���r����ns���s���� z xmlNode.nsc�����������������C���s&���t��|�j�}|du�rdS�t|d�}|S�r���)r;���ZxmlNodeGetNsDefsr&���r����r���r���r���r����nsDefs���s���� zxmlNode.nsDefsc�����������������C���s���t��||�j|��dS�)zIDumps debug information for the element node, it is recursive N)r;���ZxmlDebugDumpNoder&����r���rQ���depthr���r���r���� debugDumpNode���s����zxmlNode.debugDumpNodec�����������������C���s���t��||�j|��dS�)zQDumps debug information for the list of element node, it is recursive N)r;���ZxmlDebugDumpNodeListr&���r���r���r���r����debugDumpNodeList���s����zxmlNode.debugDumpNodeListc�����������������C���s���t��||�j|��dS�)zMDumps debug information for the element node, it is not recursive N)r;���ZxmlDebugDumpOneNoder&���r���r���r���r����debugDumpOneNode���s����zxmlNode.debugDumpOneNodec�����������������C���s���t��|�j�}|S�)zCount the children of @node. )r;���ZxmlLsCountNoder&���ro���r���r���r����lsCountNode���s����zxmlNode.lsCountNodec�����������������C���s���t��||�j��dS�)z,Dump to @output the type and name of @node. N)r;���ZxmlLsOneNoder&����r���rQ��r���r���r���� lsOneNode���s����zxmlNode.lsOneNodec�����������������C���s���t��|�j��dS�)zPrint node to the output FILE N)r;���ZxmlShellPrintNoder&���r���r���r���r����shellPrintNode��s����zxmlNode.shellPrintNodec�����������������C���s@���|du�rd}n|j�}t�|�j�|�}|du�r2td��t|d�}|S�)a9��Add a new node to @parent, at the end of the child (or property) list merging adjacent TEXT nodes (in which case @cur is freed) If the new node is ATTRIBUTE, it is added into properties instead of children. If there is an attribute with equal name, it is first destroyed. NzxmlAddChild() failedr|���)r&���r;���ZxmlAddChildr���r�����r���r���cur__or3���r���r���r���r����addChild ��s���� zxmlNode.addChildc�����������������C���s@���|du�rd}n|j�}t�|�j�|�}|du�r2td��t|d�}|S�)zyAdd a list of node at the end of the child list of the parent merging adjacent TEXT nodes (@cur may be freed) NzxmlAddChildList() failedr|���)r&���r;���ZxmlAddChildListr���r����r���r���r���r����addChildList��s���� zxmlNode.addChildListc�����������������C���s���t��|�j|��dS�)z�Append the extra substring to the node content. NOTE: In contrast to xmlNodeSetContent(), @content is supposed to be raw text, so unescaped XML special chars are allowed, entity references are not supported. N)r;���ZxmlNodeAddContentr&���rU���r���r���r���� addContent!��s����zxmlNode.addContentc�����������������C���s���t��|�j||��dS�)z�Append the extra substring to the node content. NOTE: In contrast to xmlNodeSetContentLen(), @content is supposed to be raw text, so unescaped XML special chars are allowed, entity references are not supported. N)r;���ZxmlNodeAddContentLenr&����r���rV���r2���r���r���r���� addContentLen(��s����zxmlNode.addContentLenc�����������������C���s@���|du�rd}n|j�}t�|�j�|�}|du�r2td��t|d�}|S�)a���Add a new node @elem as the next sibling of @cur If the new node was already inserted in a document it is first unlinked from its existing context. As a result of text merging @elem may be freed. If the new node is ATTRIBUTE, it is added into properties instead of children. If there is an attribute with equal name, it is first destroyed. NzxmlAddNextSibling() failedr|���)r&���r;���ZxmlAddNextSiblingr���r�����r���r_����elem__or3���r���r���r���r����addNextSibling/��s���� zxmlNode.addNextSiblingc�����������������C���s@���|du�rd}n|j�}t�|�j�|�}|du�r2td��t|d�}|S�)a���Add a new node @elem as the previous sibling of @cur merging adjacent TEXT nodes (@elem may be freed) If the new node was already inserted in a document it is first unlinked from its existing context. If the new node is ATTRIBUTE, it is added into properties instead of children. If there is an attribute with equal name, it is first destroyed. NzxmlAddPrevSibling() failedr|���)r&���r;���ZxmlAddPrevSiblingr���r����r���r���r���r����addPrevSibling=��s���� zxmlNode.addPrevSiblingc�����������������C���s@���|du�rd}n|j�}t�|�j�|�}|du�r2td��t|d�}|S�)z�Add a new element @elem to the list of siblings of @cur merging adjacent TEXT nodes (@elem may be freed) If the new element was already inserted in a document it is first unlinked from its existing context. NzxmlAddSibling() failedr|���)r&���r;���Z xmlAddSiblingr���r����r���r���r���r���� addSiblingL��s���� zxmlNode.addSiblingc�����������������C���s,���t��|�j|�}|du�rtd��t|d�}|S�)zDo a copy of the node. NzxmlCopyNode() failedr|���)r;���ZxmlCopyNoder&���r���r����)r����extendedr3���r���r���r���r����copyNodeX��s���� zxmlNode.copyNodec�����������������C���s*���t��|�j�}|du�rtd��t|d�}|S�)zqDo a recursive copy of the node list. Use xmlDocCopyNodeList() if possible to ensure string interning. NzxmlCopyNodeList() failedr|���)r;���ZxmlCopyNodeListr&���r���r����r���r���r���r����copyNodeList_��s���� zxmlNode.copyNodeListc�����������������C���s@���|du�rd}n|j�}t�|�j�|�}|du�r2td��t|d�}|S��zDo a copy of the attribute. NzxmlCopyProp() failedr|����r&���r;���ZxmlCopyPropr���r~���r���r���r���r����copyPropg��s���� zxmlNode.copyPropc�����������������C���s@���|du�rd}n|j�}t�|�j�|�}|du�r2td��t|d�}|S��z Do a copy of an attribute list. NzxmlCopyPropList() failedr|����r&���r;���ZxmlCopyPropListr���r~���r���r���r���r����copyPropListp��s���� zxmlNode.copyPropListc�����������������C���sB���|du�rd}n|j�}t�|�j�||�}|du�r4td��t|d�}|S��z+Do a copy of the node to a given document. NzxmlDocCopyNode() failedr|����r&���r;���ZxmlDocCopyNoder���r����)r���r����r����doc__or3���r���r���r���r����docCopyNodey��s���� zxmlNode.docCopyNodec�����������������C���s@���|du�rd}n|j�}t�||�j��}|du�r2td��t|d�}|S��z&Do a recursive copy of the node list. NzxmlDocCopyNodeList() failedr|����r&���r;���ZxmlDocCopyNodeListr���r�����r���r����r���r3���r���r���r���r����docCopyNodeList���s���� zxmlNode.docCopyNodeListc�����������������C���s<���|du�rd}n|j�}t�||�j��}|du�r.dS�t|d�}|S��zvSet the root element of the document (doc->children is a list containing possibly comments, PIs, etc ...). Nr|����r&���r;���ZxmlDocSetRootElementr����r���r���r���r����docSetRootElement���s���� zxmlNode.docSetRootElementc�����������������C���s&���t��|�j�}|du�rdS�t|d�}|S�)a��Finds the first child node of that element which is a Element node Note the handling of entities references is different than in the W3C DOM element traversal spec since we don't have back reference from entities content to entities references. Nr|���)r;���ZxmlFirstElementChildr&���r����r���r���r���r����firstElementChild���s���� zxmlNode.firstElementChildc�����������������C���s���t��|�j��dS�)z�Free a node, this is a recursive behaviour, all the children are freed too. This doesn't unlink the child from the list, use xmlUnlinkNode() first. N)r;���ZxmlFreeNoder&���r���r���r���r����freeNode���s����zxmlNode.freeNodec�����������������C���s���t��|�j��dS�)zlFree a node and all its siblings, this is a recursive behaviour, all the children are freed too. N)r;���ZxmlFreeNodeListr&���r���r���r���r����freeNodeList���s����zxmlNode.freeNodeListc�����������������C���s&���|du�rd}n|j�}t�||�j��}|S��a���Searches for the BASE URL. The code should work on both XML and HTML document even if base mechanisms are completely different. It returns the base as defined in RFC 2396 sections 5.1.1. Base URI within Document Content and 5.1.2. Base URI from the Encapsulating Entity However it does not return the document base (5.1.3), use doc->URL in this case N�r&���r;���ZxmlNodeGetBase�r���r����r���r3���r���r���r����getBase���s����zxmlNode.getBasec�����������������C���s���t��|�j�}|S�)a��Read the value of a node, this can be either the text carried directly by this node if it's a TEXT node or the aggregate string of the values carried by this node child's (TEXT and ENTITY_REF). Entity references are substituted. r����ro���r���r���r���r�������s����zxmlNode.getContentc�����������������C���s���t��|�j�}|S�)z�Searches the language of a node, i.e. the values of the xml:lang attribute or the one carried by the nearest ancestor. )r;���ZxmlNodeGetLangr&���ro���r���r���r����getLang���s����zxmlNode.getLangc�����������������C���s���t��|�j�}|S�)z�Searches the space preserving behaviour of a node, i.e. the values of the xml:space attribute or the one carried by the nearest ancestor. )r;���ZxmlNodeGetSpacePreserver&���ro���r���r���r����getSpacePreserve���s����zxmlNode.getSpacePreservec�����������������C���s*���t��|�j||�}|du�rdS�t|d�}|S�)a���Search for an attribute associated to a node This attribute has to be anchored in the namespace specified. This does the entity substitution. This function looks in DTD attribute declaration for #FIXED or default declaration values unless DTD use has been turned off. Note that a namespace of None indicates to use the default namespace. Nr|���)r;���ZxmlHasNsPropr&���r~���)r���rP���� nameSpacer3���r���r���r���r���� hasNsProp���s���� zxmlNode.hasNsPropc�����������������C���s(���t��|�j|�}|du�rdS�t|d�}|S�)z�Search an attribute associated to a node This function also looks in DTD attribute declaration for #FIXED or default declaration values unless DTD use has been turned off. Nr|���)r;���Z xmlHasPropr&���r~���)r���rP���r3���r���r���r���r����hasProp���s���� zxmlNode.hasPropc�����������������C���s���t��|�j�}|S�)zgChecks whether this node is an empty or whitespace only (and possibly ignorable) text-node. )r;���ZxmlIsBlankNoder&���ro���r���r���r����isBlankNode���s����zxmlNode.isBlankNodec�����������������C���s���t��|�j�}|S�)zIs this node a Text node ? )r;���Z xmlNodeIsTextr&���ro���r���r���r����isText���s����zxmlNode.isTextc�����������������C���s*���t��|�j�}|du�rtd��t|d�}|S�)z!Search the last child of a node. NzxmlGetLastChild() failedr|���)r;���ZxmlGetLastChildr&���r���r����r���r���r���r���� lastChild���s���� zxmlNode.lastChildc�����������������C���s&���t��|�j�}|du�rdS�t|d�}|S�)a��Finds the last child node of that element which is a Element node Note the handling of entities references is different than in the W3C DOM element traversal spec since we don't have back reference from entities content to entities references. Nr|���)r;���ZxmlLastElementChildr&���r����r���r���r���r����lastElementChild���s���� zxmlNode.lastElementChildc�����������������C���s���t��|�j�}|S�)z�Get line number of @node. Try to override the limitation of lines being store in 16 bits ints if XML_PARSE_BIG_LINES parser option was used )r;���ZxmlGetLineNor&���ro���r���r���r����lineNo���s����zxmlNode.lineNoc�����������������C���s(���|du�rd}n|j�}t�||�j�|�}|S��z�Builds the string equivalent to the text contained in the Node list made of TEXTs and ENTITY_REFs, contrary to xmlNodeListGetString() this function doesn't do any character encoding handling. N�r&���r;���ZxmlNodeListGetRawString�r���r�����inLiner���r3���r���r���r����listGetRawString ��s����zxmlNode.listGetRawStringc�����������������C���s(���|du�rd}n|j�}t�||�j�|�}|S��zlBuild the string equivalent to the text contained in the Node list made of TEXTs and ENTITY_REFs N�r&���r;���ZxmlNodeListGetStringr��r���r���r���� listGetString ��s����zxmlNode.listGetStringc�����������������C���sD���|du�rd}n|j�}t�|�j�|||�}|du�r6td��t|d�}|S��aQ��Creation of a new child element, added at the end of @parent children list. @ns and @content parameters are optional (None). If @ns is None, the newly created element inherits the namespace of @parent. If @content is non None, a child list containing the TEXTs and ENTITY_REFs node will be created. NOTE: @content is supposed to be a piece of XML CDATA, so it allows entity references. XML special chars must be escaped first by using xmlEncodeEntitiesReentrant(), or xmlNewTextChild() should be used. NzxmlNewChild() failedr|����r&���r;���ZxmlNewChildr���r�����r���r���rP���rV����ns__or3���r���r���r���r����newChild ��s���� zxmlNode.newChildc�����������������C���s.���t��|�j||�}|du�r td��t|d�}|S�)aW��Creation of a new Namespace. This function will refuse to create a namespace with a similar prefix than an existing one present on this node. Note that for a default namespace, @prefix should be None. We use href==None in the case of an element creation where the namespace was not defined. NzxmlNewNs() failedr|���)r;���ZxmlNewNsr&���r���r����)r���r����r���r3���r���r���r���r����newNs* ��s���� z xmlNode.newNsc�����������������C���sD���|du�rd}n|j�}t�|�j�|||�}|du�r6td��t|d�}|S���PCreate a new property tagged with a namespace and carried by a node. NzxmlNewNsProp() failedr|����r&���r;���ZxmlNewNsPropr���r~����r���r���rP���r2��r��r3���r���r���r���r���� newNsProp6 ��s���� zxmlNode.newNsPropc�����������������C���sD���|du�rd}n|j�}t�|�j�|||�}|du�r6td��t|d�}|S��r��NzxmlNewNsPropEatName() failedr|����r&���r;���ZxmlNewNsPropEatNamer���r~���r��r���r���r����newNsPropEatName@ ��s���� zxmlNode.newNsPropEatNamec�����������������C���s.���t��|�j||�}|du�r td��t|d�}|S�)z)Create a new property carried by a node. NzxmlNewProp() failedr|���)r;���Z xmlNewPropr&���r���r~����r���rP���r2��r3���r���r���r���r����newPropJ ��s���� zxmlNode.newPropc�����������������C���sD���|du�rd}n|j�}t�|�j�|||�}|du�r6td��t|d�}|S��a���Creation of a new child element, added at the end of @parent children list. @ns and @content parameters are optional (None). If @ns is None, the newly created element inherits the namespace of @parent. If @content is non None, a child TEXT node will be created containing the string @content. NOTE: Use xmlNewChild() if @content will contain entities that need to be preserved. Use this function, xmlNewTextChild(), if you need to ensure that reserved XML chars that might appear in @content, such as the ampersand, greater-than or less-than signs, are automatically replaced by their XML escaped entity representations. NzxmlNewTextChild() failedr|����r&���r;���ZxmlNewTextChildr���r����r��r���r���r����newTextChildQ ��s���� zxmlNode.newTextChildc�����������������C���s&���t��|�j�}|du�rdS�t|d�}|S�)a&��Finds the first closest next sibling of the node which is an element node. Note the handling of entities references is different than in the W3C DOM element traversal spec since we don't have back reference from entities content to entities references. Nr|���)r;���ZxmlNextElementSiblingr&���r����r���r���r���r����nextElementSiblingd ��s���� zxmlNode.nextElementSiblingc�����������������C���s���t��|�j|�}|S�)ar��Search and get the value of an attribute associated to a node This does the entity substitution. This function looks in DTD attribute declaration for #FIXED or default declaration values unless DTD use has been turned off. This function is similar to xmlGetProp except it will accept only an attribute in no namespace. )r;���ZxmlGetNoNsPropr&����r���rP���r3���r���r���r����noNsPropo ��s����zxmlNode.noNsPropc�����������������C���s���t��|�j�}|S�)z0Build a structure based Path for the given node )r;���ZxmlGetNodePathr&���ro���r���r���r����nodePathy ��s����zxmlNode.nodePathc�����������������C���s���t��|�j||�}|S�)aF��Search and get the value of an attribute associated to a node This attribute has to be anchored in the namespace specified. This does the entity substitution. This function looks in DTD attribute declaration for #FIXED or default declaration values unless DTD use has been turned off. )r;���ZxmlGetNsPropr&���)r���rP���r���r3���r���r���r����nsProp~ ��s����zxmlNode.nsPropc�����������������C���s&���t��|�j�}|du�rdS�t|d�}|S�)a*��Finds the first closest previous sibling of the node which is an element node. Note the handling of entities references is different than in the W3C DOM element traversal spec since we don't have back reference from entities content to entities references. Nr|���)r;���ZxmlPreviousElementSiblingr&���r����r���r���r���r����previousElementSibling� ��s���� zxmlNode.previousElementSiblingc�����������������C���s���t��|�j|�}|S�)a���Search and get the value of an attribute associated to a node This does the entity substitution. This function looks in DTD attribute declaration for #FIXED or default declaration values unless DTD use has been turned off. NOTE: this function acts independently of namespaces associated to the attribute. Use xmlGetNsProp() or xmlGetNoNsProp() for namespace aware processing. )r;���Z xmlGetPropr&���r!��r���r���r����prop� ��s����zxmlNode.propc�����������������C���s&���|du�rd}n|j�}t�||�j��}|S��a!��This function checks that all the namespaces declared within the given tree are properly declared. This is needed for example after Copy or Cut and then paste operations. The subtree may still hold pointers to namespace declarations outside the subtree or invalid/masked. As much as possible the function try to reuse the existing namespaces found in the new environment. If not possible the new namespaces are redeclared on @tree at the top of the given subtree. N�r&���r;���ZxmlReconciliateNsr���r���r���r����reconciliateNs� ��s���� zxmlNode.reconciliateNsc�����������������C���s@���|du�rd}n|j�}t�|�j�|�}|du�r2td��t|d�}|S�)z�Unlink the old node from its current context, prune the new one at the same place. If @cur was already inserted in a document it is first unlinked from its existing context. NzxmlReplaceNode() failedr|���)r&���r;���ZxmlReplaceNoder���r����r���r���r���r����replaceNode� ��s���� zxmlNode.replaceNodec�����������������C���sB���|du�rd}n|j�}t�||�j�|�}|du�r4td��t|d�}|S��a���Search a Ns registered under a given name space for a document. recurse on the parents until it finds the defined namespace or return None otherwise. @nameSpace can be None, this is a search for the default namespace. We don't allow to cross entities boundaries. If you don't declare the namespace within those you will be in troubles !!! A warning is generated to cover this case. NzxmlSearchNs() failedr|����r&���r;���ZxmlSearchNsr���r����)r���r����r���r���r3���r���r���r���r����searchNs� ��s���� zxmlNode.searchNsc�����������������C���sB���|du�rd}n|j�}t�||�j�|�}|du�r4td��t|d�}|S��z�Search a Ns aliasing a given URI. Recurse on the parents until it finds the defined namespace or return None otherwise. NzxmlSearchNsByHref() failedr|����r&���r;���ZxmlSearchNsByHrefr���r����)r���r����r����r���r3���r���r���r���r����searchNsByHref� ��s���� zxmlNode.searchNsByHrefc�����������������C���s���t��|�j|��dS�)z\Set (or reset) the base URI of a node, i.e. the value of the xml:base attribute. N)r;���ZxmlNodeSetBaser&���r����r���r���r����setBase� ��s����zxmlNode.setBasec�����������������C���s���t��|�j|��dS��a ��Replace the content of a node. NOTE: @content is supposed to be a piece of XML CDATA, so it allows entity references, but XML special chars need to be escaped first by using xmlEncodeEntitiesReentrant() resp. xmlEncodeSpecialChars(). N)r;���ZxmlNodeSetContentr&���rU���r���r���r���� setContent� ��s����zxmlNode.setContentc�����������������C���s���t��|�j||��dS�r2��)r;���ZxmlNodeSetContentLenr&���r���r���r���r���� setContentLen� ��s����zxmlNode.setContentLenc�����������������C���s���t��|�j|��dS�)zRSet the language of a node, i.e. the values of the xml:lang attribute. N)r;���ZxmlNodeSetLangr&���)r���r���r���r���r����setLang� ��s����zxmlNode.setLangc�����������������C���s&���|du�rd}n|j�}t�|�j�|��dS��z<update all nodes in the list to point to the right document N�r&���r;���Z xmlSetListDoc�r���r����r���r���r���r���� setListDoc� ��s����zxmlNode.setListDocc�����������������C���s���t��|�j|��dS�)z#Set (or reset) the name of a node. N)r;���ZxmlNodeSetNamer&���rO���r���r���r����setName� ��s����zxmlNode.setNamec�����������������C���s&���|du�rd}n|j�}t�|�j�|��dS��z/Associate a namespace to a node, a posteriori. N�r&���r;���ZxmlSetNs)r���r���r��r���r���r����setNs� ��s����z xmlNode.setNsc�����������������C���sD���|du�rd}n|j�}t�|�j�|||�}|du�r6td��t|d�}|S��zqSet (or reset) an attribute carried by a node. The ns structure must be in scope, this is not checked NzxmlSetNsProp() failedr|����r&���r;���ZxmlSetNsPropr���r~���r��r���r���r���� setNsProp� ��s���� zxmlNode.setNsPropc�����������������C���s.���t��|�j||�}|du�r td��t|d�}|S�)z�Set (or reset) an attribute carried by a node. If @name has a prefix, then the corresponding namespace-binding will be used, if in scope; it is an error it there's no such ns-binding for the prefix in scope. NzxmlSetProp() failedr|���)r;���Z xmlSetPropr&���r���r~���r��r���r���r����setProp��s���� zxmlNode.setPropc�����������������C���s���t��|�j|��dS�)zoSet (or reset) the space preserving behaviour of a node, i.e. the value of the xml:space attribute. N)r;���ZxmlNodeSetSpacePreserver&���)r���r����r���r���r����setSpacePreserve ��s����zxmlNode.setSpacePreservec�����������������C���s&���|du�rd}n|j�}t�|�j�|��dS��zJupdate all nodes under the tree to point to the right document N�r&���r;���Z xmlSetTreeDocr8��r���r���r���� setTreeDoc��s����zxmlNode.setTreeDocc�����������������C���s���t��|�j||�}|S�)zKConcat the given string at the end of the existing node content )r;���Z xmlTextConcatr&���)r���rV���r2���r3���r���r���r���� textConcat��s����zxmlNode.textConcatc�����������������C���s@���|du�rd}n|j�}t�|�j�|�}|du�r2td��t|d�}|S�)zMerge two text nodes into one NzxmlTextMerge() failedr|���)r&���r;���ZxmlTextMerger���r����)r����secondZ second__or3���r���r���r���r���� textMerge��s���� zxmlNode.textMergec�����������������C���s���t��|�j��dS�)a��Unlink a node from it's current context, the node is not freed If one need to free the node, use xmlFreeNode() routine after the unlink to discard it. Note that namespace nodes can't be unlinked as they do not have pointer to their parent. N)r;���Z xmlUnlinkNoder&���r���r���r���r���� unlinkNode(��s����zxmlNode.unlinkNodec�����������������C���s(���|du�rd}n|j�}t�|�j�||�}|S��z'Remove an attribute carried by a node. N�r&���r;���ZxmlUnsetNsProp)r���r���rP���r��r3���r���r���r����unsetNsProp0��s����zxmlNode.unsetNsPropc�����������������C���s���t��|�j|�}|S�)z`Remove an attribute carried by a node. This handles only attributes in no namespace. )r;���ZxmlUnsetPropr&���r!��r���r���r���� unsetProp7��s����zxmlNode.unsetPropc�����������������C���s<���|du�rd}n|j�}|du�r"d}n|j�}t�||�j�|�}|S��z�Determine whether an attribute is of type ID. In case we have DTD(s) then this is done if DTD loading has been requested. In the case of HTML documents parsed with the HTML parser, then ID detection is done systematically. N�r&���r;���ZxmlIsID�r���r����r����r����attr__or3���r���r���r����isIDA��s����zxmlNode.isIDc�����������������C���s<���|du�rd}n|j�}|du�r"d}n|j�}t�||�j�|�}|S��z�Determine whether an attribute is of type Ref. In case we have DTD(s) then this is simple, otherwise we use an heuristic: name Ref (upper or lowercase). N�r&���r;���ZxmlIsRefrP��r���r���r����isRefM��s����z xmlNode.isRefc�����������������C���s*���|du�rd}n|j�}t�||�j�||�}|S��a���Does the validation related extra step of the normalization of attribute values: If the declared value is not CDATA, then the XML processor must further process the normalized attribute value by discarding any leading and trailing space (#x20) characters, and by replacing sequences of space (#x20) characters by single space (#x20) character. N�r&���r;���ZxmlValidNormalizeAttributeValue)r���r����rP���r2��r���r3���r���r���r����validNormalizeAttributeValueX��s����z$xmlNode.validNormalizeAttributeValuec�����������������C���s���t��|�j�}|S��z:Implement the XInclude substitution for the given subtree )r;���ZxmlXIncludeProcessTreer&���ro���r���r���r����xincludeProcessTreeh��s����zxmlNode.xincludeProcessTreec�����������������C���s���t��|�j|�}|S�rY��)r;���ZxmlXIncludeProcessTreeFlagsr&����r����flagsr3���r���r���r����xincludeProcessTreeFlagsm��s����z xmlNode.xincludeProcessTreeFlagsc�����������������C���s&���|du�rd}n|j�}t�||�j��}|S��z<Validate a branch of a tree, starting with the given @elem. N�r&���r;���ZxmlSchemaValidateOneElement�r���r����r���r3���r���r���r����schemaValidateOneElementv��s����z xmlNode.schemaValidateOneElementc�����������������C���s���t��|�j�}|S�)z$Converts a node to its number value )r;���ZxmlXPathCastNodeToNumberr&���ro���r���r���r����xpathCastNodeToNumber���s����zxmlNode.xpathCastNodeToNumberc�����������������C���s���t��|�j�}|S�)z%Converts a node to its string value. )r;���ZxmlXPathCastNodeToStringr&���ro���r���r���r����xpathCastNodeToString���s����zxmlNode.xpathCastNodeToStringc�����������������C���s&���|du�rd}n|j�}t�|�j�|�}|S�)z'Compare two nodes w.r.t document order N)r&���r;���ZxmlXPathCmpNodes)r���Znode2Znode2__or3���r���r���r���� xpathCmpNodes���s����zxmlNode.xpathCmpNodesc�����������������C���s<���|du�rd}n|j�}t�|�j�||�}|du�r4td��t|�S�)z�Evaluate the XPath Location Path in the given context. The node 'node' is set as the context node. The context node is not restored. NzxmlXPathNodeEval() failed)r&���r;���ZxmlXPathNodeEvalr#���r����)r���r7���r����Zctx__or3���r���r���r���� xpathNodeEval���s ����zxmlNode.xpathNodeEvalc�����������������C���s$���t��|�j�}|du�rtd��t|�S�)zfCreate a new xmlXPathObjectPtr of type NodeSet and initialize it with the single Node @val NzxmlXPathNewNodeSet() failed)r;���ZxmlXPathNewNodeSetr&���r#���r����ro���r���r���r����xpathNewNodeSet���s����zxmlNode.xpathNewNodeSetc�����������������C���s$���t��|�j�}|du�rtd��t|�S�)znCreate a new xmlXPathObjectPtr of type Value Tree (XSLT) and initialize it with the tree root @val NzxmlXPathNewValueTree() failed)r;���ZxmlXPathNewValueTreer&���r#���r����ro���r���r���r����xpathNewValueTree���s����zxmlNode.xpathNewValueTreec�����������������C���s@���|du�rd}n|j�}t�||�j��}|du�r2td��t|d�}|S��a���Traversal function for the "ancestor" direction the ancestor axis contains the ancestors of the context node; the ancestors of the context node consist of the parent of context node and the parent's parent and so on; the nodes are ordered in reverse document order; thus the parent is the first node on the axis, and the parent's parent is the second node on the axis NzxmlXPathNextAncestor() failedr|����r&���r;���ZxmlXPathNextAncestorr#���r�����r���r����r���r3���r���r���r���r����xpathNextAncestor���s���� zxmlNode.xpathNextAncestorc�����������������C���s@���|du�rd}n|j�}t�||�j��}|du�r2td��t|d�}|S��as��Traversal function for the "ancestor-or-self" direction he ancestor-or-self axis contains the context node and ancestors of the context node in reverse document order; thus the context node is the first node on the axis, and the context node's parent the second; parent here is defined the same as with the parent axis. Nz#xmlXPathNextAncestorOrSelf() failedr|����r&���r;���ZxmlXPathNextAncestorOrSelfr#���r����rj��r���r���r����xpathNextAncestorOrSelf���s���� zxmlNode.xpathNextAncestorOrSelfc�����������������C���s@���|du�rd}n|j�}t�||�j��}|du�r2td��t|d�}|S��zkTraversal function for the "attribute" direction TODO: support DTD inherited default attributes NzxmlXPathNextAttribute() failedr|����r&���r;���ZxmlXPathNextAttributer#���r����rj��r���r���r����xpathNextAttribute���s���� zxmlNode.xpathNextAttributec�����������������C���s@���|du�rd}n|j�}t�||�j��}|du�r2td��t|d�}|S��z�Traversal function for the "child" direction The child axis contains the children of the context node in document order. NzxmlXPathNextChild() failedr|����r&���r;���ZxmlXPathNextChildr#���r����rj��r���r���r����xpathNextChild���s���� zxmlNode.xpathNextChildc�����������������C���s@���|du�rd}n|j�}t�||�j��}|du�r2td��t|d�}|S��z�Traversal function for the "descendant" direction the descendant axis contains the descendants of the context node in document order; a descendant is a child or a child of a child and so on. NzxmlXPathNextDescendant() failedr|����r&���r;���ZxmlXPathNextDescendantr#���r����rj��r���r���r����xpathNextDescendant���s���� zxmlNode.xpathNextDescendantc�����������������C���s@���|du�rd}n|j�}t�||�j��}|du�r2td��t|d�}|S��aZ��Traversal function for the "descendant-or-self" direction the descendant-or-self axis contains the context node and the descendants of the context node in document order; thus the context node is the first node on the axis, and the first child of the context node is the second node on the axis Nz%xmlXPathNextDescendantOrSelf() failedr|����r&���r;���ZxmlXPathNextDescendantOrSelfr#���r����rj��r���r���r����xpathNextDescendantOrSelf���s���� z!xmlNode.xpathNextDescendantOrSelfc�����������������C���s@���|du�rd}n|j�}t�||�j��}|du�r2td��t|d�}|S��a[��Traversal function for the "following" direction The following axis contains all nodes in the same document as the context node that are after the context node in document order, excluding any descendants and excluding attribute nodes and namespace nodes; the nodes are ordered in document order NzxmlXPathNextFollowing() failedr|����r&���r;���ZxmlXPathNextFollowingr#���r����rj��r���r���r����xpathNextFollowing���s���� zxmlNode.xpathNextFollowingc�����������������C���s@���|du�rd}n|j�}t�||�j��}|du�r2td��t|d�}|S��z�Traversal function for the "following-sibling" direction The following-sibling axis contains the following siblings of the context node in document order. Nz%xmlXPathNextFollowingSibling() failedr|����r&���r;���ZxmlXPathNextFollowingSiblingr#���r����rj��r���r���r����xpathNextFollowingSibling��s���� z!xmlNode.xpathNextFollowingSiblingc�����������������C���s@���|du�rd}n|j�}t�||�j��}|du�r2td��t|d�}|S��aY��Traversal function for the "namespace" direction the namespace axis contains the namespace nodes of the context node; the order of nodes on this axis is implementation-defined; the axis will be empty unless the context node is an element We keep the XML namespace node at the end of the list. NzxmlXPathNextNamespace() failedr|����r&���r;���ZxmlXPathNextNamespacer#���r����rj��r���r���r����xpathNextNamespace��s���� zxmlNode.xpathNextNamespacec�����������������C���s@���|du�rd}n|j�}t�||�j��}|du�r2td��t|d�}|S��z�Traversal function for the "parent" direction The parent axis contains the parent of the context node, if there is one. NzxmlXPathNextParent() failedr|����r&���r;���ZxmlXPathNextParentr#���r����rj��r���r���r����xpathNextParent ��s���� zxmlNode.xpathNextParentc�����������������C���s@���|du�rd}n|j�}t�||�j��}|du�r2td��t|d�}|S��ab��Traversal function for the "preceding" direction the preceding axis contains all nodes in the same document as the context node that are before the context node in document order, excluding any ancestors and excluding attribute nodes and namespace nodes; the nodes are ordered in reverse document order NzxmlXPathNextPreceding() failedr|����r&���r;���ZxmlXPathNextPrecedingr#���r����rj��r���r���r����xpathNextPreceding+��s���� zxmlNode.xpathNextPrecedingc�����������������C���s@���|du�rd}n|j�}t�||�j��}|du�r2td��t|d�}|S��aC��Traversal function for the "preceding-sibling" direction The preceding-sibling axis contains the preceding siblings of the context node in reverse document order; the first preceding sibling is first on the axis; the sibling preceding that node is the second on the axis and so on. Nz%xmlXPathNextPrecedingSibling() failedr|����r&���r;���ZxmlXPathNextPrecedingSiblingr#���r����rj��r���r���r����xpathNextPrecedingSibling9��s���� z!xmlNode.xpathNextPrecedingSiblingc�����������������C���s@���|du�rd}n|j�}t�||�j��}|du�r2td��t|d�}|S��zkTraversal function for the "self" direction The self axis contains just the context node itself NzxmlXPathNextSelf() failedr|����r&���r;���ZxmlXPathNextSelfr#���r����rj��r���r���r���� xpathNextSelfF��s���� zxmlNode.xpathNextSelfc�����������������C���s$���t��|�j�}|du�rtd��t|�S�)zMCreate a new xmlXPathObjectPtr of type range using a single nodes Nz!xmlXPtrNewCollapsedRange() failed)r;���ZxmlXPtrNewCollapsedRanger&���r���r����ro���r���r���r����xpointerNewCollapsedRangeT��s����z!xmlNode.xpointerNewCollapsedRangec�����������������C���sV���|du�rd}n|j�}|du�r"d}n|j�}t�||�j�|�}|du�rHtd��t|d�}|S��zCreate a new XPointer context NzxmlXPtrNewContext() failedr|����r&���r;���ZxmlXPtrNewContextr����xpathContext)r���r�����originr���� origin__or3���r���r���r���r����xpointerNewContext[��s���� zxmlNode.xpointerNewContextc�����������������C���s:���|du�rd}n|j�}t�|�j�|�}|du�r2td��t|�S�)z�Create a new xmlXPathObjectPtr of type LocationSet and initialize it with the single range made of the two nodes @start and @end Nz#xmlXPtrNewLocationSetNodes() failed)r&���r;���ZxmlXPtrNewLocationSetNodesr���r�����r����end�end__or3���r���r���r����xpointerNewLocationSetNodesf��s ����z#xmlNode.xpointerNewLocationSetNodesc�����������������C���s>���|du�rd}n|j�}t�|�j�|||�}|du�r6td��t|�S�)z-Create a new xmlXPathObjectPtr of type range NzxmlXPtrNewRange() failed)r&���r;���ZxmlXPtrNewRanger���r����)r���Z startindexr���Zendindexr���r3���r���r���r����xpointerNewRangep��s ����zxmlNode.xpointerNewRangec�����������������C���s:���|du�rd}n|j�}t�|�j�|�}|du�r2td��t|�S�)z;Create a new xmlXPathObjectPtr of type range using 2 nodes NzxmlXPtrNewRangeNodes() failed)r&���r;���ZxmlXPtrNewRangeNodesr���r����r���r���r���r����xpointerNewRangeNodesx��s ����zxmlNode.xpointerNewRangeNodes)N)ir���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r����r���r���r���r���r���r��r��r��r��r ��r��r��r��r��r��r��r��r ��r"��r#��r$��r%��r&��r)��r*��r-��r0��r1��r3��r4��r5��r9��r:��r=��r@��rA��rB��rE��rF��rH��rI��rL��rM��rR��rU��rX��rZ��r]��ra��rb��rc��rd��re��rf��rg��rk��rn��rq��rt��rw��rz��r}��r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r�������s���� r����c�������������������@���sf��e�Zd�Zd�dd�Zdd��Zdd��Zdd ��Zd d��Zdd ��Zdd��Z dd��Z dd��Zdd��Zdd��Z dd��Zdd��Zdd��Zdd��Zd d!��Zd"d#��Zd$d%��Zd&d'��Zd(d)��Zd*d+��Zd,d-��Zd.d/��Zd0d1��Zd2d3��Zd4d5��Zd6d7��Zd8d9��Zd:d;��Zd<d=��Z d>d?��Z!d@dA��Z"dBdC��Z#dDdE��Z$dFdG��Z%dHdI��Z&dJdK��Z'dLdM��Z(dNdO��Z)dPdQ��Z*dRdS��Z+dTdU��Z,dVdW��Z-dXdY��Z.dZd[��Z/d\d]��Z0d^d_��Z1d`da��Z2dbdc��Z3ddde��Z4dfdg��Z5dhdi��Z6djdk��Z7dldm��Z8dndo��Z9dpdq��Z:drds��Z;dtdu��Z<dvdw��Z=dxdy��Z>dzd{��Z?d|d}��Z@d~d��ZAd�d���ZBd�d���ZCd�d���ZDd�d���ZEd�d���ZFd�d���ZGd�d���ZHd�d���ZId�d���ZJd�d���ZKd�d���ZLd�d���ZMd�d���ZNd�d���ZOd�d���ZPd�d���ZQd�d���ZRd�d���ZSd�d���ZTd�d���ZUd�d���ZVd�d���ZWd�d���ZXd�d���ZYd�d���ZZd�d���Z[d�d���Z\d�d���Z]d�d���Z^d�d���Z_d�d���Z`d�d���Zad�d���Zbd�dÄ�Zcd�dń�Zdd�dDŽ�Zed�dɄ�Zfd�d˄�Zgd�d̈́�Zhd�dτ�Zid�dф�Zjd�dӄ�Zkd�dՄ�Zld�dׄ�ZmdS�)�r����Nc�����������������C���s,���t�|�dkrtd��||�_tj|�|d��d�S�)Nr���z&xmlDoc got a wrong wrapper object typer|����r���r���r&���r����r���r'���r���r���r���r������s����zxmlDoc.__init__c�����������������C���s���d|�j�tt|���f�S�)Nz<xmlDoc (%s) object at 0x%x>r���r���r���r���r���r������s����zxmlDoc.__repr__c�����������������C���s���t��|�j||�}|S�)z�The HTML DTD allows a tag to implicitly close other tags. The list is kept in htmlStartClose array. This function checks if the element or one of it's children would autoclose the given tag. )r;����htmlAutoCloseTagr&���)r���rP���r_���r3���r���r���r���r������s����zxmlDoc.htmlAutoCloseTagc�����������������C���s���t��|�j|�}|S�)z�The HTML DTD allows a tag to implicitly close other tags. The list is kept in htmlStartClose array. This function checks if a tag is autoclosed by one of it's child )r;����htmlIsAutoClosedr&���)r���r_���r3���r���r���r���r������s����zxmlDoc.htmlIsAutoClosedc�����������������C���s*���|du�rd}n|j�}t�||�j�||��dS��zDump an HTML document. N�r&���r;����htmlDocContentDumpFormatOutput)r����bufr����r�����buf__or���r���r���r������s����z%xmlDoc.htmlDocContentDumpFormatOutputc�����������������C���s(���|du�rd}n|j�}t�||�j�|��dS��z;Dump an HTML document. Formatting return/spaces are added. N�r&���r;����htmlDocContentDumpOutput)r���r���r����r���r���r���r���r������s����zxmlDoc.htmlDocContentDumpOutputc�����������������C���s���t��||�j�}|S�)z'Dump an HTML document to an open FILE. )r;����htmlDocDumpr&����r���r����r3���r���r���r���r������s����zxmlDoc.htmlDocDumpc�����������������C���s���t��|�j�}|S�)z,Encoding definition lookup in the Meta tags )r;����htmlGetMetaEncodingr&���ro���r���r���r���r������s����zxmlDoc.htmlGetMetaEncodingc�����������������C���s(���|du�rd}n|j�}t�||�j�|��dS�)znDump an HTML node, recursive behaviour,children are printed too, and formatting returns are added. N)r&���r;����htmlNodeDumpFile)r���r(��r��r���r���r���r���r������s����zxmlDoc.htmlNodeDumpFilec�����������������C���s,���|du�rd}n|j�}t�||�j�|||�}|S�)z�Dump an HTML node, recursive behaviour,children are printed too. TODO: if encoding == None try to save in the doc encoding N)r&���r;����htmlNodeDumpFileFormat)r���r(��r��r����r����r���r3���r���r���r���r������s����zxmlDoc.htmlNodeDumpFileFormatc�����������������C���s@���|du�rd}n|j�}|du�r"d}n|j�}t�||�j�|||��dS��zLDump an HTML node, recursive behaviour,children are printed too. N�r&���r;����htmlNodeDumpFormatOutput)r���r���r��r����r����r���r���r���r���r���r������s ����zxmlDoc.htmlNodeDumpFormatOutputc�����������������C���s>���|du�rd}n|j�}|du�r"d}n|j�}t�||�j�||��dS��zuDump an HTML node, recursive behaviour,children are printed too, and formatting returns/spaces are added. N�r&���r;����htmlNodeDumpOutput)r���r���r��r����r���r���r���r���r���r������s ����zxmlDoc.htmlNodeDumpOutputc�����������������C���s���t��||�j�}|S�)zYDump an HTML document to a file. If @filename is "-" the stdout file is used. )r;����htmlSaveFiler&����r���r ��r3���r���r���r���r������s����zxmlDoc.htmlSaveFilec�����������������C���s���t��||�j|�}|S�)zkDump an HTML document to a file using a given encoding and formatting returns/spaces are added. )r;����htmlSaveFileEncr&����r���r ��r����r3���r���r���r���r������s����zxmlDoc.htmlSaveFileEncc�����������������C���s���t��||�j||�}|S�)z8Dump an HTML document to a file using a given encoding. )r;����htmlSaveFileFormatr&����r���r ��r����r����r3���r���r���r���r������s����zxmlDoc.htmlSaveFileFormatc�����������������C���s���t��|�j|�}|S�)z�Sets the current encoding in the Meta tags NOTE: this will not change the document content encoding, just the META flag associated. )r;����htmlSetMetaEncodingr&���)r���r����r3���r���r���r���r������s����zxmlDoc.htmlSetMetaEncodingc�����������������C���s���t��||�j�}|S�)z_Check the document for potential content problems, and output the errors to @output )r;���ZxmlDebugCheckDocumentr&���)r���rQ��r3���r���r���r����debugCheckDocument���s����zxmlDoc.debugCheckDocumentc�����������������C���s���t��||�j��dS�)z9Dumps debug information for the document, it's recursive N)r;���ZxmlDebugDumpDocumentr&���r���r���r���r����debugDumpDocument���s����zxmlDoc.debugDumpDocumentc�����������������C���s���t��||�j��dS�)zJDumps debug information concerning the document, not recursive N)r;���ZxmlDebugDumpDocumentHeadr&���r���r���r���r����debugDumpDocumentHead���s����zxmlDoc.debugDumpDocumentHeadc�����������������C���s���t��||�j��dS�)zODumps debug information for all the entities in use by the document N)r;���ZxmlDebugDumpEntitiesr&���r���r���r���r����debugDumpEntities��s����zxmlDoc.debugDumpEntitiesc�����������������C���s4���t��|�j|||||�}|du�r&td��t|d�}|S�)z)Register a new entity for this document. NzxmlAddDocEntity() failedr|���)r;���ZxmlAddDocEntityr&���r���r�����r���rP���r���r��r���rV���r3����_xmlDoc__tmpr���r���r����addDocEntity��s���� zxmlDoc.addDocEntityc�����������������C���s4���t��|�j|||||�}|du�r&td��t|d�}|S�)z=Register a new entity for this document DTD external subset. NzxmlAddDtdEntity() failedr|���)r;���ZxmlAddDtdEntityr&���r���r����r���r���r���r����addDtdEntity��s���� zxmlDoc.addDtdEntityc�����������������C���s,���t��|�j|�}|du�rtd��t|d�}|S�)z:Do an entity lookup in the document entity hash table and NzxmlGetDocEntity() failedr|���)r;���ZxmlGetDocEntityr&���r���r�����r���rP���r3���r���r���r���r���� docEntity��s���� zxmlDoc.docEntityc�����������������C���s,���t��|�j|�}|du�rtd��t|d�}|S�)z5Do an entity lookup in the DTD entity hash table and NzxmlGetDtdEntity() failedr|���)r;���ZxmlGetDtdEntityr&���r���r����r���r���r���r���� dtdEntity!��s���� zxmlDoc.dtdEntityc�����������������C���s���t��|�j|�}|S�)z�TODO: remove xmlEncodeEntities, once we are not afraid of breaking binary compatibility People must migrate their code to xmlEncodeEntitiesReentrant ! This routine will issue a warning when encountered. )r;���ZxmlEncodeEntitiesr&����r���r����r3���r���r���r����encodeEntities(��s����zxmlDoc.encodeEntitiesc�����������������C���s���t��|�j|�}|S�)a���Do a global encoding of a string, replacing the predefined entities and non ASCII values with their entities and CharRef counterparts. Contrary to xmlEncodeEntities, this routine is reentrant, and result must be deallocated. )r;���ZxmlEncodeEntitiesReentrantr&���r���r���r���r����encodeEntitiesReentrant0��s����zxmlDoc.encodeEntitiesReentrantc�����������������C���s���t��|�j|�}|S�)z�Do a global encoding of a string, replacing the predefined entities this routine is reentrant, and result must be deallocated. )r;���ZxmlEncodeSpecialCharsr&���r���r���r���r����encodeSpecialChars8��s����zxmlDoc.encodeSpecialCharsc�����������������C���s4���t��|�j|||||�}|du�r&td��t|d�}|S�)aQ��Create a new entity, this differs from xmlAddDocEntity() that if the document is None or has no internal subset defined, then an unlinked entity structure will be returned, it is then the responsibility of the caller to link it to the document later or free it when not needed anymore. NzxmlNewEntity() failedr|���)r;���ZxmlNewEntityr&���r���r����r���r���r���r���� newEntity?��s���� zxmlDoc.newEntityc�����������������C���s,���t��|�j|�}|du�rtd��t|d�}|S�)z=Do an entity lookup in the internal and external subsets and NzxmlGetParameterEntity() failedr|���)r;���ZxmlGetParameterEntityr&���r���r����r���r���r���r����parameterEntityK��s���� zxmlDoc.parameterEntityc�����������������C���s*���t��|�j�}|du�rtd��t|d�}|S�)z�Create an XML RelaxNGs parser context for that document. Note: since the process of compiling a RelaxNG schemas modifies the document, the @doc parameter is duplicated internally. Nz#xmlRelaxNGNewDocParserCtxt() failedr|���)r;���ZxmlRelaxNGNewDocParserCtxtr&���r!���r����r���r3���r���r���r���r����relaxNGNewDocParserCtxtV��s���� zxmlDoc.relaxNGNewDocParserCtxtc�����������������C���s&���|du�rd}n|j�}t�||�j��}|S��z$Validate a document tree in memory. N�r&���r;���ZxmlRelaxNGValidateDocr`��r���r���r����relaxNGValidateDoc`��s����zxmlDoc.relaxNGValidateDocc�����������������C���s<���|du�rd}n|j�}|du�r"d}n|j�}t�||�j�|�}|S��z�Validate a full subtree when xmlRelaxNGValidatePushElement() returned 0 and the content of the node has been expanded. N�r&���r;���ZxmlRelaxNGValidateFullElement�r���r����r_���r���r���r3���r���r���r����relaxNGValidateFullElementg��s����z!xmlDoc.relaxNGValidateFullElementc�����������������C���s<���|du�rd}n|j�}|du�r"d}n|j�}t�||�j�|�}|S��z7Pop the element end from the RelaxNG validation stack. N�r&���r;���ZxmlRelaxNGValidatePopElementr���r���r���r����relaxNGValidatePopElementr��s����z xmlDoc.relaxNGValidatePopElementc�����������������C���s<���|du�rd}n|j�}|du�r"d}n|j�}t�||�j�|�}|S��z:Push a new element start on the RelaxNG validation stack. N�r&���r;���ZxmlRelaxNGValidatePushElementr���r���r���r����relaxNGValidatePushElement{��s����z!xmlDoc.relaxNGValidatePushElementc�����������������C���s,���t��|�j|�}|du�rtd��t|d�}|S�)z�Do a copy of the document info. If recursive, the content tree will be copied too as well as DTD, namespaces and entities. NzxmlCopyDoc() failedr|���)r;���Z xmlCopyDocr&���r���r����)r���� recursiver3���r���r���r���r����copyDoc���s���� zxmlDoc.copyDocc�����������������C���sB���|du�rd}n|j�}t�||�j�|�}|du�r4td��t|d�}|S�r���r���)r���r����r����node__or3���r���r���r���r���r������s���� zxmlDoc.copyNodec�����������������C���s@���|du�rd}n|j�}t�|�j�|�}|du�r2td��t|d�}|S�r���r���)r���r����r���r3���r���r���r���r���r������s���� zxmlDoc.copyNodeListc�����������������C���s0���t��|�j|||�}|du�r"td��t|d�}|S�)z)Create the internal subset of a document NzxmlCreateIntSubset() failedr|���)r;���ZxmlCreateIntSubsetr&���r���r�����r���rP���r��r���r3���r���r���r���r����createIntSubset���s���� zxmlDoc.createIntSubsetc�����������������C���s���t��|�j�}|S�)z5get the compression ratio for a document, ZLIB based )r;���ZxmlGetDocCompressModer&���ro���r���r���r����docCompressMode���s����zxmlDoc.docCompressModec�����������������C���s���t��||�j�}|S��z&Dump an XML document to an open FILE. )r;���Z xmlDocDumpr&���r���r���r���r����dump���s����zxmlDoc.dumpc�����������������C���s(���|du�rd}n|j�}t�||�j�|��dS�)zQDump an XML/HTML node, recursive behaviour, children are printed too. N)r&���r;���ZxmlElemDump)r���r����r��r���r���r���r����elemDump���s����zxmlDoc.elemDumpc�����������������C���s���t��||�j|�}|S�r���)r;���ZxmlDocFormatDumpr&���)r���r����r����r3���r���r���r���� formatDump���s����zxmlDoc.formatDumpc�����������������C���s���t��|�j��dS�)zIFree up all the structures used by a document, tree included. N)r;���r����r&���r���r���r���r����freeDoc���s����zxmlDoc.freeDocc�����������������C���s*���t��|�j�}|du�rtd��t|d�}|S�)zvGet the root element of the document (doc->children is a list containing possibly comments, PIs, etc ...). NzxmlDocGetRootElement() failedr|���)r;���ZxmlDocGetRootElementr&���r���r����r���r���r���r����getRootElement���s���� zxmlDoc.getRootElementc�����������������C���s*���t��|�j�}|du�rtd��t|d�}|S�)z&Get the internal subset of a document NzxmlGetIntSubset() failedr|���)r;���ZxmlGetIntSubsetr&���r���r����r���r���r���r���� intSubset���s���� zxmlDoc.intSubsetc�����������������C���s.���t��|�j||�}|du�r td��t|d�}|S�)z1Creation of a new node containing a CDATA block. NzxmlNewCDataBlock() failedr|���)r;���ZxmlNewCDataBlockr&���r���r�����r���rV���r2���r3���r���r���r���r���� newCDataBlock���s���� zxmlDoc.newCDataBlockc�����������������C���s,���t��|�j|�}|du�rtd��t|d�}|S�)z,Creation of a new character reference node. NzxmlNewCharRef() failedr|���)r;���Z xmlNewCharRefr&���r���r����r���r���r���r���� newCharRef���s���� zxmlDoc.newCharRefc�����������������C���s,���t��|�j|�}|du�rtd��t|d�}|S�)zJCreation of a new node containing a comment within a document. NzxmlNewDocComment() failedr|���)r;���ZxmlNewDocCommentr&���r���r�����r���rV���r3���r���r���r���r���� newDocComment���s���� zxmlDoc.newDocCommentc�����������������C���s*���t��|�j�}|du�rtd��t|d�}|S�)z!Creation of a new Fragment node. NzxmlNewDocFragment() failedr|���)r;���ZxmlNewDocFragmentr&���r���r����r���r���r���r����newDocFragment���s���� zxmlDoc.newDocFragmentc�����������������C���sD���|du�rd}n|j�}t�|�j�|||�}|du�r6td��t|d�}|S���t��Creation of a new node element within a document. @ns and @content are optional (None). NOTE: @content is supposed to be a piece of XML CDATA, so it allow entities references, but XML special chars need to be escaped first by using xmlEncodeEntitiesReentrant(). Use xmlNewDocRawNode() if you don't need entities support. NzxmlNewDocNode() failedr|����r&���r;���Z xmlNewDocNoder���r�����r���r���rP���rV���r��r3���r���r���r���r���� newDocNode���s���� zxmlDoc.newDocNodec�����������������C���sD���|du�rd}n|j�}t�|�j�|||�}|du�r6td��t|d�}|S��r���NzxmlNewDocNodeEatName() failedr|����r&���r;���ZxmlNewDocNodeEatNamer���r����r���r���r���r����newDocNodeEatName���s���� zxmlDoc.newDocNodeEatNamec�����������������C���s.���t��|�j||�}|du�r td��t|d�}|S�)z.Creation of a processing instruction element. NzxmlNewDocPI() failedr|���)r;���ZxmlNewDocPIr&���r���r����)r���rP���rV���r3���r���r���r���r����newDocPI ��s���� zxmlDoc.newDocPIc�����������������C���s.���t��|�j||�}|du�r td��t|d�}|S�)a6��Create a new property carried by a document. NOTE: @value is supposed to be a piece of XML CDATA, so it allows entity references, but XML special chars need to be escaped first by using xmlEncodeEntitiesReentrant(). Use xmlNewProp() if you don't need entities support. NzxmlNewDocProp() failedr|���)r;���Z xmlNewDocPropr&���r���r~���)r���rP���r2��r3���r���r���r���r���� newDocProp��s���� zxmlDoc.newDocPropc�����������������C���sD���|du�rd}n|j�}t�|�j�|||�}|du�r6td��t|d�}|S��zcCreation of a new node element within a document. @ns and @content are optional (None). NzxmlNewDocRawNode() failedr|����r&���r;���ZxmlNewDocRawNoder���r����r���r���r���r���� newDocRawNode��s���� zxmlDoc.newDocRawNodec�����������������C���s,���t��|�j|�}|du�rtd��t|d�}|S�)z/Creation of a new text node within a document. NzxmlNewDocText() failedr|���)r;���Z xmlNewDocTextr&���r���r����r���r���r���r���� newDocText)��s���� zxmlDoc.newDocTextc�����������������C���s.���t��|�j||�}|du�r td��t|d�}|S�)zzCreation of a new text node with an extra content length parameter. The text node pertain to a given document. NzxmlNewDocTextLen() failedr|���)r;���ZxmlNewDocTextLenr&���r���r����r���r���r���r���� newDocTextLen0��s���� zxmlDoc.newDocTextLenc�����������������C���s0���t��|�j|||�}|du�r"td��t|d�}|S�)zrCreation of a new DTD for the external subset. To create an internal subset, use xmlCreateIntSubset(). NzxmlNewDtd() failedr|���)r;���Z xmlNewDtdr&���r���r����r���r���r���r����newDtd8��s���� z xmlDoc.newDtdc�����������������C���s.���t��|�j||�}|du�r td��t|d�}|S�)z\Creation of a Namespace, the old way using PI and without scoping DEPRECATED !!! NzxmlNewGlobalNs() failedr|���)r;���ZxmlNewGlobalNsr&���r���r����)r���r����r���r3���r���r���r���r����newGlobalNs@��s���� zxmlDoc.newGlobalNsc�����������������C���s,���t��|�j|�}|du�rtd��t|d�}|S�)z"Creation of a new reference node. NzxmlNewReference() failedr|���)r;���ZxmlNewReferencer&���r���r����r���r���r���r����newReferenceH��s���� zxmlDoc.newReferencec�����������������C���sB���|du�rd}n|j�}|du�r"d}n|j�}t�||�j�||||��dS��z�Dump an XML node, recursive behaviour, children are printed too. Note that @format = 1 provide node indenting only if xmlIndentTreeOutput = 1 or xmlKeepBlanksDefault(0) was called N�r&���r;���ZxmlNodeDumpOutput)r���r���r��r<��r����r����r���r���r���r���r����nodeDumpOutputO��s ����zxmlDoc.nodeDumpOutputc�����������������C���s&���|du�rd}n|j�}t�|�j�|�}|S�r���r���)r���r��r���r3���r���r���r����nodeGetBaseZ��s����zxmlDoc.nodeGetBasec�����������������C���s(���|du�rd}n|j�}t�|�j�||�}|S�r��r���r���r����r���list__or3���r���r���r����nodeListGetRawStringf��s����zxmlDoc.nodeListGetRawStringc�����������������C���s(���|du�rd}n|j�}t�|�j�||�}|S�r ��r��r��r���r���r����nodeListGetStringp��s����zxmlDoc.nodeListGetStringc�����������������C���s&���|du�rd}n|j�}t�|�j�|�}|S�r'��r(��)r����tree�tree__or3���r���r���r���r)��x��s���� zxmlDoc.reconciliateNsc�����������������C���s���t��||�j�}|S�)z�Dump an XML document to a file. Will use compression if compiled in and enabled. If @filename is "-" the stdout file is used. )r;���ZxmlSaveFiler&���r���r���r���r����saveFile���s����zxmlDoc.saveFilec�����������������C���s���t��||�j|�}|S�)z:Dump an XML document, converting it to the given encoding )r;���ZxmlSaveFileEncr&���r���r���r���r����saveFileEnc���s����zxmlDoc.saveFileEncc�����������������C���s(���|du�rd}n|j�}t�||�j�|�}|S��z�Dump an XML document to an I/O buffer. Warning ! This call xmlOutputBufferClose() on buf which is not available after this call. N�r&���r;���Z xmlSaveFileTo)r���r���r����r���r3���r���r���r���� saveFileTo���s����zxmlDoc.saveFileToc�����������������C���s���t��||�j|�}|S�)ad��Dump an XML document to a file. Will use compression if compiled in and enabled. If @filename is "-" the stdout file is used. If @format is set then the document will be indented on output. Note that @format = 1 provide node indenting only if xmlIndentTreeOutput = 1 or xmlKeepBlanksDefault(0) was called )r;���ZxmlSaveFormatFiler&���)r���r ��r����r3���r���r���r����saveFormatFile���s����zxmlDoc.saveFormatFilec�����������������C���s���t��||�j||�}|S�)z*Dump an XML document to a file or an URL. )r;���ZxmlSaveFormatFileEncr&���r���r���r���r����saveFormatFileEnc���s����zxmlDoc.saveFormatFileEncc�����������������C���s*���|du�rd}n|j�}t�||�j�||�}|S�r���r&���r;���ZxmlSaveFormatFileTo)r���r���r����r����r���r3���r���r���r����saveFormatFileTo���s����zxmlDoc.saveFormatFileToc�����������������C���sB���|du�rd}n|j�}t�|�j�||�}|du�r4td��t|d�}|S�r+��r,��)r���r����r���r���r3���r���r���r���r���r-�����s���� zxmlDoc.searchNsc�����������������C���sB���|du�rd}n|j�}t�|�j�||�}|du�r4td��t|d�}|S�r.��r/��)r���r����r����r���r3���r���r���r���r���r0�����s���� zxmlDoc.searchNsByHrefc�����������������C���s���t��|�j|��dS�)zxset the compression ratio for a document, ZLIB based Correct values: 0 (uncompressed) to 9 (max compression) N)r;���ZxmlSetDocCompressModer&���)r���r���r���r���r����setDocCompressMode���s����zxmlDoc.setDocCompressModec�����������������C���s&���|du�rd}n|j�}t�||�j���dS�r6��r7��)r���r����r��r���r���r���r9�����s����zxmlDoc.setListDocc�����������������C���s<���|du�rd}n|j�}t�|�j�|�}|du�r.dS�t|d�}|S�r���r���)r����rootZroot__or3���r���r���r���r����setRootElement���s���� zxmlDoc.setRootElementc�����������������C���s&���|du�rd}n|j�}t�||�j���dS�rC��rD��)r���r��r��r���r���r���rE�����s����zxmlDoc.setTreeDocc�����������������C���s,���t��|�j|�}|du�rtd��t|d�}|S�)��Parse the value string and build the node list associated. Should produce a flat tree with only TEXTs and ENTITY_REFs. NzxmlStringGetNodeList() failedr|���)r;���ZxmlStringGetNodeListr&���r���r����)r���r2��r3���r���r���r���r����stringGetNodeList���s���� zxmlDoc.stringGetNodeListc�����������������C���s.���t��|�j||�}|du�r td��t|d�}|S�)r��Nz xmlStringLenGetNodeList() failedr|���)r;���ZxmlStringLenGetNodeListr&���r���r����)r���r2��r2���r3���r���r���r���r����stringLenGetNodeList���s���� zxmlDoc.stringLenGetNodeListc�����������������C���s,���t��|�j|�}|du�rtd��t|d�}|S�)z,Search the attribute declaring the given ID NzxmlGetID() failedr|���)r;���ZxmlGetIDr&���r���r~���)r���r���r3���r���r���r���r���r������s���� z xmlDoc.IDc�����������������C���s<���|du�rd}n|j�}|du�r"d}n|j�}t�|�j�||�}|S�rN��rO���r���r_���r����r���rQ��r3���r���r���r���rR����s����zxmlDoc.isIDc�����������������C���s���t��|�j|�}|S�)z�Search in the DtDs whether an element accept Mixed content (or ANY) basically if it is supposed to accept text childs )r;���ZxmlIsMixedElementr&���r!��r���r���r����isMixedElement��s����zxmlDoc.isMixedElementc�����������������C���s<���|du�rd}n|j�}|du�r"d}n|j�}t�|�j�||�}|S�rS��rT��r��r���r���r���rU����s����zxmlDoc.isRefc�����������������C���s&���|du�rd}n|j�}t�|�j�|�}|S��zORemove the given attribute from the ID table maintained internally. N�r&���r;���ZxmlRemoveID�r���r����rQ��r3���r���r���r����removeID"��s����zxmlDoc.removeIDc�����������������C���s&���|du�rd}n|j�}t�|�j�|�}|S��zPRemove the given attribute from the Ref table maintained internally. N�r&���r;���ZxmlRemoveRefr��r���r���r���� removeRef*��s����zxmlDoc.removeRefc�����������������C���s@���|du�rd}n|j�}|du�r"d}n|j�}t�||�j�|||�}|S��a���Does the validation related extra step of the normalization of attribute values: If the declared value is not CDATA, then the XML processor must further process the normalized attribute value by discarding any leading and trailing space (#x20) characters, and by replacing sequences of space (#x20) characters by single space (#x20) character. Also check VC: Standalone Document Declaration in P32, and update ctxt->valid accordingly N�r&���r;���Z#xmlValidCtxtNormalizeAttributeValue)r���r����r_���rP���r2��r���r���r3���r���r���r���� validCtxtNormalizeAttributeValue2��s���� z'xmlDoc.validCtxtNormalizeAttributeValuec�����������������C���s*���|du�rd}n|j�}t�|�j�|||�}|S�rV��rW��)r���r_���rP���r2��r���r3���r���r���r���rX��B��s����z#xmlDoc.validNormalizeAttributeValuec�����������������C���s&���|du�rd}n|j�}t�||�j��}|S��z�Try to validate the document instance basically it does the all the checks described by the XML Rec i.e. validates the internal and external subset (if present) and validate the document tree. N�r&���r;���ZxmlValidateDocumentr`��r���r���r����validateDocumentN��s����zxmlDoc.validateDocumentc�����������������C���s&���|du�rd}n|j�}t�||�j��}|S��a��Does the final step for the document validation once all the incremental validation steps have been completed basically it does the following checks described by the XML Rec Check all the IDREF/IDREFS attributes definition for validity N�r&���r;���ZxmlValidateDocumentFinalr`��r���r���r����validateDocumentFinalX��s����zxmlDoc.validateDocumentFinalc�����������������C���s<���|du�rd}n|j�}|du�r"d}n|j�}t�||�j�|�}|S��a��Try to validate the document against the dtd instance Basically it does check all the definitions in the DtD. Note the the internal subset (if present) is de-coupled (i.e. not used), which could give problems if ID or IDREF is present. N�r&���r;���ZxmlValidateDtd)r���r����r����r����dtd__or3���r���r���r����validateDtdc��s����zxmlDoc.validateDtdc�����������������C���s&���|du�rd}n|j�}t�||�j��}|S��a���Does the final step for the dtds validation once all the subsets have been parsed basically it does the following checks described by the XML Rec - check that ENTITY and ENTITIES type attributes default or possible values matches one of the defined entities. - check that NOTATION type attributes default or possible values matches one of the defined notations. N�r&���r;���ZxmlValidateDtdFinalr`��r���r���r����validateDtdFinalp��s����zxmlDoc.validateDtdFinalc�����������������C���s<���|du�rd}n|j�}|du�r"d}n|j�}t�||�j�|�}|S��z-Try to validate the subtree under an element N�r&���r;���ZxmlValidateElementr���r���r���r����validateElement}��s����zxmlDoc.validateElementc�����������������C���s(���|du�rd}n|j�}t�||�j�|�}|S��zbValidate that the given name match a notation declaration. - [ VC: Notation Declared ] N�r&���r;���ZxmlValidateNotationUse)r���r����rb���r���r3���r���r���r����validateNotationUse���s����zxmlDoc.validateNotationUsec����������� ������C���sT���|du�rd}n|j�}|du�r"d}n|j�}|du�r6d}n|j�}t�||�j�|||�}|S��a���Try to validate a single attribute for an element basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: Attribute Value Type ] - [ VC: Fixed Attribute Default ] - [ VC: Entity Name ] - [ VC: Name Token ] - [ VC: ID ] - [ VC: IDREF ] - [ VC: Entity Name ] - [ VC: Notation Attributes ] The ID/IDREF uniqueness and matching are done separately N�r&���r;���ZxmlValidateOneAttribute) r���r����r_���r����r2��r���r���rQ��r3���r���r���r����validateOneAttribute���s����zxmlDoc.validateOneAttributec�����������������C���s<���|du�rd}n|j�}|du�r"d}n|j�}t�||�j�|�}|S��a]��Try to validate a single element and it's attributes, basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: Element Valid ] - [ VC: Required Attribute ] Then call xmlValidateOneAttribute() for each attribute present. The ID/IDREF checkings are done separately N�r&���r;���ZxmlValidateOneElementr���r���r���r����validateOneElement���s����zxmlDoc.validateOneElementc����������� ������C���sV���|du�rd}n|j�}|du�r"d}n|j�}|du�r6d}n|j�}t�||�j�||||�} | S��a���Try to validate a single namespace declaration for an element basically it does the following checks as described by the XML-1.0 recommendation: - [ VC: Attribute Value Type ] - [ VC: Fixed Attribute Default ] - [ VC: Entity Name ] - [ VC: Name Token ] - [ VC: ID ] - [ VC: IDREF ] - [ VC: Entity Name ] - [ VC: Notation Attributes ] The ID/IDREF uniqueness and matching are done separately N�r&���r;���ZxmlValidateOneNamespace) r���r����r_���r���r���r2��r���r���r��r3���r���r���r����validateOneNamespace���s����zxmlDoc.validateOneNamespacec�����������������C���s>���|du�rd}n|j�}|du�r"d}n|j�}t�||�j�||�}|S��z/Pop the element end from the validation stack. N�r&���r;���ZxmlValidatePopElement�r���r����r_����qnamer���r���r3���r���r���r����validatePopElement���s����zxmlDoc.validatePopElementc�����������������C���s>���|du�rd}n|j�}|du�r"d}n|j�}t�||�j�||�}|S��z2Push a new element start on the validation stack. N�r&���r;���ZxmlValidatePushElementrB��r���r���r����validatePushElement���s����zxmlDoc.validatePushElementc�����������������C���s&���|du�rd}n|j�}t�||�j��}|S��z�Try to validate a the root element basically it does the following check as described by the XML-1.0 recommendation: - [ VC: Root Element Type ] it doesn't try to recurse or apply other check to the element N�r&���r;���ZxmlValidateRootr`��r���r���r����validateRoot���s����zxmlDoc.validateRootc�����������������C���s���t��|�j�}|S��z=Implement the XInclude substitution on the XML document @doc )r;���ZxmlXIncludeProcessr&���ro���r���r���r����xincludeProcess���s����zxmlDoc.xincludeProcessc�����������������C���s���t��|�j|�}|S�rK��)r;���ZxmlXIncludeProcessFlagsr&���r[��r���r���r����xincludeProcessFlags���s����zxmlDoc.xincludeProcessFlagsc�����������������C���s&���|du�rd}n|j�}t�||�j��}|S��zuSetup an xmltextReader to parse a preparsed XML document. This reuses the existing @reader xmlTextReader. N�r&���r;���ZxmlReaderNewWalker�r����reader� reader__or3���r���r���r���� NewWalker���s����zxmlDoc.NewWalkerc�����������������C���s*���t��|�j�}|du�rtd��t|d�}|S�)z2Create an xmltextReader for a preparsed document. NzxmlReaderWalker() failedr|���)r;���ZxmlReaderWalkerr&���r���r���r���r���r���r����readerWalker���s���� zxmlDoc.readerWalkerc�����������������C���s*���t��|�j�}|du�rtd��t|d�}|S�)zCreate an XML Schemas parse context for that document. NB. The document may be modified during the parsing process. Nz"xmlSchemaNewDocParserCtxt() failedr|���)r;���ZxmlSchemaNewDocParserCtxtr&���r!���r��r���r���r���r����schemaNewDocParserCtxt���s���� zxmlDoc.schemaNewDocParserCtxtc�����������������C���s&���|du�rd}n|j�}t�||�j��}|S�r����r&���r;���ZxmlSchemaValidateDocr`��r���r���r����schemaValidateDoc��s����zxmlDoc.schemaValidateDocc�����������������C���s*���t��|�j�}|du�rtd��t|d�}|S�)zCreate a new xmlXPathContext NzxmlXPathNewContext() failedr|���)r;���ZxmlXPathNewContextr&���r#���r���r���r���r���r���r������s���� zxmlDoc.xpathNewContextc�����������������C���s���t��|�j�}|S�)am��Call this routine to speed up XPath computation on static documents. This stamps all the element nodes with the document order Like for line information, the order is kept in the element->content field, the value stored is actually - the node number (starting at -1) to be able to differentiate from line numbers. )r;���ZxmlXPathOrderDocElemsr&���ro���r���r���r����xpathOrderDocElems��s����zxmlDoc.xpathOrderDocElemsc�����������������C���sV���|du�rd}n|j�}|du�r"d}n|j�}t�|�j�||�}|du�rHtd��t|d�}|S�r���r���)r����herer���Zhere__or���r3���r���r���r���r���r���'��s���� zxmlDoc.xpointerNewContext)N)nr���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r��r��r��r��r)��r ��r ��r ��r��r��r��r-��r0��r��r9��r��rE��r��r��r���rR��r��rU��r��r ��r#��rX��r&��r)��r-��r0��r3��r6��r9��r<��r?��rD��rG��rJ��rL��rM��rS��rT��rU��rW��r����rX��r���r���r���r���r���r�������s���� r����c�������������������@���s���e�Zd�Zd�dd�Zdd��Zdd��Zdd ��Zd d��Zdd ��Zdd��Z dd��Z dd��Zdd��Zdd��Z dd��Zdd��Zdd��Zdd��Zd d!��Zd"d#��Zd$d%��Zd&d'��Zd(d)��Zd*d+��Zd,d-��Zd.d/��Zd0d1��Zd2d3��Zd4d5��Zd6d7��Zd8d9��Zd:d;��Zd<d=��Z d>d?��Z!d@dA��Z"dBdC��Z#dDdE��Z$dFdG��Z%dHdI��Z&dJdK��Z'dLdM��Z(dNdO��Z)dPdQ��Z*dRdS��Z+dTdU��Z,dVdW��Z-dXdY��Z.dZd[��Z/d\d]��Z0d^d_��Z1d`da��Z2dbdc��Z3ddde��Z4dfdg��Z5dhdi��Z6djdk��Z7dldm��Z8dndo��Z9dpdq��Z:drds��Z;dtdu��Z<dvdw��Z=dxdy��Z>dzd{��Z?d|d}��Z@d~d��ZAd�d���ZBd�d���ZCd�d���ZDd�d���ZEd�d���ZFd�d���ZGd�d���ZHd�d���ZId�d���ZJd�d���ZKd�d���ZLd�d���ZMd�d���ZNd�d���ZOd�d���ZPd�d���ZQd�d���ZRd�d���ZSd�d���ZTd�d���ZUdS�)�r����Nc�����������������C���s���||�_�tj|�|d��d�S�r{���)r&���r����r���r'���r���r���r���r���3��s����zparserCtxt.__init__c�����������������C���s ���|�j�d�krt�|�j���d�|�_�d�S�r���r����r���r���r���r���r>���7��s���� zparserCtxt.__del__c�����������������C���s*���t��|�j�}|du�rtd��t|d�}|S�)z-Get the document tree from a parser context. NzxmlParserGetDoc() failedr|���)r;���ZxmlParserGetDocr&���r!���r�����r���r3����_parserCtxt__tmpr���r���r���r����=��s���� zparserCtxt.docc�����������������C���s���t��|�j�}|S�)z4Get the validity information from a parser context. )r;���ZxmlParserGetIsValidr&���ro���r���r���r����isValidD��s����zparserCtxt.isValidc�����������������C���s���t��|�j|��dS�)z<Switch on the generation of line number for elements nodes. N)r;���ZxmlParserSetLineNumbersr&���)r���Zlinenumbersr���r���r����lineNumbersI��s����zparserCtxt.lineNumbersc�����������������C���s���t��|�j|��dS�)z6Switch the parser to load the DTD without validating. N)r;���ZxmlParserSetLoadSubsetr&���)r���Z loadsubsetr���r���r���� loadSubsetM��s����zparserCtxt.loadSubsetc�����������������C���s���t��|�j|��dS�)z"Switch the parser to be pedantic. N)r;���ZxmlParserSetPedanticr&���)r����pedanticr���r���r���r_��Q��s����zparserCtxt.pedanticc�����������������C���s���t��|�j|��dS�)z'Switch the parser to replace entities. N)r;���ZxmlParserSetReplaceEntitiesr&���)r����replaceEntitiesr���r���r���r`��U��s����zparserCtxt.replaceEntitiesc�����������������C���s���t��|�j|��dS�)z&Switch the parser to validation mode. N)r;���ZxmlParserSetValidater&���)r����validater���r���r���ra��Y��s����zparserCtxt.validatec�����������������C���s���t��|�j�}|S�)z7Get the well formed information from a parser context. )r;���ZxmlParserGetWellFormedr&���ro���r���r���r���� wellFormed]��s����zparserCtxt.wellFormedc�����������������C���s2���t��|�j||||�}|du�r$td��t|d�}|S�)�kparse an XML in-memory document and build a tree. This reuses the existing @ctxt parser context NzhtmlCtxtReadDoc() failedr|���)r;����htmlCtxtReadDocr&���r���r�����r���r��r ��r����r��r3���r[��r���r���r���rd��f��s���� zparserCtxt.htmlCtxtReadDocc�����������������C���s2���t��|�j||||�}|du�r$td��t|d�}|S�)zoparse an XML from a file descriptor and build a tree. This reuses the existing @ctxt parser context NzhtmlCtxtReadFd() failedr|���)r;����htmlCtxtReadFdr&���r���r�����r���r��r ��r����r��r3���r[��r���r���r���rf��n��s���� zparserCtxt.htmlCtxtReadFdc�����������������C���s0���t��|�j|||�}|du�r"td��t|d�}|S�)�oparse an XML file from the filesystem or the network. This reuses the existing @ctxt parser context NzhtmlCtxtReadFile() failedr|���)r;����htmlCtxtReadFiler&���r���r�����r���r ��r����r��r3���r[��r���r���r���ri��v��s���� zparserCtxt.htmlCtxtReadFilec�����������������C���s4���t��|�j|||||�}|du�r&td��t|d�}|S�)rc��NzhtmlCtxtReadMemory() failedr|���)r;����htmlCtxtReadMemoryr&���r���r�����r���r����r����r ��r����r��r3���r[��r���r���r���rk��~��s���� zparserCtxt.htmlCtxtReadMemoryc�����������������C���s���t��|�j��dS��zReset a parser context N)r;���� htmlCtxtResetr&���r���r���r���r���rn�����s����zparserCtxt.htmlCtxtResetc�����������������C���s���t��|�j|�}|S��z*Applies the options to the parser context )r;����htmlCtxtUseOptionsr&����r���r��r3���r���r���r���rp�����s����zparserCtxt.htmlCtxtUseOptionsc�����������������C���s���t��|�j��dS�)zrFree all the memory used by a parser context. However the parsed document in ctxt->myDoc is not freed. N)r;����htmlFreeParserCtxtr&���r���r���r���r���rr�����s����zparserCtxt.htmlFreeParserCtxtc�����������������C���s���t��|�j�}|S�)zcparse Reference declarations [66] CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';' )r;����htmlParseCharRefr&���ro���r���r���r���rs�����s����zparserCtxt.htmlParseCharRefc�����������������C���s���t��|�j|||�}|S��zParse a Chunk of memory )r;����htmlParseChunkr&����r���r���r����Z terminater3���r���r���r���ru�����s����zparserCtxt.htmlParseChunkc�����������������C���s���t��|�j�}|S�)zZparse an HTML document (and build a tree if using the standard SAX interface). )r;����htmlParseDocumentr&���ro���r���r���r���rw�����s����zparserCtxt.htmlParseDocumentc�����������������C���s���t��|�j��dS�)z�parse an HTML element, this is highly recursive this is kept for compatibility with previous code versions [39] element ::= EmptyElemTag | STag content ETag [41] Attribute ::= Name Eq AttValue N)r;����htmlParseElementr&���r���r���r���r���rx�����s����zparserCtxt.htmlParseElementc�����������������C���s���t��|�j�}|S�)a���This function provides the current index of the parser relative to the start of the current entity. This function is computed in bytes from the beginning starting at zero and finishing at the size in byte of the file if parsing a file. The function is of constant cost if the input is UTF-8 but can be costly if run on non-UTF-8 input. )r;���ZxmlByteConsumedr&���ro���r���r���r����byteConsumed���s����zparserCtxt.byteConsumedc�����������������C���s���t��|�j��dS�)zMClear (release owned resources) and reinitialize a parser context N)r;���ZxmlClearParserCtxtr&���r���r���r���r����clearParserCtxt���s����zparserCtxt.clearParserCtxtc�����������������C���s2���t��|�j||||�}|du�r$td��t|d�}|S�)rc��NzxmlCtxtReadDoc() failedr|���)r;���ZxmlCtxtReadDocr&���r���r����re��r���r���r����ctxtReadDoc���s���� zparserCtxt.ctxtReadDocc�����������������C���s2���t��|�j||||�}|du�r$td��t|d�}|S�)z�parse an XML from a file descriptor and build a tree. This reuses the existing @ctxt parser context NOTE that the file descriptor will not be closed when the reader is closed or reset. NzxmlCtxtReadFd() failedr|���)r;���Z xmlCtxtReadFdr&���r���r����rg��r���r���r���� ctxtReadFd���s���� zparserCtxt.ctxtReadFdc�����������������C���s0���t��|�j|||�}|du�r"td��t|d�}|S�)rh��NzxmlCtxtReadFile() failedr|���)r;���ZxmlCtxtReadFiler&���r���r����rj��r���r���r����ctxtReadFile���s���� zparserCtxt.ctxtReadFilec�����������������C���s4���t��|�j|||||�}|du�r&td��t|d�}|S�)rc��NzxmlCtxtReadMemory() failedr|���)r;���ZxmlCtxtReadMemoryr&���r���r����rl��r���r���r����ctxtReadMemory���s���� zparserCtxt.ctxtReadMemoryc�����������������C���s���t��|�j��dS�rm��)r;���ZxmlCtxtResetr&���r���r���r���r���� ctxtReset���s����zparserCtxt.ctxtResetc�����������������C���s���t��|�j||||�}|S�)zReset a push parser context )r;���ZxmlCtxtResetPushr&���)r���r���r����r ��r����r3���r���r���r���� ctxtResetPush���s����zparserCtxt.ctxtResetPushc�����������������C���s���t��|�j|�}|S�ro��)r;���ZxmlCtxtUseOptionsr&���rq��r���r���r����ctxtUseOptions���s����zparserCtxt.ctxtUseOptionsc�����������������C���s���t��|�j�}|S�)zInitialize a parser context )r;���ZxmlInitParserCtxtr&���ro���r���r���r����initParserCtxt���s����zparserCtxt.initParserCtxtc�����������������C���s���t��|�j|||�}|S�rt��)r;���Z xmlParseChunkr&���rv��r���r���r���� parseChunk���s����zparserCtxt.parseChunkc�����������������C���s���t��|�j�}|S�)z�parse an XML document (and build a tree if using the standard SAX interface). [1] document ::= prolog element Misc* [22] prolog ::= XMLDecl? Misc* (doctypedecl Misc*)? )r;���ZxmlParseDocumentr&���ro���r���r���r���� parseDocument���s����zparserCtxt.parseDocumentc�����������������C���s���t��|�j�}|S�)z�parse a general parsed entity An external general parsed entity is well-formed if it matches the production labeled extParsedEnt. [78] extParsedEnt ::= TextDecl? content )r;���ZxmlParseExtParsedEntr&���ro���r���r���r����parseExtParsedEnt���s����zparserCtxt.parseExtParsedEntc�����������������C���s���t��|�j||��dS�)z�Setup the parser context to parse a new buffer; Clears any prior contents from the parser context. The buffer parameter must not be None, but the filename parameter can be N)r;���ZxmlSetupParserForBufferr&���)r���r����r ��r���r���r����setupParserForBuffer��s����zparserCtxt.setupParserForBufferc�����������������C���s���t��|�j��dS�)z!Blocks further parser processing N)r;���Z xmlStopParserr&���r���r���r���r���� stopParser��s����zparserCtxt.stopParserc�����������������C���s���t��|�j|||||�}|S�)z�This function is deprecated, we now always process entities content through xmlStringDecodeEntities TODO: remove it in next major release. [67] Reference ::= EntityRef | CharRef [69] PEReference ::= '%' Name ';' )r;���ZxmlDecodeEntitiesr&���)r���r2����whatr����end2�end3r3���r���r���r����decodeEntities��s����zparserCtxt.decodeEntitiesc�����������������C���s&���|du�rd}n|j�}t�|�j�|��dS��z�Default handling of defined entities, when should we define a new input stream ? When do we just handle that as a set of chars ? OBSOLETE: to be removed at some point. N�r&���r;���ZxmlHandleEntity)r���ZentityZ entity__or���r���r����handleEntity��s����zparserCtxt.handleEntityc�����������������C���s���t��|�j�}|S�)aC��parse an XML namespace name. TODO: this seems not in use anymore, the namespace handling is done on top of the SAX interfaces, i.e. not on raw input. [NS 3] NCName ::= (Letter | '_') (NCNameChar)* [NS 4] NCNameChar ::= Letter | Digit | '.' | '-' | '_' | CombiningChar | Extender )r;���ZxmlNamespaceParseNCNamer&���ro���r���r���r����namespaceParseNCName&��s����zparserCtxt.namespaceParseNCNamec�����������������C���s���t��|�j�}|S�)a!��parse a namespace prefix declaration TODO: this seems not in use anymore, the namespace handling is done on top of the SAX interfaces, i.e. not on raw input. [NS 1] NSDef ::= PrefixDef Eq SystemLiteral [NS 2] PrefixDef ::= 'xmlns' (':' NCName)? )r;���ZxmlNamespaceParseNSDefr&���ro���r���r���r����namespaceParseNSDef/��s����zparserCtxt.namespaceParseNSDefc�����������������C���s���t��|�j��dS�)z"Skip to the next char input char. N)r;���ZxmlNextCharr&���r���r���r���r����nextChar8��s����zparserCtxt.nextCharc�����������������C���s���t��|�j�}|S�)a��parse a value for an attribute Note: the parser won't do substitution of entities here, this will be handled later in xmlStringGetNodeList [10] AttValue ::= '"' ([^<&"] | Reference)* '"' | "'" ([^<&'] | Reference)* "'" 3.3.3 Attribute-Value Normalization: Before the value of an attribute is passed to the application or checked for validity, the XML processor must normalize it as follows: - a character reference is processed by appending the referenced character to the attribute value - an entity reference is processed by recursively processing the replacement text of the entity - a whitespace character (#x20, #xD, #xA, #x9) is processed by appending #x20 to the normalized value, except that only a single #x20 is appended for a "#xD#xA" sequence that is part of an external parsed entity or the literal entity value of an internal parsed entity - other characters are processed by appending them to the normalized value If the declared value is not CDATA, then the XML processor must further process the normalized attribute value by discarding any leading and trailing space (#x20) characters, and by replacing sequences of space (#x20) characters by a single space (#x20) character. All attributes for which no declaration has been read should be treated by a non-validating parser as if declared CDATA. )r;���ZxmlParseAttValuer&���ro���r���r���r���� parseAttValue<��s����zparserCtxt.parseAttValuec�����������������C���s���t��|�j��dS�)z�: parse the Attribute list def for an element [52] AttlistDecl ::= '<!ATTLIST' S Name AttDef* S? '>' [53] AttDef ::= S Name S AttType S DefaultDecl N)r;���ZxmlParseAttributeListDeclr&���r���r���r���r����parseAttributeListDeclX��s����z!parserCtxt.parseAttributeListDeclc�����������������C���s���t��|�j��dS�)z�Parse escaped pure raw content. [18] CDSect ::= CDStart CData CDEnd [19] CDStart ::= '<![CDATA[' [20] Data ::= (Char* - (Char* ']]>' Char*)) [21] CDEnd ::= ']]>' N)r;���ZxmlParseCDSectr&���r���r���r���r����parseCDSect^��s����zparserCtxt.parseCDSectc�����������������C���s���t��|�j|��dS�)a���parse a CharData section. if we are within a CDATA section ']]>' marks an end of section. The right angle bracket (>) may be represented using the string ">", and must, for compatibility, be escaped using ">" or a character reference when it appears in the string "]]>" in content, when that string is not marking the end of a CDATA section. [14] CharData ::= [^<&]* - ([^<&]* ']]>' [^<&]*) N)r;���ZxmlParseCharDatar&���)r���Zcdatar���r���r���� parseCharDatad��s����zparserCtxt.parseCharDatac�����������������C���s���t��|�j�}|S�)z�parse Reference declarations [66] CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';' [ WFC: Legal Character ] Characters referred to using character references must match the production for Char. )r;���ZxmlParseCharRefr&���ro���r���r���r����parseCharRefn��s����zparserCtxt.parseCharRefc�����������������C���s���t��|�j��dS�)z�Skip an XML (SGML) comment <!-- .... --> The spec says that "For compatibility, the string "--" (double-hyphen) must not occur within comments. " [15] Comment ::= '<!--' ((Char - '-') | ('-' (Char - '-')))* '-->' N)r;���ZxmlParseCommentr&���r���r���r���r����parseCommentv��s����zparserCtxt.parseCommentc�����������������C���s���t��|�j��dS�)z�Parse a content sequence. Stops at EOF or '</'. [43] content ::= (element | CharData | Reference | CDSect | PI | Comment)* N)r;���ZxmlParseContentr&���r���r���r���r����parseContent}��s����zparserCtxt.parseContentc�����������������C���s���t��|�j��dS�)a)��parse a DOCTYPE declaration [28] doctypedecl ::= '<!DOCTYPE' S Name (S ExternalID)? S? ('[' (markupdecl | PEReference | S)* ']' S?)? '>' [ VC: Root Element Type ] The Name in the document type declaration must match the element type of the root element. N)r;���ZxmlParseDocTypeDeclr&���r���r���r���r����parseDocTypeDecl���s����zparserCtxt.parseDocTypeDeclc�����������������C���s���t��|�j��dS�)z�parse an XML element [39] element ::= EmptyElemTag | STag content ETag [ WFC: Element Type Match ] The Name in an element's end-tag must match the element type in the start-tag. N)r;���ZxmlParseElementr&���r���r���r���r����parseElement���s����zparserCtxt.parseElementc�����������������C���s���t��|�j�}|S�)z�parse an Element declaration. [45] elementdecl ::= '<!ELEMENT' S Name S contentspec S? '>' [ VC: Unique Element Type Declaration ] No element type may be declared more than once )r;���ZxmlParseElementDeclr&���ro���r���r���r����parseElementDecl���s����zparserCtxt.parseElementDeclc�����������������C���s���t��|�j�}|S�)zYparse the XML encoding name [81] EncName ::= [A-Za-z] ([A-Za-z0-9._] | '-')* )r;���ZxmlParseEncNamer&���ro���r���r���r����parseEncName���s����zparserCtxt.parseEncNamec�����������������C���s���t��|�j�}|S�)z�parse the XML encoding declaration [80] EncodingDecl ::= S 'encoding' Eq ('"' EncName '"' | "'" EncName "'") this setups the conversion filters. )r;���ZxmlParseEncodingDeclr&���ro���r���r���r����parseEncodingDecl���s����zparserCtxt.parseEncodingDeclc�����������������C���s���t��|�j��dS�)zrparse an end of tag [42] ETag ::= '</' Name S? '>' With namespace [NS 9] ETag ::= '</' QName S? '>' N)r;���ZxmlParseEndTagr&���r���r���r���r����parseEndTag���s����zparserCtxt.parseEndTagc�����������������C���s���t��|�j��dS�)a���parse <!ENTITY declarations [70] EntityDecl ::= GEDecl | PEDecl [71] GEDecl ::= '<!ENTITY' S Name S EntityDef S? '>' [72] PEDecl ::= '<!ENTITY' S '%' S Name S PEDef S? '>' [73] EntityDef ::= EntityValue | (ExternalID NDataDecl?) [74] PEDef ::= EntityValue | ExternalID [76] NDataDecl ::= S 'NDATA' S Name [ VC: Notation Declared ] The Name must match the declared name of a notation. N)r;���ZxmlParseEntityDeclr&���r���r���r���r����parseEntityDecl���s����zparserCtxt.parseEntityDeclc�����������������C���s*���t��|�j�}|du�rtd��t|d�}|S�)a���parse ENTITY references declarations [68] EntityRef ::= '&' Name ';' [ WFC: Entity Declared ] In a document without any DTD, a document with only an internal DTD subset which contains no parameter entity references, or a document with "standalone='yes'", the Name given in the entity reference must match that in an entity declaration, except that well-formed documents need not declare any of the following entities: amp, lt, gt, apos, quot. The declaration of a parameter entity must precede any reference to it. Similarly, the declaration of a general entity must precede any reference to it which appears in a default value in an attribute-list declaration. Note that if entities are declared in the external subset or in external parameter entities, a non-validating processor is not obligated to read and process their declarations; for such documents, the rule that an entity must be declared is a well-formedness constraint only if standalone='yes'. [ WFC: Parsed Entity ] An entity reference must not contain the name of an unparsed entity NzxmlParseEntityRef() failedr|���)r;���ZxmlParseEntityRefr&���r!���r����rZ��r���r���r����parseEntityRef���s���� zparserCtxt.parseEntityRefc�����������������C���s���t��|�j||��dS�)z�parse Markup declarations from an external subset [30] extSubset ::= textDecl? extSubsetDecl [31] extSubsetDecl ::= (markupdecl | conditionalSect | PEReference | S) * N)r;���ZxmlParseExternalSubsetr&���)r���r��r���r���r���r����parseExternalSubset���s����zparserCtxt.parseExternalSubsetc�����������������C���s���t��|�j��dS�)as��parse Markup declarations [29] markupdecl ::= elementdecl | AttlistDecl | EntityDecl | NotationDecl | PI | Comment [ VC: Proper Declaration/PE Nesting ] Parameter-entity replacement text must be properly nested with markup declarations. That is to say, if either the first character or the last character of a markup declaration (markupdecl above) is contained in the replacement text for a parameter-entity reference, both must be contained in the same replacement text. [ WFC: PEs in Internal Subset ] In the internal DTD subset, parameter-entity references can occur only where markup declarations can occur, not within markup declarations. (This does not apply to references that occur in external parameter entities or to the external subset.) N)r;���ZxmlParseMarkupDeclr&���r���r���r���r����parseMarkupDecl���s����zparserCtxt.parseMarkupDeclc�����������������C���s���t��|�j��dS�)zOparse an XML Misc* optional field. [27] Misc ::= Comment | PI | S N)r;���ZxmlParseMiscr&���r���r���r���r���� parseMisc���s����zparserCtxt.parseMiscc�����������������C���s���t��|�j�}|S�)z�parse an XML name. [4] NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar | Extender [5] Name ::= (Letter | '_' | ':') (NameChar)* [6] Names ::= Name (#x20 Name)* )r;���ZxmlParseNamer&���ro���r���r���r���� parseName���s����zparserCtxt.parseNamec�����������������C���s���t��|�j��dS�)av��xmlParseNamespace: parse specific PI '<?namespace ...' constructs. This is what the older xml-name Working Draft specified, a bunch of other stuff may still rely on it, so support is still here as if it was declared on the root of the Tree:-( TODO: remove from library To be removed at next drop of binary compatibility N)r;���ZxmlParseNamespacer&���r���r���r���r����parseNamespace���s����zparserCtxt.parseNamespacec�����������������C���s���t��|�j�}|S�)zhparse an XML Nmtoken. [7] Nmtoken ::= (NameChar)+ [8] Nmtokens ::= Nmtoken (#x20 Nmtoken)* )r;���ZxmlParseNmtokenr&���ro���r���r���r����parseNmtoken���s����zparserCtxt.parseNmtokenc�����������������C���s���t��|�j��dS�)a;��parse a notation declaration [82] NotationDecl ::= '<!NOTATION' S Name S (ExternalID | PublicID) S? '>' Hence there is actually 3 choices: 'PUBLIC' S PubidLiteral 'PUBLIC' S PubidLiteral S SystemLiteral and 'SYSTEM' S SystemLiteral See the NOTE on xmlParseExternalID(). N)r;���ZxmlParseNotationDeclr&���r���r���r���r����parseNotationDecl��s����zparserCtxt.parseNotationDeclc�����������������C���s���t��|�j��dS�)a���parse PEReference declarations The entity content is handled directly by pushing it's content as a new input stream. [69] PEReference ::= '%' Name ';' [ WFC: No Recursion ] A parsed entity must not contain a recursive reference to itself, either directly or indirectly. [ WFC: Entity Declared ] In a document without any DTD, a document with only an internal DTD subset which contains no parameter entity references, or a document with "standalone='yes'", ... ... The declaration of a parameter entity must precede any reference to it... [ VC: Entity Declared ] In a document with an external subset or external parameter entities with "standalone='no'", ... ... The declaration of a parameter entity must precede any reference to it... [ WFC: In DTD ] Parameter-entity references may only appear in the DTD. NOTE: misleading but this is handled. N)r;���ZxmlParsePEReferencer&���r���r���r���r����parsePEReference ��s����zparserCtxt.parsePEReferencec�����������������C���s���t��|�j��dS�)z�parse an XML Processing Instruction. [16] PI ::= '<?' PITarget (S (Char* - (Char* '?>' Char*)))? '?>' The processing is transferred to SAX once parsed. N)r;���Z xmlParsePIr&���r���r���r���r����parsePI��s����zparserCtxt.parsePIc�����������������C���s���t��|�j�}|S�)zbparse the name of a PI [17] PITarget ::= Name - (('X' | 'x') ('M' | 'm') ('L' | 'l')) )r;���ZxmlParsePITargetr&���ro���r���r���r���� parsePITarget#��s����zparserCtxt.parsePITargetc�����������������C���s���t��|�j�}|S�)znparse an XML public literal [12] PubidLiteral ::= '"' PubidChar* '"' | "'" (PubidChar - "'")* "'" )r;���ZxmlParsePubidLiteralr&���ro���r���r���r����parsePubidLiteral)��s����zparserCtxt.parsePubidLiteralc�����������������C���s���t��|�j�}|S�)z�Parse and return a string between quotes or doublequotes TODO: Deprecated, to be removed at next drop of binary compatibility )r;���ZxmlParseQuotedStringr&���ro���r���r���r����parseQuotedString/��s����zparserCtxt.parseQuotedStringc�����������������C���s���t��|�j��dS�)aL��parse and handle entity references in content, depending on the SAX interface, this may end-up in a call to character() if this is a CharRef, a predefined entity, if there is no reference() callback. or if the parser was asked to switch to that mode. [67] Reference ::= EntityRef | CharRef N)r;���ZxmlParseReferencer&���r���r���r���r����parseReference6��s����zparserCtxt.parseReferencec�����������������C���s���t��|�j�}|S�)a���parse the XML standalone declaration [32] SDDecl ::= S 'standalone' Eq (("'" ('yes' | 'no') "'") | ('"' ('yes' | 'no')'"')) [ VC: Standalone Document Declaration ] TODO The standalone document declaration must have the value "no" if any external markup declarations contain declarations of: - attributes with default values, if elements to which these attributes apply appear in the document without specifications of values for these attributes, or - entities (other than amp, lt, gt, apos, quot), if references to those entities appear in the document, or - attributes with values subject to normalization, where the attribute appears in the document with a value which will change as a result of normalization, or - element types with element content, if white space occurs directly within any instance of those types. )r;���ZxmlParseSDDeclr&���ro���r���r���r����parseSDDecl>��s����zparserCtxt.parseSDDeclc�����������������C���s���t��|�j�}|S�)a���parse a start of tag either for rule element or EmptyElement. In both case we don't parse the tag closing chars. [40] STag ::= '<' Name (S Attribute)* S? '>' [ WFC: Unique Att Spec ] No attribute name may appear more than once in the same start-tag or empty-element tag. [44] EmptyElemTag ::= '<' Name (S Attribute)* S? '/>' [ WFC: Unique Att Spec ] No attribute name may appear more than once in the same start-tag or empty-element tag. With namespace: [NS 8] STag ::= '<' QName (S Attribute)* S? '>' [NS 10] EmptyElement ::= '<' QName (S Attribute)* S? '/>' )r;���ZxmlParseStartTagr&���ro���r���r���r���� parseStartTagR��s����zparserCtxt.parseStartTagc�����������������C���s���t��|�j�}|S�)zZparse an XML Literal [11] SystemLiteral ::= ('"' [^"]* '"') | ("'" [^']* "'") )r;���ZxmlParseSystemLiteralr&���ro���r���r���r����parseSystemLiteral`��s����zparserCtxt.parseSystemLiteralc�����������������C���s���t��|�j��dS�)z~parse an XML declaration header for external entities [77] TextDecl ::= '<?xml' VersionInfo? EncodingDecl S? '?>' N)r;���ZxmlParseTextDeclr&���r���r���r���r���� parseTextDeclf��s����zparserCtxt.parseTextDeclc�����������������C���s���t��|�j�}|S�)z�parse the XML version. [24] VersionInfo ::= S 'version' Eq (' VersionNum ' | " VersionNum ") [25] Eq ::= S? '=' S? )r;���ZxmlParseVersionInfor&���ro���r���r���r����parseVersionInfok��s����zparserCtxt.parseVersionInfoc�����������������C���s���t��|�j�}|S�)zwparse the XML version value. [26] VersionNum ::= '1.' [0-9]+ In practice allow [0-9].[0-9]+ at that level )r;���ZxmlParseVersionNumr&���ro���r���r���r����parseVersionNumq��s����zparserCtxt.parseVersionNumc�����������������C���s���t��|�j��dS�)zoparse an XML declaration header [23] XMLDecl ::= '<?xml' VersionInfo EncodingDecl? SDDecl? S? '?>' N)r;���ZxmlParseXMLDeclr&���r���r���r���r����parseXMLDeclw��s����zparserCtxt.parseXMLDeclc�����������������C���s���t��|�j��dS�)aw��[69] PEReference ::= '%' Name ';' [ WFC: No Recursion ] A parsed entity must not contain a recursive reference to itself, either directly or indirectly. [ WFC: Entity Declared ] In a document without any DTD, a document with only an internal DTD subset which contains no parameter entity references, or a document with "standalone='yes'", ... ... The declaration of a parameter entity must precede any reference to it... [ VC: Entity Declared ] In a document with an external subset or external parameter entities with "standalone='no'", ... ... The declaration of a parameter entity must precede any reference to it... [ WFC: In DTD ] Parameter-entity references may only appear in the DTD. NOTE: misleading but this is handled. A PEReference may have been detected in the current input stream the handling is done accordingly to http://www.w3.org/TR/REC-xml#entproc i.e. - Included in literal in entity values - Included as Parameter Entity reference within DTDs N)r;���ZxmlParserHandlePEReferencer&���r���r���r���r����parserHandlePEReference|��s����z"parserCtxt.parserHandlePEReferencec�����������������C���s���t��|�j��dS�)a��TODO: Remove, now deprecated ... the test is done directly in the content parsing routines. [67] Reference ::= EntityRef | CharRef [68] EntityRef ::= '&' Name ';' [ WFC: Entity Declared ] the Name given in the entity reference must match that in an entity declaration, except that well-formed documents need not declare any of the following entities: amp, lt, gt, apos, quot. [ WFC: Parsed Entity ] An entity reference must not contain the name of an unparsed entity [66] CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';' A PEReference may have been detected in the current input stream the handling is done accordingly to http://www.w3.org/TR/REC-xml#entproc N)r;���ZxmlParserHandleReferencer&���r���r���r���r����parserHandleReference���s���� z parserCtxt.parserHandleReferencec�����������������C���s���t��|�j�}|S�)zqxmlPopInput: the current input pointed by ctxt->input came to an end pop it and return the next char. )r;���ZxmlPopInputr&���ro���r���r���r����popInput���s����zparserCtxt.popInputc�����������������C���s���t��|�j�}|S�)a���Trickery: parse an XML name but without consuming the input flow Needed for rollback cases. Used only when parsing entities references. TODO: seems deprecated now, only used in the default part of xmlParserHandleReference [4] NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar | Extender [5] Name ::= (Letter | '_' | ':') (NameChar)* [6] Names ::= Name (S Name)* )r;���ZxmlScanNamer&���ro���r���r���r����scanName���s����zparserCtxt.scanNamec�����������������C���s���t��|�j�}|S�)z�skip all blanks character found at that point in the input streams. It pops up finished entities in the process if allowable at that point. )r;���ZxmlSkipBlankCharsr&���ro���r���r���r����skipBlankChars���s����zparserCtxt.skipBlankCharsc�����������������C���s���t��|�j|||||�}|S��z�Takes a entity string content and process to do the adequate substitutions. [67] Reference ::= EntityRef | CharRef [69] PEReference ::= '%' Name ';' )r;���ZxmlStringDecodeEntitiesr&���)r���r7���r���r���r���r���r3���r���r���r����stringDecodeEntities���s����zparserCtxt.stringDecodeEntitiesc�������������� ���C���s���t��|�j||||||�}|S�r���)r;���ZxmlStringLenDecodeEntitiesr&���)r���r7���r2���r���r���r���r���r3���r���r���r����stringLenDecodeEntities���s����z"parserCtxt.stringLenDecodeEntities)N)Vr���r���r���r���r>���r����r\��r]��r^��r_��r`��ra��rb��rd��rf��ri��rk��rn��rp��rr��rs��ru��rw��rx��ry��rz��r{��r|��r}��r~��r��r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r����2��s���� r����c�������������������@���sf���e�Zd�Zddd�Zdd��Zdd��Zdd ��Zd d��Zdd ��Zdd��Z dd��Z dd��Zdd��Zdd��Z dS�)r~���Nc�����������������C���s,���t�|�dkrtd��||�_tj|�|d��d�S�)Nr���z'xmlAttr got a wrong wrapper object typer|���r���r'���r���r���r���r������s����zxmlAttr.__init__c�����������������C���s���d|�j�tt|���f�S�)Nz<xmlAttr (%s) object at 0x%x>r���r���r���r���r���r������s����zxmlAttr.__repr__c�����������������C���s���t��||�j|��dS�)z*Dumps debug information for the attribute N)r;���ZxmlDebugDumpAttrr&���r���r���r���r���� debugDumpAttr���s����zxmlAttr.debugDumpAttrc�����������������C���s���t��||�j|��dS�)z/Dumps debug information for the attribute list N)r;���ZxmlDebugDumpAttrListr&���r���r���r���r����debugDumpAttrList���s����zxmlAttr.debugDumpAttrListc�����������������C���s@���|du�rd}n|j�}t�||�j��}|du�r2td��t|d�}|S�r���r����r���rS���Z target__or3���Z _xmlAttr__tmpr���r���r���r������s���� zxmlAttr.copyPropc�����������������C���s@���|du�rd}n|j�}t�||�j��}|du�r2td��t|d�}|S�r���r���r���r���r���r���r������s���� zxmlAttr.copyPropListc�����������������C���s���t��|�j��dS�)z1Free one attribute, all the content is freed too N)r;���ZxmlFreePropr&���r���r���r���r����freeProp���s����zxmlAttr.freePropc�����������������C���s���t��|�j��dS�)zQFree a property and all its siblings, all the children are freed too. N)r;���ZxmlFreePropListr&���r���r���r���r����freePropList���s����zxmlAttr.freePropListc�����������������C���s���t��|�j�}|S�)z�Unlink and free one attribute, all the content is freed too Note this doesn't work for namespace definition attributes )r;���Z xmlRemovePropr&���ro���r���r���r���� removeProp���s����zxmlAttr.removePropc�����������������C���s&���|du�rd}n|j�}t�||�j��}|S�r��r��r���r���r���r���r����s����zxmlAttr.removeIDc�����������������C���s&���|du�rd}n|j�}t�||�j��}|S�r��r��r���r���r���r���r ����s����zxmlAttr.removeRef)N)r���r���r���r���r���r���r���r���r���r���r���r���r��r ��r���r���r���r���r~������s��� r~���c�������������������@���s���e�Zd�Zddd�Zdd��ZdS�)r����Nc�����������������C���s,���t�|�dkrtd��||�_tj|�|d��d�S�)Nr���z,xmlAttribute got a wrong wrapper object typer|���r���r'���r���r���r���r�����s����zxmlAttribute.__init__c�����������������C���s���d|�j�tt|���f�S�)Nz"<xmlAttribute (%s) object at 0x%x>r���r���r���r���r���r�����s����zxmlAttribute.__repr__)N�r���r���r���r���r���r���r���r���r���r������s��� r����c�������������������@���sf���e�Zd�Zddd�Zdd��Zdd��Zdd ��Zd d��Zdd ��Zdd��Z dd��Z dd��Zdd��Zdd��Z dS�)r?��Nc�����������������C���s���|d�kr||�_�d�S�d�|�_�d�S�r���ri���r'���r���r���r���r�����s����zcatalog.__init__c�����������������C���s ���|�j�d�krt�|�j���d�|�_�d�S�r���)r&���r;���ZxmlFreeCatalogr���r���r���r���r>���"��s���� zcatalog.__del__c�����������������C���s���t��|�j|||�}|S�)zYAdd an entry in the catalog, it may overwrite existing but different entries. )r;���ZxmlACatalogAddr&���)r���r���r"��r#��r3���r���r���r����add+��s����zcatalog.addc�����������������C���s���t��|�j�}|S�)zCheck is a catalog is empty )r;���ZxmlCatalogIsEmptyr&���ro���r���r���r����catalogIsEmpty1��s����zcatalog.catalogIsEmptyc�����������������C���s���t��|�j�}|S�r&��)r;���ZxmlConvertSGMLCatalogr&���ro���r���r���r����convertSGMLCatalog6��s����zcatalog.convertSGMLCatalogc�����������������C���s���t��|�j|��dS�)z*Dump the given catalog to the given file. N)r;���ZxmlACatalogDumpr&���)r���r(��r���r���r���r���;��s����zcatalog.dumpc�����������������C���s���t��|�j|�}|S�r0��)r;���ZxmlACatalogRemover&���)r���r2��r3���r���r���r����remove?��s����zcatalog.removec�����������������C���s���t��|�j||�}|S�r4��)r;���ZxmlACatalogResolver&���)r���r+��r.��r3���r���r���r����resolveD��s����zcatalog.resolvec�����������������C���s���t��|�j|�}|S�)z_Try to lookup the catalog local reference associated to a public ID in that catalog )r;���ZxmlACatalogResolvePublicr&���)r���r+��r3���r���r���r���� resolvePublicI��s����zcatalog.resolvePublicc�����������������C���s���t��|�j|�}|S�r7��)r;���ZxmlACatalogResolveSystemr&���)r���r.��r3���r���r���r���� resolveSystemO��s����zcatalog.resolveSystemc�����������������C���s���t��|�j|�}|S�r9��)r;���ZxmlACatalogResolveURIr&���)r���r����r3���r���r���r���� resolveURIT��s����zcatalog.resolveURI)N)r���r���r���r���r>���r���r���r���r���r���r���r���r���r���r���r���r���r���r?����s��� r?��c�������������������@���sV���e�Zd�Zddd�Zdd��Zdd��Zdd ��Zd d��Zdd ��Zdd��Z dd��Z dd��ZdS�)r����Nc�����������������C���s,���t�|�dkrtd��||�_tj|�|d��d�S�)Nr���z&xmlDtd got a wrong wrapper object typer|���r���r'���r���r���r���r���Z��s����zxmlDtd.__init__c�����������������C���s���d|�j�tt|���f�S�)Nz<xmlDtd (%s) object at 0x%x>r���r���r���r���r���r���_��s����zxmlDtd.__repr__c�����������������C���s���t��||�j��dS�)z$Dumps debug information for the DTD N)r;���ZxmlDebugDumpDTDr&���r���r���r���r����debugDumpDTDf��s����zxmlDtd.debugDumpDTDc�����������������C���s*���t��|�j�}|du�rtd��t|d�}|S�)zDo a copy of the dtd. NzxmlCopyDtd() failedr|���)r;���Z xmlCopyDtdr&���r���r����)r���r3����_xmlDtd__tmpr���r���r����copyDtdn��s���� zxmlDtd.copyDtdc�����������������C���s���t��|�j��dS�)zFree a DTD structure. N)r;���Z xmlFreeDtdr&���r���r���r���r����freeDtdu��s����zxmlDtd.freeDtdc�����������������C���s.���t��|�j||�}|du�r td��t|d�}|S�)zQSearch the DTD for the description of this attribute on this element. NzxmlGetDtdAttrDesc() failedr|���)r;���ZxmlGetDtdAttrDescr&���r���r����)r���r_���rP���r3���r���r���r���r����dtdAttrDesc}��s���� zxmlDtd.dtdAttrDescc�����������������C���s,���t��|�j|�}|du�rtd��t|d�}|S�)�3Search the DTD for the description of this element NzxmlGetDtdElementDesc() failedr|���)r;���ZxmlGetDtdElementDescr&���r���r����)r���rP���r3���r���r���r���r����dtdElementDesc���s���� zxmlDtd.dtdElementDescc�����������������C���s0���t��|�j|||�}|du�r"td��t|d�}|S�)z[Search the DTD for the description of this qualified attribute on this element. NzxmlGetDtdQAttrDesc() failedr|���)r;���ZxmlGetDtdQAttrDescr&���r���r����)r���r_���rP���r���r3���r���r���r���r����dtdQAttrDesc���s���� zxmlDtd.dtdQAttrDescc�����������������C���s.���t��|�j||�}|du�r td��t|d�}|S�)r���NzxmlGetDtdQElementDesc() failedr|���)r;���ZxmlGetDtdQElementDescr&���r���r����)r���rP���r���r3���r���r���r���r����dtdQElementDesc���s���� zxmlDtd.dtdQElementDesc)N)r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r����Y��s��� r����c�������������������@���s���e�Zd�Zddd�Zdd��ZdS�)r����Nc�����������������C���s,���t�|�dkrtd��||�_tj|�|d��d�S�)Nr���z*xmlElement got a wrong wrapper object typer|���r���r'���r���r���r���r������s����zxmlElement.__init__c�����������������C���s���d|�j�tt|���f�S�)Nz <xmlElement (%s) object at 0x%x>r���r���r���r���r���r������s����zxmlElement.__repr__)Nr���r���r���r���r���r�������s��� r����c�������������������@���s&���e�Zd�Zddd�Zdd��Zdd��ZdS�) r����Nc�����������������C���s,���t�|�dkrtd��||�_tj|�|d��d�S�)Nr���z)xmlEntity got a wrong wrapper object typer|���r���r'���r���r���r���r������s����zxmlEntity.__init__c�����������������C���s���d|�j�tt|���f�S�)Nz<xmlEntity (%s) object at 0x%x>r���r���r���r���r���r������s����zxmlEntity.__repr__c�����������������C���s&���|du�rd}n|j�}t�||�j���dS�r���r���)r���r����r���r���r���r���r������s����zxmlEntity.handleEntity)N)r���r���r���r���r���r���r���r���r���r���r�������s��� r����c�������������������@���sV���e�Zd�Zddd�Zdd��Zdd��Zdd ��Zd d��Zdd ��Zdd��Z dd��Z dd��ZdS�)r���Nc�����������������C���s���|d�kr||�_�d�S�d�|�_�d�S�r���ri���r'���r���r���r���r������s����zError.__init__c�����������������C���s���t��|�j�}|S�)z'The error code, e.g. an xmlParserError )r;���ZxmlErrorGetCoder&���ro���r���r���r���r�����s����z Error.codec�����������������C���s���t��|�j�}|S�)z+What part of the library raised this error )r;���ZxmlErrorGetDomainr&���ro���r���r���r����domain���s����zError.domainc�����������������C���s���t��|�j�}|S�)z the filename )r;���ZxmlErrorGetFiler&���ro���r���r���r���rA������s����z Error.filec�����������������C���s���t��|�j�}|S�)zhow consequent is the error )r;���ZxmlErrorGetLevelr&���ro���r���r���r���r<�����s����zError.levelc�����������������C���s���t��|�j�}|S�)zthe line number if available )r;���ZxmlErrorGetLiner&���ro���r���r���r����line���s����z Error.linec�����������������C���s���t��|�j�}|S�)z)human-readable informative error message )r;���ZxmlErrorGetMessager&���ro���r���r���r����message���s����z Error.messagec�����������������C���s&���|du�rd}n|j�}t�|�j�|�}|S�)z*Save the original error to the new place. N)r&���r;���ZxmlCopyError)r����toZto__or3���r���r���r���� copyError���s����zError.copyErrorc�����������������C���s���t��|�j��dS�)zCleanup the error. N)r;���Z xmlResetErrorr&���r���r���r���r���� resetError���s����zError.resetError)N)r���r���r���r���r��r���rA���r<��r���r���r���r���r���r���r���r���r������s��� r���c�������������������@���s����e�Zd�Zd&dd�Zdd��Zdd��Zdd ��Zd d��Zdd ��Zdd��Z dd��Z dd��Zdd��Zdd��Z dd��Zdd��Zdd��Zdd��Zd d!��Zd"d#��Zd$d%��ZdS�)'r����Nc�����������������C���s,���t�|�dkrtd��||�_tj|�|d��d�S�)Nr���z%xmlNs got a wrong wrapper object typer|���r���r'���r���r���r���r������s����zxmlNs.__init__c�����������������C���s���d|�j�tt|���f�S�)Nz<xmlNs (%s) object at 0x%x>r���r���r���r���r���r������s����zxmlNs.__repr__c�����������������C���s*���t��|�j�}|du�rtd��t|d�}|S�)zDo a copy of the namespace. NzxmlCopyNamespace() failedr|���)r;���ZxmlCopyNamespacer&���r���r�����r���r3����_xmlNs__tmpr���r���r���� copyNamespace���s���� zxmlNs.copyNamespacec�����������������C���s*���t��|�j�}|du�rtd��t|d�}|S�)z Do a copy of an namespace list. NzxmlCopyNamespaceList() failedr|���)r;���ZxmlCopyNamespaceListr&���r���r����r���r���r���r����copyNamespaceList���s���� zxmlNs.copyNamespaceListc�����������������C���s���t��|�j��dS�)z1Free up the structures associated to a namespace N)r;���Z xmlFreeNsr&���r���r���r���r����freeNs��s����zxmlNs.freeNsc�����������������C���s���t��|�j��dS�)zLFree up all the structures associated to the chained namespaces. N)r;���Z xmlFreeNsListr&���r���r���r���r���� freeNsList��s����zxmlNs.freeNsListc�����������������C���sD���|du�rd}n|j�}t�||�j�||�}|du�r6td��t|d�}|S�r ��r���r���rr���rP���rV���Z parent__or3���r���r���r���r���r����s���� zxmlNs.newChildc�����������������C���sD���|du�rd}n|j�}t�||�j�||�}|du�r6td��t|d�}|S�r���r����r���r����rP���rV���r���r3���r���r���r���r���r���"��s���� zxmlNs.newDocNodec�����������������C���sD���|du�rd}n|j�}t�||�j�||�}|du�r6td��t|d�}|S�r���r���r���r���r���r���r���0��s���� zxmlNs.newDocNodeEatNamec�����������������C���sD���|du�rd}n|j�}t�||�j�||�}|du�r6td��t|d�}|S�r���r���r���r���r���r���r���>��s���� zxmlNs.newDocRawNodec�����������������C���s,���t��|�j|�}|du�rtd��t|d�}|S�)z8Creation of a new node element. @ns is optional (None). NzxmlNewNodeEatName() failedr|���)r;���ZxmlNewNodeEatNamer&���r���r����)r���rP���r3���r���r���r���r����newNodeEatNameH��s���� zxmlNs.newNodeEatNamec�����������������C���sD���|du�rd}n|j�}t�||�j�||�}|du�r6td��t|d�}|S�r��r���r���r����rP���r2��r���r3���r���r���r���r���r��O��s���� zxmlNs.newNsPropc�����������������C���sD���|du�rd}n|j�}t�||�j�||�}|du�r6td��t|d�}|S�r��r��r���r���r���r���r��Y��s���� zxmlNs.newNsPropEatNamec�����������������C���sD���|du�rd}n|j�}t�||�j�||�}|du�r6td��t|d�}|S�r��r��r���r���r���r���r��c��s���� zxmlNs.newTextChildc�����������������C���s&���|du�rd}n|j�}t�||�j���dS�r;��r<���r���r����r���r���r���r���r=��v��s����zxmlNs.setNsc�����������������C���sD���|du�rd}n|j�}t�||�j�||�}|du�r6td��t|d�}|S�r>��r?��r���r���r���r���r@��|��s���� zxmlNs.setNsPropc�����������������C���s(���|du�rd}n|j�}t�||�j�|�}|S�rJ��rK��)r���r����rP���r���r3���r���r���r���rL�����s����zxmlNs.unsetNsPropc�����������������C���s���t��|�j��dS�)z�Namespace nodes in libxml don't match the XPath semantic. In a node set the namespace nodes are duplicated and the next pointer is set to the parent node in the XPath semantic. Check if such a node needs to be freed N)r;���ZxmlXPathNodeSetFreeNsr&���r���r���r���r����xpathNodeSetFreeNs���s����zxmlNs.xpathNodeSetFreeNs)N)r���r���r���r���r���r���r���r���r���r��r���r���r���r���r��r��r��r=��r@��rL��r���r���r���r���r���r�������s$��� r����c�������������������@���sf���e�Zd�Zddd�Zdd��Zdd��Zdd ��Zd d��Zdd ��Zdd��Z dd��Z dd��Zdd��Zdd��Z dS�)r���Nc�����������������C���s���||�_�tj|�|d��d�S�r{���)r&���r@���r���r'���r���r���r���r������s����zoutputBuffer.__init__c�����������������C���s*���|du�rd}n|j�}t�|�j�|||��dS�r���r���)r���r��r����r����r���r���r���r���r������s����z+outputBuffer.htmlDocContentDumpFormatOutputc�����������������C���s(���|du�rd}n|j�}t�|�j�||��dS�r���r���)r���r��r����r���r���r���r���r������s����z%outputBuffer.htmlDocContentDumpOutputc�����������������C���s@���|du�rd}n|j�}|du�r"d}n|j�}t�|�j�||||��dS�r���r���)r���r����r��r����r����r���r���r���r���r���r������s ����z%outputBuffer.htmlNodeDumpFormatOutputc�����������������C���s>���|du�rd}n|j�}|du�r"d}n|j�}t�|�j�|||��dS�r���r���)r���r����r��r����r���r���r���r���r���r������s ����zoutputBuffer.htmlNodeDumpOutputc�����������������C���sB���|du�rd}n|j�}|du�r"d}n|j�}t�|�j�|||||��dS�r���r���)r���r����r��r<��r����r����r���r���r���r���r���r�����s ����zoutputBuffer.nodeDumpOutputc�����������������C���s(���|du�rd}n|j�}t�|�j�||�}|S�r��r��)r���r��r����r���r3���r���r���r���r �����s����zoutputBuffer.saveFileToc�����������������C���s*���|du�rd}n|j�}t�|�j�|||�}|S�r��r��)r���r��r����r����r���r3���r���r���r���r�����s����zoutputBuffer.saveFormatFileToc�����������������C���s���t��|�j�}|S�)zKGives a pointer to the data currently held in the output buffer )r;���ZxmlOutputBufferGetContentr&���ro���r���r���r���r�������s����zoutputBuffer.getContentc�����������������C���s���t��|�j||�}|S�)z�Write the content of the array in the output I/O buffer This routine handle the I18N transcoding from internal UTF-8 The buffer is lossless, i.e. will store in case of partial or delayed writes. )r;���ZxmlOutputBufferWriter&����r���r2���r���r3���r���r���r���r6������s����zoutputBuffer.writec�����������������C���s���t��|�j|�}|S�)z�Write the content of the string in the output I/O buffer This routine handle the I18N transcoding from internal UTF-8 The buffer is lossless, i.e. will store in case of partial or delayed writes. )r;���ZxmlOutputBufferWriteStringr&����r���r7���r3���r���r���r����writeString���s����zoutputBuffer.writeString)N)r���r���r���r���r���r���r���r���r��r ��r��r����r6���r���r���r���r���r���r������s��� r���c�������������������@���sF���e�Zd�Zddd�Zdd��Zdd��Zdd ��Zd d��Zdd ��Zdd��Z dS�)r���Nc�����������������C���s���||�_�tj|�|d��d�S�r{���)r&���r9���r���r'���r���r���r���r������s����zinputBuffer.__init__c�����������������C���s ���|�j�d�krt�|�j���d�|�_�d�S�r���)r&���r;���r?���r���r���r���r���r>������s���� zinputBuffer.__del__c�����������������C���s���t��|�j|�}|S�)aY��Grow up the content of the input buffer, the old data are preserved This routine handle the I18N transcoding to internal UTF-8 This routine is used when operating the parser in normal (pull) mode TODO: one should be able to remove one extra copy by copying directly onto in->buffer or in->raw )r;���ZxmlParserInputBufferGrowr&����r���r2���r3���r���r���r����grow��s����zinputBuffer.growc�����������������C���s���t��|�j||�}|S�)z�Push the content of the arry in the input buffer This routine handle the I18N transcoding to internal UTF-8 This is used when operating the parser in progressive (push) mode. )r;���ZxmlParserInputBufferPushr&���r���r���r���r����push��s����zinputBuffer.pushc�����������������C���s���t��|�j|�}|S�)z�Refresh the content of the input buffer, the old data are considered consumed This routine handle the I18N transcoding to internal UTF-8 )r;���ZxmlParserInputBufferReadr&���r���r���r���r���r.�����s����zinputBuffer.readc�����������������C���s,���|du�rd}n|j�}t�||�j�|||�}|S��z%Setup an XML reader with new options N�r&���r;���ZxmlTextReaderSetup)r���rQ��r ��r����r��rR��r3���r���r���r����Setup%��s����zinputBuffer.Setupc�����������������C���s2���t��|�j|�}|du�rtd��t|d�}|�|_|S�)z2Create an xmlTextReader structure fed with @input NzxmlNewTextReader() failedr|���)r;���ZxmlNewTextReaderr&���r���r���r����)r���r����r3���Z_inputBuffer__tmpr���r���r���� newTextReader,��s ���� zinputBuffer.newTextReader)N) r���r���r���r���r>���r���r���r.���r���r���r���r���r���r���r������s��� r���c�������������������@���s6���e�Zd�Zddd�Zdd��Zdd��Zdd ��Zd d��ZdS�) r���Nc�����������������C���s���|d�kr||�_�d�S�d�|�_�d�S�r���ri���r'���r���r���r���r���5��s����zxmlReg.__init__c�����������������C���s ���|�j�d�krt�|�j���d�|�_�d�S�r���)r&���r;���ZxmlRegFreeRegexpr���r���r���r���r>���9��s���� zxmlReg.__del__c�����������������C���s���t��|�j|�}|S�)z4Check if the regular expression generates the value )r;���Z xmlRegexpExecr&���)r���rV���r3���r���r���r���� regexpExecB��s����zxmlReg.regexpExecc�����������������C���s���t��|�j�}|S�)z/Check if the regular expression is determinist )r;���ZxmlRegexpIsDeterministr&���ro���r���r���r����regexpIsDeterministG��s����zxmlReg.regexpIsDeterministc�����������������C���s���t��||�j��dS�)z5Print the content of the compiled regular expression N)r;���ZxmlRegexpPrintr&���r���r���r���r����regexpPrintL��s����zxmlReg.regexpPrint)N)r���r���r���r���r>���r���r���r���r���r���r���r���r���4��s ��� r���c�������������������@���s.���e�Zd�Zd dd�Zdd��Zdd��Zdd ��ZdS�)r���Nc�����������������C���s���|d�kr||�_�d�S�d�|�_�d�S�r���ri���r'���r���r���r���r���Q��s����zrelaxNgParserCtxt.__init__c�����������������C���s ���|�j�d�krt�|�j���d�|�_�d�S�r���)r&���r;���ZxmlRelaxNGFreeParserCtxtr���r���r���r���r>���U��s���� zrelaxNgParserCtxt.__del__c�����������������C���s*���t��|�j�}|du�rtd��t|d�}|S�)��parse a schema definition resource and build an internal XML Schema structure which can be used to validate instances. NzxmlRelaxNGParse() failedr|���)r;���ZxmlRelaxNGParser&���r!���� relaxNgSchema)r���r3���Z_relaxNgParserCtxt__tmpr���r���r����relaxNGParse^��s���� zrelaxNgParserCtxt.relaxNGParsec�����������������C���s���t��|�j|�}|S�)z�Semi private function used to pass information to a parser context which are a combination of xmlRelaxNGParserFlag . )r;���ZxmlRelaxParserSetFlagr&���r[��r���r���r����relaxParserSetFlagg��s����z$relaxNgParserCtxt.relaxParserSetFlag)N)r���r���r���r���r>���r���r���r���r���r���r���r���P��s��� r���c�������������������@���s>���e�Zd�Zddd�Zdd��Zdd��Zdd ��Zd d��Zdd ��ZdS�)r���Nc�����������������C���s���|d�kr||�_�d�S�d�|�_�d�S�r���ri���r'���r���r���r���r���n��s����zrelaxNgSchema.__init__c�����������������C���s ���|�j�d�krt�|�j���d�|�_�d�S�r���)r&���r;���ZxmlRelaxNGFreer���r���r���r���r>���r��s���� zrelaxNgSchema.__del__c�����������������C���s���t��||�j��dS�)zDump a RelaxNG structure back N)r;���ZxmlRelaxNGDumpr&���r���r���r���r����relaxNGDump{��s����zrelaxNgSchema.relaxNGDumpc�����������������C���s���t��||�j��dS�)z#Dump the transformed RelaxNG tree. N)r;���ZxmlRelaxNGDumpTreer&���r���r���r���r����relaxNGDumpTree��s����zrelaxNgSchema.relaxNGDumpTreec�����������������C���s0���t��|�j�}|du�rtd��t|d�}|�|_|S�)zOCreate an XML RelaxNGs validation context based on the given schema NzxmlRelaxNGNewValidCtxt() failedr|���)r;���ZxmlRelaxNGNewValidCtxtr&���r����relaxNgValidCtxt�schema)r���r3���Z_relaxNgSchema__tmpr���r���r����relaxNGNewValidCtxt���s ���� z!relaxNgSchema.relaxNGNewValidCtxtc�����������������C���s&���|du�rd}n|j�}t�||�j��}|S��a6��Use RelaxNG to validate the document as it is processed. Activation is only possible before the first Read(). if @schema is None, then RelaxNG validation is deactivated. @ The @schema should not be freed until the reader is deallocated or its use has been deactivated. N�r&���r;���ZxmlTextReaderRelaxNGSetSchemarP��r���r���r����RelaxNGSetSchema���s����zrelaxNgSchema.RelaxNGSetSchema)N) r���r���r���r���r>���r���r���r���r���r���r���r���r���r���m��s��� r���c�������������������@���sN���e�Zd�Zddd�Zdd��Zdd��Zdd ��Zd d��Zdd ��Zdd��Z dd��Z dS�)r���Nc�����������������C���s���d�|�_�||�_tj|�|d��d�S�r{���)r���r&���r����r���r'���r���r���r���r������s����zrelaxNgValidCtxt.__init__c�����������������C���s ���|�j�d�krt�|�j���d�|�_�d�S�r���)r&���r;���ZxmlRelaxNGFreeValidCtxtr���r���r���r���r>������s���� zrelaxNgValidCtxt.__del__c�����������������C���s&���|du�rd}n|j�}t�|�j�|�}|S�r���r���r���r���r���r���r������s����z#relaxNgValidCtxt.relaxNGValidateDocc�����������������C���s<���|du�rd}n|j�}|du�r"d}n|j�}t�|�j�||�}|S�r���r����r���r����r_���r���r���r3���r���r���r���r������s����z+relaxNgValidCtxt.relaxNGValidateFullElementc�����������������C���s<���|du�rd}n|j�}|du�r"d}n|j�}t�|�j�||�}|S�r���r���r���r���r���r���r������s����z*relaxNgValidCtxt.relaxNGValidatePopElementc�����������������C���s���t��|�j||�}|S��z;check the CData parsed for validation in the current stack )r;���ZxmlRelaxNGValidatePushCDatar&����r���rL���r2���r3���r���r���r����relaxNGValidatePushCData���s����z)relaxNgValidCtxt.relaxNGValidatePushCDatac�����������������C���s<���|du�rd}n|j�}|du�r"d}n|j�}t�|�j�||�}|S�r���r���r���r���r���r���r������s����z+relaxNgValidCtxt.relaxNGValidatePushElementc�����������������C���s(���|du�rd}n|j�}t�||�j�|�}|S��z�Use RelaxNG schema context to validate the document as it is processed. Activation is only possible before the first Read(). If @ctxt is None, then RelaxNG schema validation is deactivated. N�r&���r;���Z xmlTextReaderRelaxNGValidateCtxt�r���rQ��r��rR��r3���r���r���r����RelaxNGValidateCtxt���s����z$relaxNgValidCtxt.RelaxNGValidateCtxt)N)r���r���r���r���r>���r���r���r���r��r���r��r���r���r���r���r������s��� r���c�������������������@���s&���e�Zd�Zddd�Zdd��Zdd��ZdS�) r��Nc�����������������C���s���|d�kr||�_�d�S�d�|�_�d�S�r���ri���r'���r���r���r���r������s����zSchemaParserCtxt.__init__c�����������������C���s ���|�j�d�krt�|�j���d�|�_�d�S�r���)r&���r;���ZxmlSchemaFreeParserCtxtr���r���r���r���r>������s���� zSchemaParserCtxt.__del__c�����������������C���s*���t��|�j�}|du�rtd��t|d�}|S�)r���NzxmlSchemaParse() failedr|���)r;���ZxmlSchemaParser&���r!����Schema)r���r3���Z_SchemaParserCtxt__tmpr���r���r����schemaParse���s���� zSchemaParserCtxt.schemaParse)N)r���r���r���r���r>���r ��r���r���r���r���r�����s��� r��c�������������������@���s6���e�Zd�Zddd�Zdd��Zdd��Zdd ��Zd d��ZdS�) r��Nc�����������������C���s���|d�kr||�_�d�S�d�|�_�d�S�r���ri���r'���r���r���r���r������s����zSchema.__init__c�����������������C���s ���|�j�d�krt�|�j���d�|�_�d�S�r���)r&���r;���Z xmlSchemaFreer���r���r���r���r>������s���� zSchema.__del__c�����������������C���s&���|du�rd}n|j�}t�||�j��}|S��a6��Use XSD Schema to validate the document as it is processed. Activation is only possible before the first Read(). if @schema is None, then Schema validation is deactivated. The @schema should not be freed until the reader is deallocated or its use has been deactivated. N�r&���r;���ZxmlTextReaderSetSchemarP��r���r���r���� SetSchema��s����zSchema.SetSchemac�����������������C���s���t��||�j��dS�)zDump a Schema structure. N)r;���Z xmlSchemaDumpr&���r���r���r���r���� schemaDump��s����zSchema.schemaDumpc�����������������C���s0���t��|�j�}|du�rtd��t|d�}|�|_|S�)zOCreate an XML Schemas validation context based on the given schema. NzxmlSchemaNewValidCtxt() failedr|���)r;���ZxmlSchemaNewValidCtxtr&���r����SchemaValidCtxtr���)r���r3���Z_Schema__tmpr���r���r����schemaNewValidCtxt��s ���� zSchema.schemaNewValidCtxt)N)r���r���r���r���r>���r��r ��r��r���r���r���r���r�����s ��� r��c�������������������@���sf���e�Zd�Zddd�Zdd��Zdd��Zdd ��Zd d��Zdd ��Zdd��Z dd��Z dd��Zdd��Zdd��Z dS�)r��Nc�����������������C���s���d�|�_�||�_tj|�|d��d�S�r{���)r���r&���r����r���r'���r���r���r���r���#��s����zSchemaValidCtxt.__init__c�����������������C���s ���|�j�d�krt�|�j���d�|�_�d�S�r���)r&���r;���ZxmlSchemaFreeValidCtxtr���r���r���r���r>���(��s���� zSchemaValidCtxt.__del__c�����������������C���s(���|du�rd}n|j�}t�||�j�|�}|S��z�Use W3C XSD schema context to validate the document as it is processed. Activation is only possible before the first Read(). If @ctxt is None, then XML Schema validation is deactivated. N�r&���r;���ZxmlTextReaderSchemaValidateCtxtr��r���r���r����SchemaValidateCtxt1��s����z"SchemaValidCtxt.SchemaValidateCtxtc�����������������C���s���t��|�j�}|S�)z3Check if any error was detected during validation. )r;���ZxmlSchemaIsValidr&���ro���r���r���r���� schemaIsValid?��s����zSchemaValidCtxt.schemaIsValidc�����������������C���s���t��|�j|�}|S�)z3Sets the options to be used during the validation. )r;���ZxmlSchemaSetValidOptionsr&���rq��r���r���r����schemaSetValidOptionsD��s����z%SchemaValidCtxt.schemaSetValidOptionsc�����������������C���s���t��|�j�}|S�)z$Get the validation context options. )r;���ZxmlSchemaValidCtxtGetOptionsr&���ro���r���r���r����schemaValidCtxtGetOptionsI��s����z)SchemaValidCtxt.schemaValidCtxtGetOptionsc�����������������C���s*���t��|�j�}|du�rtd��t|d�}|S�)zOallow access to the parser context of the schema validation context Nz(xmlSchemaValidCtxtGetParserCtxt() failedr|���)r;���ZxmlSchemaValidCtxtGetParserCtxtr&���r!���r����)r���r3���Z_SchemaValidCtxt__tmpr���r���r����schemaValidCtxtGetParserCtxtN��s���� z,SchemaValidCtxt.schemaValidCtxtGetParserCtxtc�����������������C���s&���|du�rd}n|j�}t�|�j�|�}|S�r���rV��r���r���r���r���rW��V��s����z!SchemaValidCtxt.schemaValidateDocc�����������������C���s���t��|�j||�}|S�)zpDo a schemas validation of the given resource, it will use the SAX streamable validation internally. )r;���ZxmlSchemaValidateFiler&���)r���r ��r��r3���r���r���r����schemaValidateFile]��s����z"SchemaValidCtxt.schemaValidateFilec�����������������C���s&���|du�rd}n|j�}t�|�j�|�}|S�r^��r_��)r���r_���r���r3���r���r���r���ra��c��s����z(SchemaValidCtxt.schemaValidateOneElementc�����������������C���s���t��|�j|��dS�)zlWorkaround to provide file error reporting information when this is not provided by current APIs N)r;���ZxmlSchemaValidateSetFilenamer&���)r���r ��r���r���r����schemaValidateSetFilenamej��s����z)SchemaValidCtxt.schemaValidateSetFilename)N)r���r���r���r���r>���r��r��r��r��r��rW��r��ra��r��r���r���r���r���r��"��s��� r��c�������������������@���s&���e�Zd�Zddd�Zdd��Zdd��ZdS�) r����Nc�����������������C���s���|d�kr||�_�d�S�d�|�_�d�S�r���ri���r'���r���r���r���r���p��s����zxmlTextReaderLocator.__init__c�����������������C���s���t��|�j�}|S�)z+Obtain the base URI for the given locator. )r;���ZxmlTextReaderLocatorBaseURIr&���ro���r���r���r����BaseURIx��s����zxmlTextReaderLocator.BaseURIc�����������������C���s���t��|�j�}|S�)z.Obtain the line number for the given locator. )r;���ZxmlTextReaderLocatorLineNumberr&���ro���r���r���r���� LineNumber}��s����zxmlTextReaderLocator.LineNumber)N)r���r���r���r���r��r��r���r���r���r���r����o��s��� r����c�������������������@���s��e�Zd�Zd�dd�Zdd��Zdd��Zdd ��Zd d��Zdd ��Zdd��Z dd��Z dd��Zdd��Zdd��Z dd��Zdd��Zdd��Zdd��Zd d!��Zd"d#��Zd$d%��Zd&d'��Zd(d)��Zd*d+��Zd,d-��Zd.d/��Zd0d1��Zd2d3��Zd4d5��Zd6d7��Zd8d9��Zd:d;��Zd<d=��Z d>d?��Z!d@dA��Z"dBdC��Z#dDdE��Z$dFdG��Z%dHdI��Z&dJdK��Z'dLdM��Z(dNdO��Z)dPdQ��Z*dRdS��Z+dTdU��Z,dVdW��Z-dXdY��Z.dZd[��Z/d\d]��Z0d^d_��Z1d`da��Z2dbdc��Z3ddde��Z4dfdg��Z5dhdi��Z6djdk��Z7dldm��Z8dndo��Z9dpdq��Z:drds��Z;dtdu��Z<dvdw��Z=dxdy��Z>dzd{��Z?d|d}��Z@d~d��ZAd�d���ZBd�d���ZCdS�)�r���Nc�����������������C���s���d�|�_�||�_tj|�|d��d�S�r{���)r����r&���r����r���r'���r���r���r���r������s����zxmlTextReader.__init__c�����������������C���s ���|�j�d�krt�|�j���d�|�_�d�S�r���r����r���r���r���r���r>������s���� zxmlTextReader.__del__c�����������������C���s���t��|�j�}|S�)z6Provides the number of attributes of the current node )r;���ZxmlTextReaderAttributeCountr&���ro���r���r���r����AttributeCount���s����zxmlTextReader.AttributeCountc�����������������C���s���t��|�j�}|S�)zThe base URI of the node. )r;���ZxmlTextReaderConstBaseUrir&���ro���r���r���r����BaseUri���s����zxmlTextReader.BaseUric�����������������C���s���t��|�j�}|S�)a@��This function provides the current index of the parser used by the reader, relative to the start of the current entity. This function actually just wraps a call to xmlBytesConsumed() for the parser context associated with the reader. See xmlBytesConsumed() for more information. )r;���ZxmlTextReaderByteConsumedr&���ro���r���r���r����ByteConsumed���s����zxmlTextReader.ByteConsumedc�����������������C���s���t��|�j�}|S�)z�This method releases any resources allocated by the current instance changes the state to Closed and close any underlying input. )r;���ZxmlTextReaderCloser&���ro���r���r���r����Close���s����zxmlTextReader.Closec�����������������C���s*���t��|�j�}|du�rtd��t|d�}|S�)a]��Hacking interface allowing to get the xmlDocPtr corresponding to the current document being accessed by the xmlTextReader. NOTE: as a result of this call, the reader will not destroy the associated XML document and calling xmlFreeDoc() on the result is needed once the reader parsing has finished. Nz xmlTextReaderCurrentDoc() failedr|���)r;���ZxmlTextReaderCurrentDocr&���r���r�����r���r3���Z_xmlTextReader__tmpr���r���r���� CurrentDoc���s���� zxmlTextReader.CurrentDocc�����������������C���s*���t��|�j�}|du�rtd��t|d�}|S�)z�Hacking interface allowing to get the xmlNodePtr corresponding to the current node being accessed by the xmlTextReader. This is dangerous because the underlying node may be destroyed on the next Reads. Nz!xmlTextReaderCurrentNode() failedr|���)r;���ZxmlTextReaderCurrentNoder&���r���r����r��r���r���r����CurrentNode���s���� zxmlTextReader.CurrentNodec�����������������C���s���t��|�j�}|S�)z#The depth of the node in the tree. )r;���ZxmlTextReaderDepthr&���ro���r���r���r����Depth���s����zxmlTextReader.Depthc�����������������C���s���t��|�j�}|S�)z3Determine the encoding of the document being read. )r;���ZxmlTextReaderConstEncodingr&���ro���r���r���r����Encoding���s����zxmlTextReader.Encodingc�����������������C���s*���t��|�j�}|du�rtd��t|d�}|S�)z�Reads the contents of the current node and the full subtree. It then makes the subtree available until the next xmlTextReaderRead() call NzxmlTextReaderExpand() failedr|���)r;���ZxmlTextReaderExpandr&���r���r����r��r���r���r����Expand���s���� zxmlTextReader.Expandc�����������������C���s���t��|�j|�}|S�)zRProvides the value of the attribute with the specified qualified name. )r;���ZxmlTextReaderGetAttributer&���r!��r���r���r����GetAttribute���s����zxmlTextReader.GetAttributec�����������������C���s���t��|�j|�}|S�)zlProvides the value of the attribute with the specified index relative to the containing element. )r;���ZxmlTextReaderGetAttributeNor&����r����nor3���r���r���r����GetAttributeNo���s����zxmlTextReader.GetAttributeNoc�����������������C���s���t��|�j||�}|S�)z.Provides the value of the specified attribute )r;���ZxmlTextReaderGetAttributeNsr&����r���Z localNameZnamespaceURIr3���r���r���r����GetAttributeNs���s����zxmlTextReader.GetAttributeNsc�����������������C���s���t��|�j�}|S�)z8Provide the column number of the current parsing point. )r;���Z"xmlTextReaderGetParserColumnNumberr&���ro���r���r���r����GetParserColumnNumber���s����z#xmlTextReader.GetParserColumnNumberc�����������������C���s���t��|�j�}|S�)z6Provide the line number of the current parsing point. )r;���Z xmlTextReaderGetParserLineNumberr&���ro���r���r���r����GetParserLineNumber���s����z!xmlTextReader.GetParserLineNumberc�����������������C���s���t��|�j|�}|S�)z#Read the parser internal property. )r;���ZxmlTextReaderGetParserPropr&���)r���r&��r3���r���r���r���� GetParserProp���s����zxmlTextReader.GetParserPropc�����������������C���s*���t��|�j�}|du�rtd��t|d�}|S�)a���Method to get the remainder of the buffered XML. this method stops the parser, set its state to End Of File and return the input stream with what is left that the parser did not use. The implementation is not good, the parser certainly progressed past what's left in reader->input, and there is an allocation problem. Best would be to rewrite it differently. Nz"xmlTextReaderGetRemainder() failedr|���)r;���ZxmlTextReaderGetRemainderr&���r���r���r��r���r���r����GetRemainder���s���� zxmlTextReader.GetRemainderc�����������������C���s���t��|�j�}|S�)z!Whether the node has attributes. )r;���ZxmlTextReaderHasAttributesr&���ro���r���r���r���� HasAttributes��s����zxmlTextReader.HasAttributesc�����������������C���s���t��|�j�}|S�)z(Whether the node can have a text value. )r;���ZxmlTextReaderHasValuer&���ro���r���r���r����HasValue��s����zxmlTextReader.HasValuec�����������������C���s���t��|�j�}|S�)ziWhether an Attribute node was generated from the default value defined in the DTD or schema. )r;���ZxmlTextReaderIsDefaultr&���ro���r���r���r���� IsDefault��s����zxmlTextReader.IsDefaultc�����������������C���s���t��|�j�}|S�)z#Check if the current node is empty )r;���ZxmlTextReaderIsEmptyElementr&���ro���r���r���r����IsEmptyElement��s����zxmlTextReader.IsEmptyElementc�����������������C���s���t��|�j�}|S�)zjDetermine whether the current node is a namespace declaration rather than a regular attribute. )r;���ZxmlTextReaderIsNamespaceDeclr&���ro���r���r���r����IsNamespaceDecl��s����zxmlTextReader.IsNamespaceDeclc�����������������C���s���t��|�j�}|S�)z5Retrieve the validity status from the parser context )r;���ZxmlTextReaderIsValidr&���ro���r���r���r����IsValid��s����zxmlTextReader.IsValidc�����������������C���s���t��|�j�}|S�)zThe local name of the node. )r;���ZxmlTextReaderConstLocalNamer&���ro���r���r���r���� LocalName!��s����zxmlTextReader.LocalNamec�����������������C���s���t��|�j|�}|S�)zLResolves a namespace prefix in the scope of the current element. )r;���ZxmlTextReaderLookupNamespacer&����r���r���r3���r���r���r����LookupNamespace&��s����zxmlTextReader.LookupNamespacec�����������������C���s���t��|�j|�}|S�)zjMoves the position of the current instance to the attribute with the specified qualified name. )r;���ZxmlTextReaderMoveToAttributer&���r!��r���r���r����MoveToAttribute,��s����zxmlTextReader.MoveToAttributec�����������������C���s���t��|�j|�}|S�)z�Moves the position of the current instance to the attribute with the specified index relative to the containing element. )r;���ZxmlTextReaderMoveToAttributeNor&���r&��r���r���r����MoveToAttributeNo2��s����zxmlTextReader.MoveToAttributeNoc�����������������C���s���t��|�j||�}|S�)zxMoves the position of the current instance to the attribute with the specified local name and namespace URI. )r;���ZxmlTextReaderMoveToAttributeNsr&���r)��r���r���r����MoveToAttributeNs8��s����zxmlTextReader.MoveToAttributeNsc�����������������C���s���t��|�j�}|S�)zmMoves the position of the current instance to the node that contains the current Attribute node. )r;���ZxmlTextReaderMoveToElementr&���ro���r���r���r���� MoveToElement>��s����zxmlTextReader.MoveToElementc�����������������C���s���t��|�j�}|S�)zoMoves the position of the current instance to the first attribute associated with the current node. )r;���Z!xmlTextReaderMoveToFirstAttributer&���ro���r���r���r����MoveToFirstAttributeD��s����z"xmlTextReader.MoveToFirstAttributec�����������������C���s���t��|�j�}|S�)znMoves the position of the current instance to the next attribute associated with the current node. )r;���Z xmlTextReaderMoveToNextAttributer&���ro���r���r���r����MoveToNextAttributeJ��s����z!xmlTextReader.MoveToNextAttributec�����������������C���s���t��|�j�}|S�)z<The qualified name of the node, equal to Prefix :LocalName. )r;���ZxmlTextReaderConstNamer&���ro���r���r���r����NameP��s����zxmlTextReader.Namec�����������������C���s���t��|�j�}|S�)z9The URI defining the namespace associated with the node. )r;���ZxmlTextReaderConstNamespaceUrir&���ro���r���r���r����NamespaceUriU��s����zxmlTextReader.NamespaceUric�����������������C���s���t��|�j||||�}|S��z�Setup an xmltextReader to parse an XML in-memory document. The parsing flags @options are a combination of xmlParserOption. This reuses the existing @reader xmlTextReader. )r;���ZxmlReaderNewDocr&���)r���r��r ��r����r��r3���r���r���r����NewDocZ��s����zxmlTextReader.NewDocc�����������������C���s���t��|�j||||�}|S�)a.��Setup an xmltextReader to parse an XML from a file descriptor. NOTE that the file descriptor will not be closed when the reader is closed or reset. The parsing flags @options are a combination of xmlParserOption. This reuses the existing @reader xmlTextReader. )r;���ZxmlReaderNewFdr&���)r���r��r ��r����r��r3���r���r���r����NewFdb��s����zxmlTextReader.NewFdc�����������������C���s���t��|�j|||�}|S�)z�parse an XML file from the filesystem or the network. The parsing flags @options are a combination of xmlParserOption. This reuses the existing @reader xmlTextReader. )r;���ZxmlReaderNewFiler&���)r���r ��r����r��r3���r���r���r����NewFilek��s����zxmlTextReader.NewFilec�����������������C���s���t��|�j|||||�}|S�r@��)r;���ZxmlReaderNewMemoryr&���)r���r����r����r ��r����r��r3���r���r���r���� NewMemorys��s����zxmlTextReader.NewMemoryc�����������������C���s&���|du�rd}n|j�}t�|�j�|�}|S�rN��rO��r���r���r���r���rS��{��s����zxmlTextReader.NewWalkerc�����������������C���s���t��|�j�}|S�)zkSkip to the node following the current one in document order while avoiding the subtree if any. )r;���ZxmlTextReaderNextr&���ro���r���r���r����Next���s����zxmlTextReader.Nextc�����������������C���s���t��|�j�}|S�)z�Skip to the node following the current one in document order while avoiding the subtree if any. Currently implemented only for Readers built on a document )r;���ZxmlTextReaderNextSiblingr&���ro���r���r���r����NextSibling���s����zxmlTextReader.NextSiblingc�����������������C���s���t��|�j�}|S�)z�Get the node type of the current node Reference: http://www.gnu.org/software/dotgnu/pnetlib-doc/System/Xml/Xm lNodeType.html )r;���ZxmlTextReaderNodeTyper&���ro���r���r���r����NodeType���s����zxmlTextReader.NodeTypec�����������������C���s���t��|�j�}|S�)ah��The value indicating whether to normalize white space and attribute values. Since attribute value and end of line normalizations are a MUST in the XML specification only the value true is accepted. The broken behaviour of accepting out of range character entities like � is of course not supported either. )r;���ZxmlTextReaderNormalizationr&���ro���r���r���r���� Normalization���s����zxmlTextReader.Normalizationc�����������������C���s���t��|�j�}|S�)zLA shorthand reference to the namespace associated with the node. )r;���ZxmlTextReaderConstPrefixr&���ro���r���r���r����Prefix���s����zxmlTextReader.Prefixc�����������������C���s*���t��|�j�}|du�rtd��t|d�}|S�)z�This tells the XML Reader to preserve the current node. The caller must also use xmlTextReaderCurrentDoc() to keep an handle on the resulting document once parsing has finished NzxmlTextReaderPreserve() failedr|���)r;���ZxmlTextReaderPreserver&���r���r����r��r���r���r����Preserve���s���� zxmlTextReader.Preservec�����������������C���s���t��|�j�}|S�)zSThe quotation mark character used to enclose the value of an attribute. )r;���ZxmlTextReaderQuoteCharr&���ro���r���r���r���� QuoteChar���s����zxmlTextReader.QuoteCharc�����������������C���s���t��|�j�}|S�)zoMoves the position of the current instance to the next node in the stream, exposing its properties. )r;���ZxmlTextReaderReadr&���ro���r���r���r����Read���s����zxmlTextReader.Readc�����������������C���s���t��|�j�}|S�)zVParses an attribute value into one or more Text and EntityReference nodes. )r;���ZxmlTextReaderReadAttributeValuer&���ro���r���r���r����ReadAttributeValue���s����z xmlTextReader.ReadAttributeValuec�����������������C���s���t��|�j�}|S��zUReads the contents of the current node, including child nodes and markup. )r;���ZxmlTextReaderReadInnerXmlr&���ro���r���r���r����ReadInnerXml���s����zxmlTextReader.ReadInnerXmlc�����������������C���s���t��|�j�}|S�rN��)r;���ZxmlTextReaderReadOuterXmlr&���ro���r���r���r����ReadOuterXml���s����zxmlTextReader.ReadOuterXmlc�����������������C���s���t��|�j�}|S�)z#Gets the read state of the reader. )r;���ZxmlTextReaderReadStater&���ro���r���r���r���� ReadState���s����zxmlTextReader.ReadStatec�����������������C���s���t��|�j�}|S�)z=Reads the contents of an element or a text node as a string. )r;���ZxmlTextReaderReadStringr&���ro���r���r���r���� ReadString���s����zxmlTextReader.ReadStringc�����������������C���s&���|du�rd}n|j�}t�|�j�|�}|S�r���r����r���r���Z schema__or3���r���r���r���r������s����zxmlTextReader.RelaxNGSetSchemac�����������������C���s���t��|�j|�}|S�)z�Use RelaxNG schema to validate the document as it is processed. Activation is only possible before the first Read(). If @rng is None, then RelaxNG schema validation is deactivated. )r;���ZxmlTextReaderRelaxNGValidater&���)r����rngr3���r���r���r����RelaxNGValidate���s����zxmlTextReader.RelaxNGValidatec�����������������C���s(���|du�rd}n|j�}t�|�j�||�}|S�r��r���r���r����r��r���r3���r���r���r���r�����s����z!xmlTextReader.RelaxNGValidateCtxtc�����������������C���s���t��|�j|�}|S�)z�Use W3C XSD schema to validate the document as it is processed. Activation is only possible before the first Read(). If @xsd is None, then XML Schema validation is deactivated. )r;���ZxmlTextReaderSchemaValidater&���)r���Zxsdr3���r���r���r����SchemaValidate���s����zxmlTextReader.SchemaValidatec�����������������C���s(���|du�rd}n|j�}t�|�j�||�}|S�r��r��rV��r���r���r���r�����s����z xmlTextReader.SchemaValidateCtxtc�����������������C���s���t��|�j||�}|S�)z�Change the parser processing behaviour by changing some of its internal properties. Note that some properties can only be changed before any read has been done. )r;���ZxmlTextReaderSetParserPropr&���)r���r&��r2��r3���r���r���r���� SetParserProp��s����zxmlTextReader.SetParserPropc�����������������C���s&���|du�rd}n|j�}t�|�j�|�}|S�r ��r��rS��r���r���r���r����s����zxmlTextReader.SetSchemac�����������������C���s,���|du�rd}n|j�}t�|�j�||||�}|S�r���r���)r���r����r ��r����r��Zinput__or3���r���r���r���r�����s����zxmlTextReader.Setupc�����������������C���s���t��|�j�}|S�)z<Determine the standalone status of the document being read. )r;���ZxmlTextReaderStandaloner&���ro���r���r���r���� Standalone ��s����zxmlTextReader.Standalonec�����������������C���s���t��|�j|�}|S�)ziGet an interned string from the reader, allows for example to speedup string name comparisons )r;���ZxmlTextReaderConstStringr&���r���r���r���r����String%��s����zxmlTextReader.Stringc�����������������C���s���t��|�j�}|S�)z/Provides the text value of the node if present )r;���ZxmlTextReaderConstValuer&���ro���r���r���r����Value+��s����zxmlTextReader.Valuec�����������������C���s���t��|�j�}|S�)z2The xml:lang scope within which the node resides. )r;���ZxmlTextReaderConstXmlLangr&���ro���r���r���r����XmlLang0��s����zxmlTextReader.XmlLangc�����������������C���s���t��|�j�}|S�)z6Determine the XML version of the document being read. )r;���ZxmlTextReaderConstXmlVersionr&���ro���r���r���r���� XmlVersion5��s����zxmlTextReader.XmlVersion)N)Dr���r���r���r���r>���r��r��r��r��r ��r!��r"��r#��r$��r%��r(��r*��r+��r,��r-��r.��r/��r0��r1��r2��r3��r4��r5��r7��r8��r9��r:��r;��r<��r=��r>��r?��rA��rB��rC��rD��rS��rE��rF��rG��rH��rI��rJ��rK��rL��rM��rO��rP��rQ��rR��r���rU��r��rW��r��rX��r��r���rY��rZ��r[��r\��r]��r���r���r���r���r������s���� r���c�������������������@���s����e�Zd�Zd4dd�Zdd��Zdd��Zdd ��Zd d��Zdd ��Zdd��Z dd��Z dd��Zdd��Zdd��Z dd��Zdd��Zdd��Zdd��Zd d!��Zd"d#��Zd$d%��Zd&d'��Zd(d)��Zd*d+��Zd,d-��Zd.d/��Zd0d1��Zd2d3��ZdS�)5r����Nc�����������������C���s���|d�kr||�_�d�S�d�|�_�d�S�r���ri���r'���r���r���r���r���;��s����zURI.__init__c�����������������C���s ���|�j�d�krt�|�j���d�|�_�d�S�r���)r&���r;���Z xmlFreeURIr���r���r���r���r>���?��s���� zURI.__del__c�����������������C���s���t��|�j�}|S�)z#Get the authority part from an URI )r;���ZxmlURIGetAuthorityr&���ro���r���r���r���� authorityE��s����z URI.authorityc�����������������C���s���t��|�j�}|S�)z"Get the fragment part from an URI )r;���ZxmlURIGetFragmentr&���ro���r���r���r����fragmentJ��s����zURI.fragmentc�����������������C���s���t��|�j�}|S�)z Get the opaque part from an URI )r;���ZxmlURIGetOpaquer&���ro���r���r���r����opaqueO��s����z URI.opaquec�����������������C���s���t��|�j�}|S�)zGet the path part from an URI )r;���Z xmlURIGetPathr&���ro���r���r���r���r���T��s����zURI.pathc�����������������C���s���t��|�j�}|S�)zGet the port part from an URI )r;���Z xmlURIGetPortr&���ro���r���r���r���rt��Y��s����zURI.portc�����������������C���s���t��|�j�}|S�)zGet the query part from an URI )r;���ZxmlURIGetQueryr&���ro���r���r���r����query^��s����z URI.queryc�����������������C���s���t��|�j�}|S�)zIGet the raw query part from an URI (i.e. the unescaped form). )r;���ZxmlURIGetQueryRawr&���ro���r���r���r����queryRawc��s����zURI.queryRawc�����������������C���s���t��|�j�}|S�)z Get the scheme part from an URI )r;���ZxmlURIGetSchemer&���ro���r���r���r����schemei��s����z URI.schemec�����������������C���s���t��|�j�}|S�)z Get the server part from an URI )r;���ZxmlURIGetServerr&���ro���r���r���r����servern��s����z URI.serverc�����������������C���s���t��|�j|��dS�)z"Set the authority part of an URI. N)r;���ZxmlURISetAuthorityr&���)r���r^��r���r���r����setAuthoritys��s����zURI.setAuthorityc�����������������C���s���t��|�j|��dS�)z!Set the fragment part of an URI. N)r;���ZxmlURISetFragmentr&���)r���r_��r���r���r����setFragmentw��s����zURI.setFragmentc�����������������C���s���t��|�j|��dS�)zSet the opaque part of an URI. N)r;���ZxmlURISetOpaquer&���)r���r`��r���r���r���� setOpaque{��s����z URI.setOpaquec�����������������C���s���t��|�j|��dS�)zSet the path part of an URI. N)r;���Z xmlURISetPathr&���)r���r���r���r���r����setPath��s����zURI.setPathc�����������������C���s���t��|�j|��dS�)zSet the port part of an URI. N)r;���Z xmlURISetPortr&���)r���rt��r���r���r����setPort���s����zURI.setPortc�����������������C���s���t��|�j|��dS�)zSet the query part of an URI. N)r;���ZxmlURISetQueryr&���)r���ra��r���r���r����setQuery���s����zURI.setQueryc�����������������C���s���t��|�j|��dS�)z<Set the raw query part of an URI (i.e. the unescaped form). N)r;���ZxmlURISetQueryRawr&���)r���Z query_rawr���r���r����setQueryRaw���s����zURI.setQueryRawc�����������������C���s���t��|�j|��dS�)zSet the scheme part of an URI. N)r;���ZxmlURISetSchemer&���)r���rc��r���r���r���� setScheme���s����z URI.setSchemec�����������������C���s���t��|�j|��dS�)zSet the server part of an URI. N)r;���ZxmlURISetServerr&���)r���rd��r���r���r���� setServer���s����z URI.setServerc�����������������C���s���t��|�j|��dS�)zSet the user part of an URI. N)r;���Z xmlURISetUserr&���)r���ru��r���r���r����setUser���s����zURI.setUserc�����������������C���s���t��|�j�}|S�)zGet the user part from an URI )r;���Z xmlURIGetUserr&���ro���r���r���r���ru�����s����zURI.userc�����������������C���s���t��|�j|�}|S�)z�Parse an URI reference string based on RFC 3986 and fills in the appropriate fields of the @uri structure URI-reference = URI / relative-ref )r;���ZxmlParseURIReferencer&���r���r���r���r����parseURIReference���s����zURI.parseURIReferencec�����������������C���s���t��||�j��dS�)z&Prints the URI in the stream @stream. N)r;���ZxmlPrintURIr&���)r����streamr���r���r����printURI���s����zURI.printURIc�����������������C���s���t��|�j�}|S�)z"Save the URI as an escaped string )r;���Z xmlSaveUrir&���ro���r���r���r����saveUri���s����zURI.saveUri)N)r���r���r���r���r>���r^��r_��r`��r���rt��ra��rb��rc��rd��re��rf��rg��rh��ri��rj��rk��rl��rm��rn��ru��ro��rq��rr��r���r���r���r���r����:��s2��� r����c�������������������@���s����e�Zd�Zd"dd�Zdd��Zdd��Zdd ��Zd d��Zdd ��Zdd��Z dd��Z dd��Zdd��Zdd��Z dd��Zdd��Zdd��Zdd��Zd d!��ZdS�)#r���Nc�����������������C���s���||�_�tj|�|d��d�S�r{���)r&���r����r���r'���r���r���r���r������s����zValidCtxt.__init__c�����������������C���s ���|�j�d�krt�|�j���d�|�_�d�S�r���)r&���r;���ZxmlFreeValidCtxtr���r���r���r���r>������s���� zValidCtxt.__del__c�����������������C���s@���|du�rd}n|j�}|du�r"d}n|j�}t�|�j�||||�}|S�r!��r"��)r���r����r_���rP���r2��r���r���r3���r���r���r���r#�����s���� z*ValidCtxt.validCtxtNormalizeAttributeValuec�����������������C���s&���|du�rd}n|j�}t�|�j�|�}|S�r$��r%��r���r���r���r���r&�����s����zValidCtxt.validateDocumentc�����������������C���s&���|du�rd}n|j�}t�|�j�|�}|S�r'��r(��r���r���r���r���r)�����s����zValidCtxt.validateDocumentFinalc�����������������C���s<���|du�rd}n|j�}|du�r"d}n|j�}t�|�j�||�}|S�r*��r+��)r���r����r����r���r,��r3���r���r���r���r-�����s����zValidCtxt.validateDtdc�����������������C���s&���|du�rd}n|j�}t�|�j�|�}|S�r.��r/��r���r���r���r���r0�����s����zValidCtxt.validateDtdFinalc�����������������C���s<���|du�rd}n|j�}|du�r"d}n|j�}t�|�j�||�}|S�r1��r2��r���r���r���r���r3����s����zValidCtxt.validateElementc�����������������C���s(���|du�rd}n|j�}t�|�j�||�}|S�r4��r5��)r���r����rb���r���r3���r���r���r���r6�� ��s����zValidCtxt.validateNotationUsec����������� ������C���sT���|du�rd}n|j�}|du�r"d}n|j�}|du�r6d}n|j�}t�|�j�||||�}|S�r7��r8��) r���r����r_���r����r2��r���r���rQ��r3���r���r���r���r9����s����zValidCtxt.validateOneAttributec�����������������C���s<���|du�rd}n|j�}|du�r"d}n|j�}t�|�j�||�}|S�r:��r;��r���r���r���r���r<��#��s����zValidCtxt.validateOneElementc����������� ������C���sV���|du�rd}n|j�}|du�r"d}n|j�}|du�r6d}n|j�}t�|�j�|||||�} | S�r=��r>��) r���r����r_���r���r���r2��r���r���r��r3���r���r���r���r?��1��s����zValidCtxt.validateOneNamespacec�����������������C���s>���|du�rd}n|j�}|du�r"d}n|j�}t�|�j�|||�}|S�r@��rA���r���r����r_���rC��r���r���r3���r���r���r���rD��B��s����zValidCtxt.validatePopElementc�����������������C���s���t��|�j||�}|S�r��)r;���ZxmlValidatePushCDatar&���r��r���r���r����validatePushCDataK��s����zValidCtxt.validatePushCDatac�����������������C���s>���|du�rd}n|j�}|du�r"d}n|j�}t�|�j�|||�}|S�rE��rF��rs��r���r���r���rG��P��s����zValidCtxt.validatePushElementc�����������������C���s&���|du�rd}n|j�}t�|�j�|�}|S�rH��rI��r���r���r���r���rJ��Y��s����zValidCtxt.validateRoot)N)r���r���r���r���r>���r#��r&��r)��r-��r0��r3��r6��r9��r<��r?��rD��rt��rG��rJ��r���r���r���r���r������s ��� r���c�������������������@���s����e�Zd�Zd4dd�Zdd��Zdd��Zdd ��Zd d��Zdd ��Zdd��Z dd��Z dd��Zdd��Zdd��Z dd��Zdd��Zdd��Zdd��Zd d!��Zd"d#��Zd$d%��Zd&d'��Zd(d)��Zd*d+��Zd,d-��Zd.d/��Zd0d1��Zd2d3��ZdS�)5r���Nc�����������������C���s���|d�kr||�_�d�S�d�|�_�d�S�r���ri���r'���r���r���r���r���d��s����zxpathContext.__init__c�����������������C���s*���t��|�j�}|du�rtd��t|d�}|S�)z!Get the doc from an xpathContext NzxmlXPathGetContextDoc() failedr|���)r;���ZxmlXPathGetContextDocr&���r#���r�����r���r3����_xpathContext__tmpr���r���r���� contextDoci��s���� zxpathContext.contextDocc�����������������C���s*���t��|�j�}|du�rtd��t|d�}|S�)�*Get the current node from an xpathContext NzxmlXPathGetContextNode() failedr|���)r;���ZxmlXPathGetContextNoder&���r#���r����ru��r���r���r����contextNodep��s���� zxpathContext.contextNodec�����������������C���s���t��|�j�}|S��rx��)r;���ZxmlXPathGetContextPositionr&���ro���r���r���r����contextPositionw��s����zxpathContext.contextPositionc�����������������C���s���t��|�j�}|S�rz��)r;���ZxmlXPathGetContextSizer&���ro���r���r���r����contextSize|��s����zxpathContext.contextSizec�����������������C���s���t��|�j�}|S�)z+Get the current function name xpathContext )r;���ZxmlXPathGetFunctionr&���ro���r���r���r����function���s����zxpathContext.functionc�����������������C���s���t��|�j�}|S�)z/Get the current function name URI xpathContext )r;���ZxmlXPathGetFunctionURIr&���ro���r���r���r����functionURI���s����zxpathContext.functionURIc�����������������C���s&���|du�rd}n|j�}t�|�j�|��dS�)zSet the doc of an xpathContext N)r&���r;���ZxmlXPathSetContextDocr8��r���r���r���� setContextDoc���s����zxpathContext.setContextDocc�����������������C���s&���|du�rd}n|j�}t�|�j�|��dS�)z(Set the current node of an xpathContext N)r&���r;���ZxmlXPathSetContextNoder���r���r���r���r�������s����zxpathContext.setContextNodec�����������������C���s���t��|�j|||�}|S�)z<Register a Python written function to the XPath interpreter )r;���r����r&���)r���rP���r����r����r3���r���r���r���r�������s����z"xpathContext.registerXPathFunctionc�����������������C���s���t��|�j|||�}|S�)z+Register a variable with the XPath context )r;���ZxmlXPathRegisterVariabler&���)r���rP���r����r2��r3���r���r���r����xpathRegisterVariable���s����z"xpathContext.xpathRegisterVariablec�����������������C���s���t��|�j|||�}|S�)a���Creates/frees an object cache on the XPath context. If activates XPath objects (xmlXPathObject) will be cached internally to be reused. @options: 0: This will set the XPath object caching: @value: This will set the maximum number of XPath objects to be cached per slot There are 5 slots for: node-set, string, number, boolean, and misc objects. Use <0 for the default number (100). Other values for @options have currently no effect. )r;���ZxmlXPathContextSetCacher&���)r���Zactiver2��r��r3���r���r���r����xpathContextSetCache���s���� z!xpathContext.xpathContextSetCachec�����������������C���s&���t��||�j�}|du�rtd��t|�S�)�7Evaluate the XPath Location Path in the given context. NzxmlXPathEval() failed)r;���ZxmlXPathEvalr&���r#���r����r���r���r���r���r�������s����zxpathContext.xpathEvalc�����������������C���s&���t��||�j�}|du�rtd��t|�S�)zAlias for xmlXPathEval(). NzxmlXPathEvalExpression() failed)r;���ZxmlXPathEvalExpressionr&���r#���r����r���r���r���r����xpathEvalExpression���s����z xpathContext.xpathEvalExpressionc�����������������C���s���t��|�j��dS�)zFree up an xmlXPathContext N)r;���ZxmlXPathFreeContextr&���r���r���r���r���r�������s����zxpathContext.xpathFreeContextc�����������������C���s,���t��||�j�}|du�rtd��t|d�}|S�)z#Create a new xmlXPathParserContext Nz!xmlXPathNewParserContext() failedr|���)r;���ZxmlXPathNewParserContextr&���r#����xpathParserContext)r���r7���r3���rv��r���r���r����xpathNewParserContext���s���� z"xpathContext.xpathNewParserContextc�����������������C���s���t��|�j|�}|S�)z�Search in the namespace declaration array of the context for the given namespace name associated to the given prefix )r;���ZxmlXPathNsLookupr&���r6��r���r���r���� xpathNsLookup���s����zxpathContext.xpathNsLookupc�����������������C���s���t��|�j��dS�)z6Registers all default XPath functions in this context N)r;���ZxmlXPathRegisterAllFunctionsr&���r���r���r���r����xpathRegisterAllFunctions���s����z&xpathContext.xpathRegisterAllFunctionsc�����������������C���s���t��|�j||�}|S�)zURegister a new namespace. If @ns_uri is None it unregisters the namespace )r;���ZxmlXPathRegisterNsr&���)r���r���r����r3���r���r���r����xpathRegisterNs���s����zxpathContext.xpathRegisterNsc�����������������C���s���t��|�j��dS�)zMCleanup the XPath context data associated to registered functions N)r;���ZxmlXPathRegisteredFuncsCleanupr&���r���r���r���r����xpathRegisteredFuncsCleanup���s����z(xpathContext.xpathRegisteredFuncsCleanupc�����������������C���s���t��|�j��dS��zMCleanup the XPath context data associated to registered variables N)r;���ZxmlXPathRegisteredNsCleanupr&���r���r���r���r����xpathRegisteredNsCleanup���s����z%xpathContext.xpathRegisteredNsCleanupc�����������������C���s���t��|�j��dS�r���)r;���Z"xmlXPathRegisteredVariablesCleanupr&���r���r���r���r����xpathRegisteredVariablesCleanup���s����z,xpathContext.xpathRegisteredVariablesCleanupc�����������������C���s&���t��|�j|�}|du�rtd��t|�S�)�USearch in the Variable array of the context for the given variable value. NzxmlXPathVariableLookup() failed)r;���ZxmlXPathVariableLookupr&���r#���r����r!��r���r���r����xpathVariableLookup���s����z xpathContext.xpathVariableLookupc�����������������C���s(���t��|�j||�}|du�r td��t|�S�)r���Nz!xmlXPathVariableLookupNS() failed)r;���ZxmlXPathVariableLookupNSr&���r#���r����)r���rP���r����r3���r���r���r����xpathVariableLookupNS���s����z"xpathContext.xpathVariableLookupNSc�����������������C���s&���t��||�j�}|du�rtd��t|�S�)r���NzxmlXPtrEval() failed)r;���ZxmlXPtrEvalr&���r���r����r���r���r���r����xpointerEval��s����zxpathContext.xpointerEval)N)r���r���r���r���rw��ry��r{��r|��r}��r~��r��r����r����r���r���r����r���r����r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���c��s2��� r���c�������������������@���s���e�Zd�Zd~dd�Zdd��Zdd��Zdd ��Zd d��Zdd ��Zdd��Z dd��Z dd��Zdd��Zdd��Z dd��Zdd��Zdd��Zdd��Zd d!��Zd"d#��Zd$d%��Zd&d'��Zd(d)��Zd*d+��Zd,d-��Zd.d/��Zd0d1��Zd2d3��Zd4d5��Zd6d7��Zd8d9��Zd:d;��Zd<d=��Z d>d?��Z!d@dA��Z"dBdC��Z#dDdE��Z$dFdG��Z%dHdI��Z&dJdK��Z'dLdM��Z(dNdO��Z)dPdQ��Z*dRdS��Z+dTdU��Z,dVdW��Z-dXdY��Z.dZd[��Z/d\d]��Z0d^d_��Z1d`da��Z2dbdc��Z3ddde��Z4dfdg��Z5dhdi��Z6djdk��Z7dldm��Z8dndo��Z9dpdq��Z:drds��Z;dtdu��Z<dvdw��Z=dxdy��Z>dzd{��Z?d|d}��Z@dS�)r���Nc�����������������C���s���|d�kr||�_�d�S�d�|�_�d�S�r���ri���r'���r���r���r���r�����s����zxpathParserContext.__init__c�����������������C���s*���t��|�j�}|du�rtd��t|d�}|S�)z0Get the xpathContext from an xpathParserContext Nz!xmlXPathParserGetContext() failedr|���)r;���ZxmlXPathParserGetContextr&���r#���r���)r���r3����_xpathParserContext__tmpr���r���r����context ��s���� zxpathParserContext.contextc�����������������C���s���t��|�j��dS�)z�Implement the add operation on XPath objects: The numeric operators convert their operands to numbers as if by calling the number function. N)r;���ZxmlXPathAddValuesr&���r���r���r���r����xpathAddValues��s����z!xpathParserContext.xpathAddValuesc�����������������C���s���t��|�j|��dS�)au��Implement the boolean() XPath function boolean boolean(object) The boolean function converts its argument to a boolean as follows: - a number is true if and only if it is neither positive or negative zero nor NaN - a node-set is true if and only if it is non-empty - a string is true if and only if its length is non-zero N)r;���ZxmlXPathBooleanFunctionr&����r����nargsr���r���r����xpathBooleanFunction��s����z'xpathParserContext.xpathBooleanFunctionc�����������������C���s���t��|�j|��dS�)z�Implement the ceiling() XPath function number ceiling(number) The ceiling function returns the smallest (closest to negative infinity) number that is not less than the argument and that is an integer. N)r;���ZxmlXPathCeilingFunctionr&���r���r���r���r����xpathCeilingFunction'��s����z'xpathParserContext.xpathCeilingFunctionc�����������������C���s���t��|�j||�}|S�)a���Implement the compare operation on XPath objects: @arg1 < @arg2 (1, 1, ... @arg1 <= @arg2 (1, 0, ... @arg1 > @arg2 (0, 1, ... @arg1 >= @arg2 (0, 0, ... When neither object to be compared is a node-set and the operator is <=, <, >=, >, then the objects are compared by converted both objects to numbers and comparing the numbers according to IEEE 754. The < comparison will be true if and only if the first number is less than the second number. The <= comparison will be true if and only if the first number is less than or equal to the second number. The > comparison will be true if and only if the first number is greater than the second number. The >= comparison will be true if and only if the first number is greater than or equal to the second number. )r;���ZxmlXPathCompareValuesr&���)r����inf�strictr3���r���r���r����xpathCompareValues.��s����z%xpathParserContext.xpathCompareValuesc�����������������C���s���t��|�j|��dS�)z�Implement the concat() XPath function string concat(string, string, string*) The concat function returns the concatenation of its arguments. N)r;���ZxmlXPathConcatFunctionr&���r���r���r���r����xpathConcatFunction@��s����z&xpathParserContext.xpathConcatFunctionc�����������������C���s���t��|�j|��dS�)z�Implement the contains() XPath function boolean contains(string, string) The contains function returns true if the first argument string contains the second argument string, and otherwise returns false. N)r;���ZxmlXPathContainsFunctionr&���r���r���r���r����xpathContainsFunctionF��s����z(xpathParserContext.xpathContainsFunctionc�����������������C���s���t��|�j|��dS�)z<Implement the count() XPath function number count(node-set) N)r;���ZxmlXPathCountFunctionr&���r���r���r���r����xpathCountFunctionM��s����z%xpathParserContext.xpathCountFunctionc�����������������C���s���t��|�j��dS�)z�Implement the div operation on XPath objects @arg1 / @arg2: The numeric operators convert their operands to numbers as if by calling the number function. N)r;���ZxmlXPathDivValuesr&���r���r���r���r����xpathDivValuesQ��s����z!xpathParserContext.xpathDivValuesc�����������������C���s���t��|�j�}|S��zRImplement the equal operation on XPath objects content: @arg1 == @arg2 )r;���ZxmlXPathEqualValuesr&���ro���r���r���r����xpathEqualValuesW��s����z#xpathParserContext.xpathEqualValuesc�����������������C���s���t��|�j|��dS�)zHandle an XPath error N)r;���ZxmlXPathErrr&���)r���re���r���r���r����xpathErr]��s����zxpathParserContext.xpathErrc�����������������C���s���t��|�j��dS�)zrParse and evaluate an XPath expression in the given context, then push the result on the context stack N)r;���ZxmlXPathEvalExprr&���r���r���r���r���� xpathEvalExpra��s����z xpathParserContext.xpathEvalExprc�����������������C���s���t��|�j|��dS�)z5Implement the false() XPath function boolean false() N)r;���ZxmlXPathFalseFunctionr&���r���r���r���r����xpathFalseFunctionf��s����z%xpathParserContext.xpathFalseFunctionc�����������������C���s���t��|�j|��dS�)z�Implement the floor() XPath function number floor(number) The floor function returns the largest (closest to positive infinity) number that is not greater than the argument and that is an integer. N)r;���ZxmlXPathFloorFunctionr&���r���r���r���r����xpathFloorFunctionj��s����z%xpathParserContext.xpathFloorFunctionc�����������������C���s���t��|�j��dS�)z!Free up an xmlXPathParserContext N)r;���ZxmlXPathFreeParserContextr&���r���r���r���r����xpathFreeParserContextq��s����z)xpathParserContext.xpathFreeParserContextc�����������������C���s���t��|�j|��dS�)a@��Implement the id() XPath function node-set id(object) The id function selects elements by their unique ID (see [5.2.1 Unique IDs]). When the argument to id is of type node-set, then the result is the union of the result of applying id to the string value of each of the nodes in the argument node-set. When the argument to id is of any other type, the argument is converted to a string as if by a call to the string function; the string is split into a whitespace-separated list of tokens (whitespace is any sequence of characters matching the production S); the result is a node-set containing the elements in the same document as the context node that have a unique ID equal to any of the tokens in the list. N)r;���ZxmlXPathIdFunctionr&���r���r���r���r����xpathIdFunctionu��s����z"xpathParserContext.xpathIdFunctionc�����������������C���s���t��|�j|��dS�)a���Implement the lang() XPath function boolean lang(string) The lang function returns true or false depending on whether the language of the context node as specified by xml:lang attributes is the same as or is a sublanguage of the language specified by the argument string. The language of the context node is determined by the value of the xml:lang attribute on the context node, or, if the context node has no xml:lang attribute, by the value of the xml:lang attribute on the nearest ancestor of the context node that has an xml:lang attribute. If there is no such attribute, then lang N)r;���ZxmlXPathLangFunctionr&���r���r���r���r����xpathLangFunction���s����z$xpathParserContext.xpathLangFunctionc�����������������C���s���t��|�j|��dS�)z�Implement the last() XPath function number last() The last function returns the number of nodes in the context node list. N)r;���ZxmlXPathLastFunctionr&���r���r���r���r����xpathLastFunction���s����z$xpathParserContext.xpathLastFunctionc�����������������C���s���t��|�j|��dS�)a���Implement the local-name() XPath function string local-name(node-set?) The local-name function returns a string containing the local part of the name of the node in the argument node-set that is first in document order. If the node-set is empty or the first node has no name, an empty string is returned. If the argument is omitted it defaults to the context node. N)r;���ZxmlXPathLocalNameFunctionr&���r���r���r���r����xpathLocalNameFunction���s����z)xpathParserContext.xpathLocalNameFunctionc�����������������C���s���t��|�j��dS�)z�Implement the mod operation on XPath objects: @arg1 / @arg2 The numeric operators convert their operands to numbers as if by calling the number function. N)r;���ZxmlXPathModValuesr&���r���r���r���r����xpathModValues���s����z!xpathParserContext.xpathModValuesc�����������������C���s���t��|�j��dS�)z�Implement the multiply operation on XPath objects: The numeric operators convert their operands to numbers as if by calling the number function. N)r;���ZxmlXPathMultValuesr&���r���r���r���r����xpathMultValues���s����z"xpathParserContext.xpathMultValuesc�����������������C���s���t��|�j|��dS�)a���Implement the namespace-uri() XPath function string namespace-uri(node-set?) The namespace-uri function returns a string containing the namespace URI of the expanded name of the node in the argument node-set that is first in document order. If the node-set is empty, the first node has no name, or the expanded name has no namespace URI, an empty string is returned. If the argument is omitted it defaults to the context node. N)r;���ZxmlXPathNamespaceURIFunctionr&���r���r���r���r����xpathNamespaceURIFunction���s���� z,xpathParserContext.xpathNamespaceURIFunctionc�����������������C���s@���|du�rd}n|j�}t�|�j�|�}|du�r2td��t|d�}|S�rh��ri���r���r��r���r3���r���r���r���r���rk�����s���� z$xpathParserContext.xpathNextAncestorc�����������������C���s@���|du�rd}n|j�}t�|�j�|�}|du�r2td��t|d�}|S�rl��rm��r���r���r���r���rn�����s���� z*xpathParserContext.xpathNextAncestorOrSelfc�����������������C���s@���|du�rd}n|j�}t�|�j�|�}|du�r2td��t|d�}|S�ro��rp��r���r���r���r���rq�����s���� z%xpathParserContext.xpathNextAttributec�����������������C���s@���|du�rd}n|j�}t�|�j�|�}|du�r2td��t|d�}|S�rr��rs��r���r���r���r���rt�����s���� z!xpathParserContext.xpathNextChildc�����������������C���s@���|du�rd}n|j�}t�|�j�|�}|du�r2td��t|d�}|S�ru��rv��r���r���r���r���rw�����s���� z&xpathParserContext.xpathNextDescendantc�����������������C���s@���|du�rd}n|j�}t�|�j�|�}|du�r2td��t|d�}|S�rx��ry��r���r���r���r���rz�����s���� z,xpathParserContext.xpathNextDescendantOrSelfc�����������������C���s@���|du�rd}n|j�}t�|�j�|�}|du�r2td��t|d�}|S�r{��r|��r���r���r���r���r}����s���� z%xpathParserContext.xpathNextFollowingc�����������������C���s@���|du�rd}n|j�}t�|�j�|�}|du�r2td��t|d�}|S�r~��r��r���r���r���r���r�����s���� z,xpathParserContext.xpathNextFollowingSiblingc�����������������C���s@���|du�rd}n|j�}t�|�j�|�}|du�r2td��t|d�}|S�r���r���r���r���r���r���r�����s���� z%xpathParserContext.xpathNextNamespacec�����������������C���s@���|du�rd}n|j�}t�|�j�|�}|du�r2td��t|d�}|S�r���r���r���r���r���r���r���,��s���� z"xpathParserContext.xpathNextParentc�����������������C���s@���|du�rd}n|j�}t�|�j�|�}|du�r2td��t|d�}|S�r���r���r���r���r���r���r���7��s���� z%xpathParserContext.xpathNextPrecedingc�����������������C���s@���|du�rd}n|j�}t�|�j�|�}|du�r2td��t|d�}|S�r���r���r���r���r���r���r���E��s���� z,xpathParserContext.xpathNextPrecedingSiblingc�����������������C���s@���|du�rd}n|j�}t�|�j�|�}|du�r2td��t|d�}|S�r���r���r���r���r���r���r���R��s���� z xpathParserContext.xpathNextSelfc�����������������C���s���t��|�j|��dS�)a.��Implement the normalize-space() XPath function string normalize-space(string?) The normalize-space function returns the argument string with white space normalized by stripping leading and trailing whitespace and replacing sequences of whitespace characters by a single space. Whitespace characters are the same allowed by the S production in XML. If the argument is omitted, it defaults to the context node converted to a string, in other words the value of the context node. N)r;���ZxmlXPathNormalizeFunctionr&���r���r���r���r����xpathNormalizeFunction\��s���� z)xpathParserContext.xpathNormalizeFunctionc�����������������C���s���t��|�j�}|S�r���)r;���ZxmlXPathNotEqualValuesr&���ro���r���r���r����xpathNotEqualValuesh��s����z&xpathParserContext.xpathNotEqualValuesc�����������������C���s���t��|�j|��dS�)z�Implement the not() XPath function boolean not(boolean) The not function returns true if its argument is false, and false otherwise. N)r;���ZxmlXPathNotFunctionr&���r���r���r���r����xpathNotFunctionn��s����z#xpathParserContext.xpathNotFunctionc�����������������C���s���t��|�j|��dS�)z=Implement the number() XPath function number number(object?) N)r;���ZxmlXPathNumberFunctionr&���r���r���r���r����xpathNumberFunctiont��s����z&xpathParserContext.xpathNumberFunctionc�����������������C���s���t��|�j�}|S�)z�parse an XML namespace non qualified name. [NS 3] NCName ::= (Letter | '_') (NCNameChar)* [NS 4] NCNameChar ::= Letter | Digit | '.' | '-' | '_' | CombiningChar | Extender )r;���ZxmlXPathParseNCNamer&���ro���r���r���r����xpathParseNCNamex��s����z#xpathParserContext.xpathParseNCNamec�����������������C���s���t��|�j�}|S�)z�parse an XML name [4] NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar | Extender [5] Name ::= (Letter | '_' | ':') (NameChar)* )r;���ZxmlXPathParseNamer&���ro���r���r���r����xpathParseName��s����z!xpathParserContext.xpathParseNamec�����������������C���s���t��|�j�}|S�)zoPops a boolean from the stack, handling conversion if needed. Check error with #xmlXPathCheckError. )r;���ZxmlXPathPopBooleanr&���ro���r���r���r����xpathPopBoolean���s����z"xpathParserContext.xpathPopBooleanc�����������������C���s���t��|�j�}|S�)znPops a number from the stack, handling conversion if needed. Check error with #xmlXPathCheckError. )r;���ZxmlXPathPopNumberr&���ro���r���r���r����xpathPopNumber���s����z!xpathParserContext.xpathPopNumberc�����������������C���s���t��|�j�}|S�)znPops a string from the stack, handling conversion if needed. Check error with #xmlXPathCheckError. )r;���ZxmlXPathPopStringr&���ro���r���r���r����xpathPopString���s����z!xpathParserContext.xpathPopStringc�����������������C���s���t��|�j|��dS�)z�Implement the position() XPath function number position() The position function returns the position of the context node in the context node list. The first position is 1, and so the last position will be equal to last(). N)r;���ZxmlXPathPositionFunctionr&���r���r���r���r����xpathPositionFunction���s����z(xpathParserContext.xpathPositionFunctionc�����������������C���s���t��|�j��dS�)z3Initialize the context to the root of the document N)r;���ZxmlXPathRootr&���r���r���r���r���� xpathRoot���s����zxpathParserContext.xpathRootc�����������������C���s���t��|�j|��dS�)a��Implement the round() XPath function number round(number) The round function returns the number that is closest to the argument and that is an integer. If there are two such numbers, then the one that is closest to positive infinity is returned. N)r;���ZxmlXPathRoundFunctionr&���r���r���r���r����xpathRoundFunction���s����z%xpathParserContext.xpathRoundFunctionc�����������������C���s���t��|�j|��dS�)z�Implement the starts-with() XPath function boolean starts-with(string, string) The starts-with function returns true if the first argument string starts with the second argument string, and otherwise returns false. N)r;���ZxmlXPathStartsWithFunctionr&���r���r���r���r����xpathStartsWithFunction���s����z*xpathParserContext.xpathStartsWithFunctionc�����������������C���s���t��|�j|��dS�)a+��Implement the string() XPath function string string(object?) The string function converts an object to a string as follows: - A node-set is converted to a string by returning the value of the node in the node-set that is first in document order. If the node-set is empty, an empty string is returned. - A number is converted to a string as follows + NaN is converted to the string NaN + positive zero is converted to the string 0 + negative zero is converted to the string 0 + positive infinity is converted to the string Infinity + negative infinity is converted to the string -Infinity + if the number is an integer, the number is represented in decimal form as a Number with no decimal point and no leading zeros, preceded by a minus sign (-) if the number is negative + otherwise, the number is represented in decimal form as a Number including a decimal point with at least one digit before the decimal point and at least one digit after the decimal point, preceded by a minus sign (-) if the number is negative; there must be no leading zeros before the decimal point apart possibly from the one required digit immediately before the decimal point; beyond the one required digit after the decimal point there must be as many, but only as many, more digits as are needed to uniquely distinguish the number from all other IEEE 754 numeric values. - The boolean false value is converted to the string false. The boolean true value is converted to the string true. If the argument is omitted, it defaults to a node-set with the context node as its only member. N)r;���ZxmlXPathStringFunctionr&���r���r���r���r����xpathStringFunction���s����z&xpathParserContext.xpathStringFunctionc�����������������C���s���t��|�j|��dS�)aU��Implement the string-length() XPath function number string-length(string?) The string-length returns the number of characters in the string (see [3.6 Strings]). If the argument is omitted, it defaults to the context node converted to a string, in other words the value of the context node. N)r;���ZxmlXPathStringLengthFunctionr&���r���r���r���r����xpathStringLengthFunction���s����z,xpathParserContext.xpathStringLengthFunctionc�����������������C���s���t��|�j��dS�)z�Implement the subtraction operation on XPath objects: The numeric operators convert their operands to numbers as if by calling the number function. N)r;���ZxmlXPathSubValuesr&���r���r���r���r����xpathSubValues���s����z!xpathParserContext.xpathSubValuesc�����������������C���s���t��|�j|��dS�)a+��Implement the substring-after() XPath function string substring-after(string, string) The substring-after function returns the substring of the first argument string that follows the first occurrence of the second argument string in the first argument string, or the empty stringi if the first argument string does not contain the second argument string. For example, substring-after("1999/04/01","/") returns 04/01, and substring-after("1999/04/01","19") returns 99/04/01. N)r;���ZxmlXPathSubstringAfterFunctionr&���r���r���r���r����xpathSubstringAfterFunction���s���� z.xpathParserContext.xpathSubstringAfterFunctionc�����������������C���s���t��|�j|��dS�)a���Implement the substring-before() XPath function string substring-before(string, string) The substring-before function returns the substring of the first argument string that precedes the first occurrence of the second argument string in the first argument string, or the empty string if the first argument string does not contain the second argument string. For example, substring-before("1999/04/01","/") returns 1999. N)r;���ZxmlXPathSubstringBeforeFunctionr&���r���r���r���r����xpathSubstringBeforeFunction���s���� z/xpathParserContext.xpathSubstringBeforeFunctionc�����������������C���s���t��|�j|��dS�)a��Implement the substring() XPath function string substring(string, number, number?) The substring function returns the substring of the first argument starting at the position specified in the second argument with length specified in the third argument. For example, substring("12345",2,3) returns "234". If the third argument is not specified, it returns the substring starting at the position specified in the second argument and continuing to the end of the string. For example, substring("12345",2) returns "2345". More precisely, each character in the string (see [3.6 Strings]) is considered to have a numeric position: the position of the first character is 1, the position of the second character is 2 and so on. The returned substring contains those characters for which the position of the character is greater than or equal to the second argument and, if the third argument is specified, less than the sum of the second and third arguments; the comparisons and addition used for the above follow the standard IEEE 754 rules. Thus: - substring("12345", 1.5, 2.6) returns "234" - substring("12345", 0, 3) returns "12" - substring("12345", 0 div 0, 3) returns "" - substring("12345", 1, 0 div 0) returns "" - substring("12345", -42, 1 div 0) returns "12345" - substring("12345", -1 div 0, 1 div 0) returns "" N)r;���ZxmlXPathSubstringFunctionr&���r���r���r���r����xpathSubstringFunction���s����z)xpathParserContext.xpathSubstringFunctionc�����������������C���s���t��|�j|��dS�)z�Implement the sum() XPath function number sum(node-set) The sum function returns the sum of the values of the nodes in the argument node-set. N)r;���ZxmlXPathSumFunctionr&���r���r���r���r����xpathSumFunction��s����z#xpathParserContext.xpathSumFunctionc�����������������C���s���t��|�j|��dS�)a%��Implement the translate() XPath function string translate(string, string, string) The translate function returns the first argument string with occurrences of characters in the second argument string replaced by the character at the corresponding position in the third argument string. For example, translate("bar","abc","ABC") returns the string BAr. If there is a character in the second argument string with no character at a corresponding position in the third argument string (because the second argument string is longer than the third argument string), then occurrences of that character in the first argument string are removed. For example, translate("--aaa--","abc-","ABC") N)r;���ZxmlXPathTranslateFunctionr&���r���r���r���r����xpathTranslateFunction��s����z)xpathParserContext.xpathTranslateFunctionc�����������������C���s���t��|�j|��dS�)z3Implement the true() XPath function boolean true() N)r;���ZxmlXPathTrueFunctionr&���r���r���r���r����xpathTrueFunction(��s����z$xpathParserContext.xpathTrueFunctionc�����������������C���s���t��|�j��dS�)z�Implement the unary - operation on an XPath object The numeric operators convert their operands to numbers as if by calling the number function. N)r;���ZxmlXPathValueFlipSignr&���r���r���r���r����xpathValueFlipSign,��s����z%xpathParserContext.xpathValueFlipSignc�����������������C���s���t��|�j|||��dS�)zFormats an error message. N)r;���Z xmlXPatherrorr&���)r���rA���r���r'��r���r���r���� xpatherror2��s����zxpathParserContext.xpatherrorc�����������������C���s���t��|�j��dS�)z�[8] Predicate ::= '[' PredicateExpr ']' [9] PredicateExpr ::= Expr Evaluate a predicate as in xmlXPathEvalPredicate() but for a Location Set instead of a node set N)r;���ZxmlXPtrEvalRangePredicater&���r���r���r���r����xpointerEvalRangePredicate:��s����z-xpathParserContext.xpointerEvalRangePredicatec�����������������C���s���t��|�j|��dS�)z�Implement the range-to() XPointer function Obsolete. range-to is not a real function but a special type of location step which is handled in xpath.c. N)r;���ZxmlXPtrRangeToFunctionr&���r���r���r���r����xpointerRangeToFunctionA��s����z*xpathParserContext.xpointerRangeToFunction)N)Ar���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���rk��rn��rq��rt��rw��rz��r}��r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r�����s|��� r�������� ����@�����������i���i� ��i���i�� �������������r����� ���� �������� ����������������������������������������������������������������������������!����"����#����$����%����&����'����(����)����*����+����,����-����.����/����0����1����2����3����4����5����6����7����8����9����:����;����<����=����>����?����A����B����C����D����E����F����G����H����I����J����K����L����M����N����O����P����Q����R����S����T����U����V����W����X����Y����Z����[����\����]����^����_����`����a����b����c����d����e����f����g����h����i����j����k����l����m����n����o���������������������������������i���i���i���i���i���i���i���i���i���i���i���i���i���i��i��i��i��i��i��i��i��i ��i ��i��i��i ��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i ��i!��i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i��i��i��i��i��i��i��i��i ��i ��i��i��i ��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i ��i!��i"��i#��i$��i%��i&��i'��i(��i)��i*��i+��i,��i-��i.��i/��i0��i1��i2��i3��i4��i5��i6��i7��i8��i9��i:��i;��i<��i=��i>��i?��i@��iA��iB��iC��iD��iE��iF��iG��iH��iI��iJ��iK��iL��iM��iN��iO��iP��iQ��iR��iS��iT��iU��iV��iW��iX��iY��iZ��i[��i\��i]��i^��i_��i`��ia��ib��i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i��i��i��i��ix��iy��iz��i{��i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i��i��i��i��i��i��i��i��i ��i ��i��i��i ��i��i��i��i��i��i��i��i@��iA��iB��iC��iD��iE��iF��iG��iH��iI��iJ��iK��iL��iM��iN��iO��iP��iQ��iR��ir��is��it��iu��iv��i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i��i��i��i��i��i��i��i��i ��i ��i��i��i ��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i��i ��i!��i"��i#��i$��i%��i&��i'��i(��i)��i*��i+��i,��i-��i.��i/��i0��i1��i2��i3��i4��i5��i6��i7��i8��i9��i:��i;��i<��i=��i>��i?��i@��iA��iB��iC��iD��iE��iF��iG��iH��iI��iJ��iK��iL��iM��iN��iO��iP��iQ��iR��iS��iT��iU��iV��iW��il��im��in��io��i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i��i��i��i��i��i��i��i��i ��i ��i��i��i ��i��i��i��i��i��i��i���i���i$��i%��i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���i���ip��iq��ir��is��it��iX��r)���i���i�@��i����i���i���i���i���i��@�i���(���r;����typesr���r/���r���r���r���r���r!���r"���r#���r$���r9���r@���rD���rh���r����r����rs���r����r����ZPARSER_LOADDTDZPARSER_DEFAULTATTRSZPARSER_VALIDATEZPARSER_SUBST_ENTITIESZ PARSER_SEVERITY_VALIDITY_WARNINGZPARSER_SEVERITY_VALIDITY_ERRORZPARSER_SEVERITY_WARNINGZPARSER_SEVERITY_ERRORr����r����r����r����r����r����r����r����r����r����r����r����r����r���r��r��r��r��r��r��r��r��r��r��r��r��r ��r!��r$��r%��r'��r)��r,��r/��r3��r5��r6��r8��r;��r=��r>��rA��rB��rC��rD��rE��rF��rH��rI��rJ��rK��rL��rM��rN��rO��rP��rR��rS��rT��rU��rW��rX��rY��r[��r\��r]��r^��r_��r`��ra��rb��re��rf��rg��rh��ri��rj��rk��rl��rm��rn��ro��rp��rq��rr��rw��ry��rz��r{��r|��r~��r��r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r��r��r��r��r��r��r��r��r��r ��r��r��r��r��r��r��r��r��r��r��r��r��r��r ��r"��r#��r$��r%��r&��r'��r(��r)��r*��r+��r,��r-��r.��r/��r0��r1��r2��r4��r5��r6��r7��r8��r9��r:��r;��r<��r=��r>��r?��r@��rA��rB��rC��rD��rE��rF��rG��rH��rI��rJ��rK��rL��rM��rN��rO��rP��rQ��rR��rS��rT��rU��rV��rW��rX��rY��rZ��r[��r\��r]��r^��r_��r`��ra��rb��rc��rd��re��rf��rg��rh��ri��rj��rk��rl��rm��rn��ro��rp��rq��rr��rs��rt��ru��rv��rw��rx��ry��rz��r{��r|��r}��r~��r��r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r���r����r����r����r~���r����r?��r����r����r����r���r����r���r���r���r���r���r���r��r��r��r����r���r����r���r���r���ZHTML_NAZHTML_INVALIDZHTML_DEPRECATEDZ HTML_VALIDZ HTML_REQUIREDZHTML_PARSE_RECOVERZHTML_PARSE_NODEFDTDZHTML_PARSE_NOERRORZHTML_PARSE_NOWARNINGZHTML_PARSE_PEDANTICZHTML_PARSE_NOBLANKSZHTML_PARSE_NONETZHTML_PARSE_NOIMPLIEDZHTML_PARSE_COMPACTZHTML_PARSE_IGNORE_ENCZXLINK_ACTUATE_NONEZXLINK_ACTUATE_AUTOZXLINK_ACTUATE_ONREQUESTZXLINK_SHOW_NONEZXLINK_SHOW_NEWZXLINK_SHOW_EMBEDZXLINK_SHOW_REPLACEZXLINK_TYPE_NONEZXLINK_TYPE_SIMPLEZXLINK_TYPE_EXTENDEDZXLINK_TYPE_EXTENDED_SETZXML_ATTRIBUTE_CDATAZXML_ATTRIBUTE_IDZXML_ATTRIBUTE_IDREFZXML_ATTRIBUTE_IDREFSZXML_ATTRIBUTE_ENTITYZXML_ATTRIBUTE_ENTITIESZXML_ATTRIBUTE_NMTOKENZXML_ATTRIBUTE_NMTOKENSZXML_ATTRIBUTE_ENUMERATIONZXML_ATTRIBUTE_NOTATIONZXML_ELEMENT_NODEZXML_ATTRIBUTE_NODEZ XML_TEXT_NODEZXML_CDATA_SECTION_NODEZXML_ENTITY_REF_NODEZXML_ENTITY_NODEZXML_PI_NODEZXML_COMMENT_NODEZXML_DOCUMENT_NODEZXML_DOCUMENT_TYPE_NODEZXML_DOCUMENT_FRAG_NODEZXML_NOTATION_NODEZXML_HTML_DOCUMENT_NODEZXML_DTD_NODEZXML_ELEMENT_DECLZXML_ATTRIBUTE_DECLZXML_ENTITY_DECLZXML_NAMESPACE_DECLZXML_XINCLUDE_STARTZXML_XINCLUDE_ENDZXML_DOCB_DOCUMENT_NODEZXML_ATTRIBUTE_NONEZXML_ATTRIBUTE_REQUIREDZXML_ATTRIBUTE_IMPLIEDZXML_ATTRIBUTE_FIXEDZXML_BUFFER_ALLOC_DOUBLEITZXML_BUFFER_ALLOC_EXACTZXML_BUFFER_ALLOC_IMMUTABLEZXML_BUFFER_ALLOC_IOZXML_BUFFER_ALLOC_HYBRIDZXML_BUFFER_ALLOC_BOUNDEDZ XML_ERR_OKZXML_ERR_INTERNAL_ERRORZXML_ERR_NO_MEMORYZXML_ERR_DOCUMENT_STARTZXML_ERR_DOCUMENT_EMPTYZXML_ERR_DOCUMENT_ENDZXML_ERR_INVALID_HEX_CHARREFZXML_ERR_INVALID_DEC_CHARREFZXML_ERR_INVALID_CHARREFZXML_ERR_INVALID_CHARZXML_ERR_CHARREF_AT_EOFZXML_ERR_CHARREF_IN_PROLOGZXML_ERR_CHARREF_IN_EPILOGZXML_ERR_CHARREF_IN_DTDZXML_ERR_ENTITYREF_AT_EOFZXML_ERR_ENTITYREF_IN_PROLOGZXML_ERR_ENTITYREF_IN_EPILOGZXML_ERR_ENTITYREF_IN_DTDZXML_ERR_PEREF_AT_EOFZXML_ERR_PEREF_IN_PROLOGZXML_ERR_PEREF_IN_EPILOGZXML_ERR_PEREF_IN_INT_SUBSETZXML_ERR_ENTITYREF_NO_NAMEZ!XML_ERR_ENTITYREF_SEMICOL_MISSINGZXML_ERR_PEREF_NO_NAMEZXML_ERR_PEREF_SEMICOL_MISSINGZXML_ERR_UNDECLARED_ENTITYZXML_WAR_UNDECLARED_ENTITYZXML_ERR_UNPARSED_ENTITYZXML_ERR_ENTITY_IS_EXTERNALZXML_ERR_ENTITY_IS_PARAMETERZXML_ERR_UNKNOWN_ENCODINGZXML_ERR_UNSUPPORTED_ENCODINGZXML_ERR_STRING_NOT_STARTEDZXML_ERR_STRING_NOT_CLOSEDZXML_ERR_NS_DECL_ERRORZXML_ERR_ENTITY_NOT_STARTEDZXML_ERR_ENTITY_NOT_FINISHEDZXML_ERR_LT_IN_ATTRIBUTEZXML_ERR_ATTRIBUTE_NOT_STARTEDZXML_ERR_ATTRIBUTE_NOT_FINISHEDZXML_ERR_ATTRIBUTE_WITHOUT_VALUEZXML_ERR_ATTRIBUTE_REDEFINEDZXML_ERR_LITERAL_NOT_STARTEDZXML_ERR_LITERAL_NOT_FINISHEDZXML_ERR_COMMENT_NOT_FINISHEDZXML_ERR_PI_NOT_STARTEDZXML_ERR_PI_NOT_FINISHEDZXML_ERR_NOTATION_NOT_STARTEDZXML_ERR_NOTATION_NOT_FINISHEDZXML_ERR_ATTLIST_NOT_STARTEDZXML_ERR_ATTLIST_NOT_FINISHEDZXML_ERR_MIXED_NOT_STARTEDZXML_ERR_MIXED_NOT_FINISHEDZXML_ERR_ELEMCONTENT_NOT_STARTEDZ XML_ERR_ELEMCONTENT_NOT_FINISHEDZXML_ERR_XMLDECL_NOT_STARTEDZXML_ERR_XMLDECL_NOT_FINISHEDZXML_ERR_CONDSEC_NOT_STARTEDZXML_ERR_CONDSEC_NOT_FINISHEDZXML_ERR_EXT_SUBSET_NOT_FINISHEDZXML_ERR_DOCTYPE_NOT_FINISHEDZXML_ERR_MISPLACED_CDATA_ENDZXML_ERR_CDATA_NOT_FINISHEDZXML_ERR_RESERVED_XML_NAMEZXML_ERR_SPACE_REQUIREDZXML_ERR_SEPARATOR_REQUIREDZXML_ERR_NMTOKEN_REQUIREDZXML_ERR_NAME_REQUIREDZXML_ERR_PCDATA_REQUIREDZXML_ERR_URI_REQUIREDZXML_ERR_PUBID_REQUIREDZXML_ERR_LT_REQUIREDZXML_ERR_GT_REQUIREDZXML_ERR_LTSLASH_REQUIREDZXML_ERR_EQUAL_REQUIREDZXML_ERR_TAG_NAME_MISMATCHZXML_ERR_TAG_NOT_FINISHEDZXML_ERR_STANDALONE_VALUEZXML_ERR_ENCODING_NAMEZXML_ERR_HYPHEN_IN_COMMENTZXML_ERR_INVALID_ENCODINGZXML_ERR_EXT_ENTITY_STANDALONEZXML_ERR_CONDSEC_INVALIDZXML_ERR_VALUE_REQUIREDZXML_ERR_NOT_WELL_BALANCEDZXML_ERR_EXTRA_CONTENTZXML_ERR_ENTITY_CHAR_ERRORZXML_ERR_ENTITY_PE_INTERNALZXML_ERR_ENTITY_LOOPZXML_ERR_ENTITY_BOUNDARYZXML_ERR_INVALID_URIZXML_ERR_URI_FRAGMENTZXML_WAR_CATALOG_PIZXML_ERR_NO_DTDZXML_ERR_CONDSEC_INVALID_KEYWORDZXML_ERR_VERSION_MISSINGZXML_WAR_UNKNOWN_VERSIONZXML_WAR_LANG_VALUEZXML_WAR_NS_URIZXML_WAR_NS_URI_RELATIVEZXML_ERR_MISSING_ENCODINGZXML_WAR_SPACE_VALUEZXML_ERR_NOT_STANDALONEZXML_ERR_ENTITY_PROCESSINGZXML_ERR_NOTATION_PROCESSINGZXML_WAR_NS_COLUMNZXML_WAR_ENTITY_REDEFINEDZXML_ERR_UNKNOWN_VERSIONZXML_ERR_VERSION_MISMATCHZXML_ERR_NAME_TOO_LONGZXML_ERR_USER_STOPZXML_NS_ERR_XML_NAMESPACEZXML_NS_ERR_UNDEFINED_NAMESPACEZXML_NS_ERR_QNAMEZXML_NS_ERR_ATTRIBUTE_REDEFINEDZXML_NS_ERR_EMPTYZXML_NS_ERR_COLONZXML_DTD_ATTRIBUTE_DEFAULTZXML_DTD_ATTRIBUTE_REDEFINEDZXML_DTD_ATTRIBUTE_VALUEZXML_DTD_CONTENT_ERRORZXML_DTD_CONTENT_MODELZXML_DTD_CONTENT_NOT_DETERMINISTZXML_DTD_DIFFERENT_PREFIXZXML_DTD_ELEM_DEFAULT_NAMESPACEZXML_DTD_ELEM_NAMESPACEZXML_DTD_ELEM_REDEFINEDZXML_DTD_EMPTY_NOTATIONZXML_DTD_ENTITY_TYPEZXML_DTD_ID_FIXEDZXML_DTD_ID_REDEFINEDZXML_DTD_ID_SUBSETZXML_DTD_INVALID_CHILDZXML_DTD_INVALID_DEFAULTZXML_DTD_LOAD_ERRORZXML_DTD_MISSING_ATTRIBUTEZXML_DTD_MIXED_CORRUPTZXML_DTD_MULTIPLE_IDZXML_DTD_NO_DOCZXML_DTD_NO_DTDZXML_DTD_NO_ELEM_NAMEZXML_DTD_NO_PREFIXZXML_DTD_NO_ROOTZXML_DTD_NOTATION_REDEFINEDZXML_DTD_NOTATION_VALUEZXML_DTD_NOT_EMPTYZXML_DTD_NOT_PCDATAZXML_DTD_NOT_STANDALONEZXML_DTD_ROOT_NAMEZXML_DTD_STANDALONE_WHITE_SPACEZXML_DTD_UNKNOWN_ATTRIBUTEZXML_DTD_UNKNOWN_ELEMZXML_DTD_UNKNOWN_ENTITYZXML_DTD_UNKNOWN_IDZXML_DTD_UNKNOWN_NOTATIONZXML_DTD_STANDALONE_DEFAULTEDZXML_DTD_XMLID_VALUEZXML_DTD_XMLID_TYPEZXML_DTD_DUP_TOKENZXML_HTML_STRUCURE_ERRORZXML_HTML_UNKNOWN_TAGZXML_RNGP_ANYNAME_ATTR_ANCESTORZXML_RNGP_ATTR_CONFLICTZXML_RNGP_ATTRIBUTE_CHILDRENZXML_RNGP_ATTRIBUTE_CONTENTZXML_RNGP_ATTRIBUTE_EMPTYZXML_RNGP_ATTRIBUTE_NOOPZXML_RNGP_CHOICE_CONTENTZXML_RNGP_CHOICE_EMPTYZXML_RNGP_CREATE_FAILUREZXML_RNGP_DATA_CONTENTZ"XML_RNGP_DEF_CHOICE_AND_INTERLEAVEZXML_RNGP_DEFINE_CREATE_FAILEDZXML_RNGP_DEFINE_EMPTYZXML_RNGP_DEFINE_MISSINGZXML_RNGP_DEFINE_NAME_MISSINGZXML_RNGP_ELEM_CONTENT_EMPTYZXML_RNGP_ELEM_CONTENT_ERRORZXML_RNGP_ELEMENT_EMPTYZXML_RNGP_ELEMENT_CONTENTZXML_RNGP_ELEMENT_NAMEZXML_RNGP_ELEMENT_NO_CONTENTZXML_RNGP_ELEM_TEXT_CONFLICTZXML_RNGP_EMPTYZXML_RNGP_EMPTY_CONSTRUCTZXML_RNGP_EMPTY_CONTENTZXML_RNGP_EMPTY_NOT_EMPTYZXML_RNGP_ERROR_TYPE_LIBZXML_RNGP_EXCEPT_EMPTYZXML_RNGP_EXCEPT_MISSINGZXML_RNGP_EXCEPT_MULTIPLEZXML_RNGP_EXCEPT_NO_CONTENTZXML_RNGP_EXTERNALREF_EMTPYZXML_RNGP_EXTERNAL_REF_FAILUREZXML_RNGP_EXTERNALREF_RECURSEZXML_RNGP_FORBIDDEN_ATTRIBUTEZXML_RNGP_FOREIGN_ELEMENTZXML_RNGP_GRAMMAR_CONTENTZXML_RNGP_GRAMMAR_EMPTYZXML_RNGP_GRAMMAR_MISSINGZXML_RNGP_GRAMMAR_NO_STARTZXML_RNGP_GROUP_ATTR_CONFLICTZXML_RNGP_HREF_ERRORZXML_RNGP_INCLUDE_EMPTYZXML_RNGP_INCLUDE_FAILUREZXML_RNGP_INCLUDE_RECURSEZXML_RNGP_INTERLEAVE_ADDZ!XML_RNGP_INTERLEAVE_CREATE_FAILEDZXML_RNGP_INTERLEAVE_EMPTYZXML_RNGP_INTERLEAVE_NO_CONTENTZXML_RNGP_INVALID_DEFINE_NAMEZXML_RNGP_INVALID_URIZXML_RNGP_INVALID_VALUEZXML_RNGP_MISSING_HREFZXML_RNGP_NAME_MISSINGZXML_RNGP_NEED_COMBINEZXML_RNGP_NOTALLOWED_NOT_EMPTYZXML_RNGP_NSNAME_ATTR_ANCESTORZXML_RNGP_NSNAME_NO_NSZXML_RNGP_PARAM_FORBIDDENZXML_RNGP_PARAM_NAME_MISSINGZ XML_RNGP_PARENTREF_CREATE_FAILEDZXML_RNGP_PARENTREF_NAME_INVALIDZXML_RNGP_PARENTREF_NO_NAMEZXML_RNGP_PARENTREF_NO_PARENTZXML_RNGP_PARENTREF_NOT_EMPTYZXML_RNGP_PARSE_ERRORZ#XML_RNGP_PAT_ANYNAME_EXCEPT_ANYNAMEZXML_RNGP_PAT_ATTR_ATTRZXML_RNGP_PAT_ATTR_ELEMZXML_RNGP_PAT_DATA_EXCEPT_ATTRZXML_RNGP_PAT_DATA_EXCEPT_ELEMZXML_RNGP_PAT_DATA_EXCEPT_EMPTYZXML_RNGP_PAT_DATA_EXCEPT_GROUPZ#XML_RNGP_PAT_DATA_EXCEPT_INTERLEAVEZXML_RNGP_PAT_DATA_EXCEPT_LISTZ XML_RNGP_PAT_DATA_EXCEPT_ONEMOREZXML_RNGP_PAT_DATA_EXCEPT_REFZXML_RNGP_PAT_DATA_EXCEPT_TEXTZXML_RNGP_PAT_LIST_ATTRZXML_RNGP_PAT_LIST_ELEMZXML_RNGP_PAT_LIST_INTERLEAVEZXML_RNGP_PAT_LIST_LISTZXML_RNGP_PAT_LIST_REFZXML_RNGP_PAT_LIST_TEXTZ"XML_RNGP_PAT_NSNAME_EXCEPT_ANYNAMEZ!XML_RNGP_PAT_NSNAME_EXCEPT_NSNAMEZXML_RNGP_PAT_ONEMORE_GROUP_ATTRZ$XML_RNGP_PAT_ONEMORE_INTERLEAVE_ATTRZXML_RNGP_PAT_START_ATTRZXML_RNGP_PAT_START_DATAZXML_RNGP_PAT_START_EMPTYZXML_RNGP_PAT_START_GROUPZXML_RNGP_PAT_START_INTERLEAVEZXML_RNGP_PAT_START_LISTZXML_RNGP_PAT_START_ONEMOREZXML_RNGP_PAT_START_TEXTZXML_RNGP_PAT_START_VALUEZXML_RNGP_PREFIX_UNDEFINEDZXML_RNGP_REF_CREATE_FAILEDZXML_RNGP_REF_CYCLEZXML_RNGP_REF_NAME_INVALIDZXML_RNGP_REF_NO_DEFZXML_RNGP_REF_NO_NAMEZXML_RNGP_REF_NOT_EMPTYZ$XML_RNGP_START_CHOICE_AND_INTERLEAVEZXML_RNGP_START_CONTENTZXML_RNGP_START_EMPTYZXML_RNGP_START_MISSINGZXML_RNGP_TEXT_EXPECTEDZXML_RNGP_TEXT_HAS_CHILDZXML_RNGP_TYPE_MISSINGZXML_RNGP_TYPE_NOT_FOUNDZXML_RNGP_TYPE_VALUEZXML_RNGP_UNKNOWN_ATTRIBUTEZXML_RNGP_UNKNOWN_COMBINEZXML_RNGP_UNKNOWN_CONSTRUCTZXML_RNGP_UNKNOWN_TYPE_LIBZXML_RNGP_URI_FRAGMENTZXML_RNGP_URI_NOT_ABSOLUTEZXML_RNGP_VALUE_EMPTYZXML_RNGP_VALUE_NO_CONTENTZXML_RNGP_XMLNS_NAMEZXML_RNGP_XML_NSZXML_XPATH_EXPRESSION_OKZXML_XPATH_NUMBER_ERRORZ"XML_XPATH_UNFINISHED_LITERAL_ERRORZXML_XPATH_START_LITERAL_ERRORZXML_XPATH_VARIABLE_REF_ERRORZXML_XPATH_UNDEF_VARIABLE_ERRORZ!XML_XPATH_INVALID_PREDICATE_ERRORZXML_XPATH_EXPR_ERRORZXML_XPATH_UNCLOSED_ERRORZXML_XPATH_UNKNOWN_FUNC_ERRORZXML_XPATH_INVALID_OPERANDZXML_XPATH_INVALID_TYPEZXML_XPATH_INVALID_ARITYZXML_XPATH_INVALID_CTXT_SIZEZXML_XPATH_INVALID_CTXT_POSITIONZXML_XPATH_MEMORY_ERRORZXML_XPTR_SYNTAX_ERRORZXML_XPTR_RESOURCE_ERRORZXML_XPTR_SUB_RESOURCE_ERRORZXML_XPATH_UNDEF_PREFIX_ERRORZXML_XPATH_ENCODING_ERRORZXML_XPATH_INVALID_CHAR_ERRORZXML_TREE_INVALID_HEXZXML_TREE_INVALID_DECZXML_TREE_UNTERMINATED_ENTITYZXML_TREE_NOT_UTF8ZXML_SAVE_NOT_UTF8ZXML_SAVE_CHAR_INVALIDZXML_SAVE_NO_DOCTYPEZXML_SAVE_UNKNOWN_ENCODINGZXML_REGEXP_COMPILE_ERRORZXML_IO_UNKNOWNZ XML_IO_EACCESZ XML_IO_EAGAINZXML_IO_EBADFZXML_IO_EBADMSGZXML_IO_EBUSYZXML_IO_ECANCELEDZ XML_IO_ECHILDZXML_IO_EDEADLKZXML_IO_EDOMZ XML_IO_EEXISTZ XML_IO_EFAULTZXML_IO_EFBIGZXML_IO_EINPROGRESSZXML_IO_EINTRZ XML_IO_EINVALZ XML_IO_EIOZ XML_IO_EISDIRZ XML_IO_EMFILEZ XML_IO_EMLINKZXML_IO_EMSGSIZEZXML_IO_ENAMETOOLONGZ XML_IO_ENFILEZ XML_IO_ENODEVZ XML_IO_ENOENTZXML_IO_ENOEXECZ XML_IO_ENOLCKZ XML_IO_ENOMEMZ XML_IO_ENOSPCZ XML_IO_ENOSYSZXML_IO_ENOTDIRZXML_IO_ENOTEMPTYZXML_IO_ENOTSUPZ XML_IO_ENOTTYZXML_IO_ENXIOZXML_IO_EPERMZXML_IO_EPIPEZ XML_IO_ERANGEZXML_IO_EROFSZ XML_IO_ESPIPEZXML_IO_ESRCHZXML_IO_ETIMEDOUTZXML_IO_EXDEVZXML_IO_NETWORK_ATTEMPTZXML_IO_ENCODERZXML_IO_FLUSHZXML_IO_WRITEZXML_IO_NO_INPUTZXML_IO_BUFFER_FULLZXML_IO_LOAD_ERRORZXML_IO_ENOTSOCKZXML_IO_EISCONNZXML_IO_ECONNREFUSEDZXML_IO_ENETUNREACHZXML_IO_EADDRINUSEZXML_IO_EALREADYZXML_IO_EAFNOSUPPORTZXML_XINCLUDE_RECURSIONZXML_XINCLUDE_PARSE_VALUEZ XML_XINCLUDE_ENTITY_DEF_MISMATCHZXML_XINCLUDE_NO_HREFZXML_XINCLUDE_NO_FALLBACKZXML_XINCLUDE_HREF_URIZXML_XINCLUDE_TEXT_FRAGMENTZXML_XINCLUDE_TEXT_DOCUMENTZXML_XINCLUDE_INVALID_CHARZXML_XINCLUDE_BUILD_FAILEDZXML_XINCLUDE_UNKNOWN_ENCODINGZXML_XINCLUDE_MULTIPLE_ROOTZXML_XINCLUDE_XPTR_FAILEDZXML_XINCLUDE_XPTR_RESULTZXML_XINCLUDE_INCLUDE_IN_INCLUDEZ!XML_XINCLUDE_FALLBACKS_IN_INCLUDEZ$XML_XINCLUDE_FALLBACK_NOT_IN_INCLUDEZXML_XINCLUDE_DEPRECATED_NSZXML_XINCLUDE_FRAGMENT_IDZXML_CATALOG_MISSING_ATTRZXML_CATALOG_ENTRY_BROKENZXML_CATALOG_PREFER_VALUEZXML_CATALOG_NOT_CATALOGZXML_CATALOG_RECURSIONZXML_SCHEMAP_PREFIX_UNDEFINEDZ!XML_SCHEMAP_ATTRFORMDEFAULT_VALUEZ XML_SCHEMAP_ATTRGRP_NONAME_NOREFZXML_SCHEMAP_ATTR_NONAME_NOREFZ$XML_SCHEMAP_COMPLEXTYPE_NONAME_NOREFZ!XML_SCHEMAP_ELEMFORMDEFAULT_VALUEZXML_SCHEMAP_ELEM_NONAME_NOREFZXML_SCHEMAP_EXTENSION_NO_BASEZXML_SCHEMAP_FACET_NO_VALUEZXML_SCHEMAP_FAILED_BUILD_IMPORTZXML_SCHEMAP_GROUP_NONAME_NOREFZ$XML_SCHEMAP_IMPORT_NAMESPACE_NOT_URIZ"XML_SCHEMAP_IMPORT_REDEFINE_NSNAMEZ!XML_SCHEMAP_IMPORT_SCHEMA_NOT_URIZXML_SCHEMAP_INVALID_BOOLEANZXML_SCHEMAP_INVALID_ENUMZXML_SCHEMAP_INVALID_FACETZXML_SCHEMAP_INVALID_FACET_VALUEZXML_SCHEMAP_INVALID_MAXOCCURSZXML_SCHEMAP_INVALID_MINOCCURSZ#XML_SCHEMAP_INVALID_REF_AND_SUBTYPEZXML_SCHEMAP_INVALID_WHITE_SPACEZXML_SCHEMAP_NOATTR_NOREFZXML_SCHEMAP_NOTATION_NO_NAMEZXML_SCHEMAP_NOTYPE_NOREFZXML_SCHEMAP_REF_AND_SUBTYPEZ$XML_SCHEMAP_RESTRICTION_NONAME_NOREFZXML_SCHEMAP_SIMPLETYPE_NONAMEZXML_SCHEMAP_TYPE_AND_SUBTYPEZXML_SCHEMAP_UNKNOWN_ALL_CHILDZ&XML_SCHEMAP_UNKNOWN_ANYATTRIBUTE_CHILDZXML_SCHEMAP_UNKNOWN_ATTR_CHILDZ!XML_SCHEMAP_UNKNOWN_ATTRGRP_CHILDZ#XML_SCHEMAP_UNKNOWN_ATTRIBUTE_GROUPZXML_SCHEMAP_UNKNOWN_BASE_TYPEZ XML_SCHEMAP_UNKNOWN_CHOICE_CHILDZ(XML_SCHEMAP_UNKNOWN_COMPLEXCONTENT_CHILDZ%XML_SCHEMAP_UNKNOWN_COMPLEXTYPE_CHILDZXML_SCHEMAP_UNKNOWN_ELEM_CHILDZ#XML_SCHEMAP_UNKNOWN_EXTENSION_CHILDZXML_SCHEMAP_UNKNOWN_FACET_CHILDZXML_SCHEMAP_UNKNOWN_FACET_TYPEZXML_SCHEMAP_UNKNOWN_GROUP_CHILDZ XML_SCHEMAP_UNKNOWN_IMPORT_CHILDZXML_SCHEMAP_UNKNOWN_LIST_CHILDZ"XML_SCHEMAP_UNKNOWN_NOTATION_CHILDZ(XML_SCHEMAP_UNKNOWN_PROCESSCONTENT_CHILDZXML_SCHEMAP_UNKNOWN_REFZ%XML_SCHEMAP_UNKNOWN_RESTRICTION_CHILDZ!XML_SCHEMAP_UNKNOWN_SCHEMAS_CHILDZ"XML_SCHEMAP_UNKNOWN_SEQUENCE_CHILDZ'XML_SCHEMAP_UNKNOWN_SIMPLECONTENT_CHILDZ$XML_SCHEMAP_UNKNOWN_SIMPLETYPE_CHILDZXML_SCHEMAP_UNKNOWN_TYPEZXML_SCHEMAP_UNKNOWN_UNION_CHILDZXML_SCHEMAP_ELEM_DEFAULT_FIXEDZXML_SCHEMAP_REGEXP_INVALIDZXML_SCHEMAP_FAILED_LOADZXML_SCHEMAP_NOTHING_TO_PARSEZXML_SCHEMAP_NOROOTZXML_SCHEMAP_REDEFINED_GROUPZXML_SCHEMAP_REDEFINED_TYPEZXML_SCHEMAP_REDEFINED_ELEMENTZXML_SCHEMAP_REDEFINED_ATTRGROUPZXML_SCHEMAP_REDEFINED_ATTRZXML_SCHEMAP_REDEFINED_NOTATIONZXML_SCHEMAP_FAILED_PARSEZXML_SCHEMAP_UNKNOWN_PREFIXZXML_SCHEMAP_DEF_AND_PREFIXZ!XML_SCHEMAP_UNKNOWN_INCLUDE_CHILDZ"XML_SCHEMAP_INCLUDE_SCHEMA_NOT_URIZ!XML_SCHEMAP_INCLUDE_SCHEMA_NO_URIZXML_SCHEMAP_NOT_SCHEMAZXML_SCHEMAP_UNKNOWN_MEMBER_TYPEZXML_SCHEMAP_INVALID_ATTR_USEZXML_SCHEMAP_RECURSIVEZ(XML_SCHEMAP_SUPERNUMEROUS_LIST_ITEM_TYPEZ$XML_SCHEMAP_INVALID_ATTR_COMBINATIONZ+XML_SCHEMAP_INVALID_ATTR_INLINE_COMBINATIONZ$XML_SCHEMAP_MISSING_SIMPLETYPE_CHILDZXML_SCHEMAP_INVALID_ATTR_NAMEZXML_SCHEMAP_REF_AND_CONTENTZXML_SCHEMAP_CT_PROPS_CORRECT_1ZXML_SCHEMAP_CT_PROPS_CORRECT_2ZXML_SCHEMAP_CT_PROPS_CORRECT_3ZXML_SCHEMAP_CT_PROPS_CORRECT_4ZXML_SCHEMAP_CT_PROPS_CORRECT_5Z'XML_SCHEMAP_DERIVATION_OK_RESTRICTION_1Z+XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_1Z+XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_2Z)XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_2Z'XML_SCHEMAP_DERIVATION_OK_RESTRICTION_3Z&XML_SCHEMAP_WILDCARD_INVALID_NS_MEMBERZ(XML_SCHEMAP_INTERSECTION_NOT_EXPRESSIBLEZ!XML_SCHEMAP_UNION_NOT_EXPRESSIBLEZXML_SCHEMAP_SRC_IMPORT_3_1ZXML_SCHEMAP_SRC_IMPORT_3_2Z)XML_SCHEMAP_DERIVATION_OK_RESTRICTION_4_1Z)XML_SCHEMAP_DERIVATION_OK_RESTRICTION_4_2Z)XML_SCHEMAP_DERIVATION_OK_RESTRICTION_4_3ZXML_SCHEMAP_COS_CT_EXTENDS_1_3ZXML_SCHEMAV_NOROOTZXML_SCHEMAV_UNDECLAREDELEMZXML_SCHEMAV_NOTTOPLEVELZXML_SCHEMAV_MISSINGZXML_SCHEMAV_WRONGELEMZXML_SCHEMAV_NOTYPEZXML_SCHEMAV_NOROLLBACKZXML_SCHEMAV_ISABSTRACTZXML_SCHEMAV_NOTEMPTYZXML_SCHEMAV_ELEMCONTZXML_SCHEMAV_HAVEDEFAULTZXML_SCHEMAV_NOTNILLABLEZXML_SCHEMAV_EXTRACONTENTZXML_SCHEMAV_INVALIDATTRZXML_SCHEMAV_INVALIDELEMZXML_SCHEMAV_NOTDETERMINISTZXML_SCHEMAV_CONSTRUCTZXML_SCHEMAV_INTERNALZXML_SCHEMAV_NOTSIMPLEZXML_SCHEMAV_ATTRUNKNOWNZXML_SCHEMAV_ATTRINVALIDZXML_SCHEMAV_VALUEZXML_SCHEMAV_FACETZ$XML_SCHEMAV_CVC_DATATYPE_VALID_1_2_1Z$XML_SCHEMAV_CVC_DATATYPE_VALID_1_2_2Z$XML_SCHEMAV_CVC_DATATYPE_VALID_1_2_3ZXML_SCHEMAV_CVC_TYPE_3_1_1ZXML_SCHEMAV_CVC_TYPE_3_1_2ZXML_SCHEMAV_CVC_FACET_VALIDZXML_SCHEMAV_CVC_LENGTH_VALIDZXML_SCHEMAV_CVC_MINLENGTH_VALIDZXML_SCHEMAV_CVC_MAXLENGTH_VALIDZ"XML_SCHEMAV_CVC_MININCLUSIVE_VALIDZ"XML_SCHEMAV_CVC_MAXINCLUSIVE_VALIDZ"XML_SCHEMAV_CVC_MINEXCLUSIVE_VALIDZ"XML_SCHEMAV_CVC_MAXEXCLUSIVE_VALIDZ!XML_SCHEMAV_CVC_TOTALDIGITS_VALIDZ$XML_SCHEMAV_CVC_FRACTIONDIGITS_VALIDZXML_SCHEMAV_CVC_PATTERN_VALIDZ!XML_SCHEMAV_CVC_ENUMERATION_VALIDZ XML_SCHEMAV_CVC_COMPLEX_TYPE_2_1Z XML_SCHEMAV_CVC_COMPLEX_TYPE_2_2Z XML_SCHEMAV_CVC_COMPLEX_TYPE_2_3Z XML_SCHEMAV_CVC_COMPLEX_TYPE_2_4ZXML_SCHEMAV_CVC_ELT_1ZXML_SCHEMAV_CVC_ELT_2ZXML_SCHEMAV_CVC_ELT_3_1ZXML_SCHEMAV_CVC_ELT_3_2_1ZXML_SCHEMAV_CVC_ELT_3_2_2ZXML_SCHEMAV_CVC_ELT_4_1ZXML_SCHEMAV_CVC_ELT_4_2ZXML_SCHEMAV_CVC_ELT_4_3ZXML_SCHEMAV_CVC_ELT_5_1_1ZXML_SCHEMAV_CVC_ELT_5_1_2ZXML_SCHEMAV_CVC_ELT_5_2_1ZXML_SCHEMAV_CVC_ELT_5_2_2_1ZXML_SCHEMAV_CVC_ELT_5_2_2_2_1ZXML_SCHEMAV_CVC_ELT_5_2_2_2_2ZXML_SCHEMAV_CVC_ELT_6ZXML_SCHEMAV_CVC_ELT_7ZXML_SCHEMAV_CVC_ATTRIBUTE_1ZXML_SCHEMAV_CVC_ATTRIBUTE_2ZXML_SCHEMAV_CVC_ATTRIBUTE_3ZXML_SCHEMAV_CVC_ATTRIBUTE_4Z XML_SCHEMAV_CVC_COMPLEX_TYPE_3_1Z"XML_SCHEMAV_CVC_COMPLEX_TYPE_3_2_1Z"XML_SCHEMAV_CVC_COMPLEX_TYPE_3_2_2ZXML_SCHEMAV_CVC_COMPLEX_TYPE_4Z XML_SCHEMAV_CVC_COMPLEX_TYPE_5_1Z XML_SCHEMAV_CVC_COMPLEX_TYPE_5_2ZXML_SCHEMAV_ELEMENT_CONTENTZ$XML_SCHEMAV_DOCUMENT_ELEMENT_MISSINGZXML_SCHEMAV_CVC_COMPLEX_TYPE_1ZXML_SCHEMAV_CVC_AUZXML_SCHEMAV_CVC_TYPE_1ZXML_SCHEMAV_CVC_TYPE_2ZXML_SCHEMAV_CVC_IDCZXML_SCHEMAV_CVC_WILDCARDZXML_SCHEMAV_MISCZXML_XPTR_UNKNOWN_SCHEMEZXML_XPTR_CHILDSEQ_STARTZXML_XPTR_EVAL_FAILEDZXML_XPTR_EXTRA_OBJECTSZXML_C14N_CREATE_CTXTZXML_C14N_REQUIRES_UTF8ZXML_C14N_CREATE_STACKZXML_C14N_INVALID_NODEZXML_C14N_UNKNOW_NODEZXML_C14N_RELATIVE_NAMESPACEZXML_FTP_PASV_ANSWERZXML_FTP_EPSV_ANSWERZ XML_FTP_ACCNTZXML_FTP_URL_SYNTAXZXML_HTTP_URL_SYNTAXZXML_HTTP_USE_IPZXML_HTTP_UNKNOWN_HOSTZXML_SCHEMAP_SRC_SIMPLE_TYPE_1ZXML_SCHEMAP_SRC_SIMPLE_TYPE_2ZXML_SCHEMAP_SRC_SIMPLE_TYPE_3ZXML_SCHEMAP_SRC_SIMPLE_TYPE_4ZXML_SCHEMAP_SRC_RESOLVEZ.XML_SCHEMAP_SRC_RESTRICTION_BASE_OR_SIMPLETYPEZ+XML_SCHEMAP_SRC_LIST_ITEMTYPE_OR_SIMPLETYPEZ0XML_SCHEMAP_SRC_UNION_MEMBERTYPES_OR_SIMPLETYPESZXML_SCHEMAP_ST_PROPS_CORRECT_1ZXML_SCHEMAP_ST_PROPS_CORRECT_2ZXML_SCHEMAP_ST_PROPS_CORRECT_3Z XML_SCHEMAP_COS_ST_RESTRICTS_1_1Z XML_SCHEMAP_COS_ST_RESTRICTS_1_2Z"XML_SCHEMAP_COS_ST_RESTRICTS_1_3_1Z"XML_SCHEMAP_COS_ST_RESTRICTS_1_3_2Z XML_SCHEMAP_COS_ST_RESTRICTS_2_1Z$XML_SCHEMAP_COS_ST_RESTRICTS_2_3_1_1Z$XML_SCHEMAP_COS_ST_RESTRICTS_2_3_1_2Z$XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_1Z$XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_2Z$XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_3Z$XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_4Z$XML_SCHEMAP_COS_ST_RESTRICTS_2_3_2_5Z XML_SCHEMAP_COS_ST_RESTRICTS_3_1Z"XML_SCHEMAP_COS_ST_RESTRICTS_3_3_1Z$XML_SCHEMAP_COS_ST_RESTRICTS_3_3_1_2Z$XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_2Z$XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_1Z$XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_3Z$XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_4Z$XML_SCHEMAP_COS_ST_RESTRICTS_3_3_2_5Z!XML_SCHEMAP_COS_ST_DERIVED_OK_2_1Z!XML_SCHEMAP_COS_ST_DERIVED_OK_2_2Z XML_SCHEMAP_S4S_ELEM_NOT_ALLOWEDZXML_SCHEMAP_S4S_ELEM_MISSINGZ XML_SCHEMAP_S4S_ATTR_NOT_ALLOWEDZXML_SCHEMAP_S4S_ATTR_MISSINGZ"XML_SCHEMAP_S4S_ATTR_INVALID_VALUEZXML_SCHEMAP_SRC_ELEMENT_1ZXML_SCHEMAP_SRC_ELEMENT_2_1ZXML_SCHEMAP_SRC_ELEMENT_2_2ZXML_SCHEMAP_SRC_ELEMENT_3ZXML_SCHEMAP_P_PROPS_CORRECT_1ZXML_SCHEMAP_P_PROPS_CORRECT_2_1ZXML_SCHEMAP_P_PROPS_CORRECT_2_2ZXML_SCHEMAP_E_PROPS_CORRECT_2ZXML_SCHEMAP_E_PROPS_CORRECT_3ZXML_SCHEMAP_E_PROPS_CORRECT_4ZXML_SCHEMAP_E_PROPS_CORRECT_5ZXML_SCHEMAP_E_PROPS_CORRECT_6ZXML_SCHEMAP_SRC_INCLUDEZXML_SCHEMAP_SRC_ATTRIBUTE_1ZXML_SCHEMAP_SRC_ATTRIBUTE_2ZXML_SCHEMAP_SRC_ATTRIBUTE_3_1ZXML_SCHEMAP_SRC_ATTRIBUTE_3_2ZXML_SCHEMAP_SRC_ATTRIBUTE_4ZXML_SCHEMAP_NO_XMLNSZXML_SCHEMAP_NO_XSIZXML_SCHEMAP_COS_VALID_DEFAULT_1Z!XML_SCHEMAP_COS_VALID_DEFAULT_2_1Z#XML_SCHEMAP_COS_VALID_DEFAULT_2_2_1Z#XML_SCHEMAP_COS_VALID_DEFAULT_2_2_2ZXML_SCHEMAP_CVC_SIMPLE_TYPEZXML_SCHEMAP_COS_CT_EXTENDS_1_1ZXML_SCHEMAP_SRC_IMPORT_1_1ZXML_SCHEMAP_SRC_IMPORT_1_2ZXML_SCHEMAP_SRC_IMPORT_2ZXML_SCHEMAP_SRC_IMPORT_2_1ZXML_SCHEMAP_SRC_IMPORT_2_2ZXML_SCHEMAP_INTERNALZXML_SCHEMAP_NOT_DETERMINISTICZ!XML_SCHEMAP_SRC_ATTRIBUTE_GROUP_1Z!XML_SCHEMAP_SRC_ATTRIBUTE_GROUP_2Z!XML_SCHEMAP_SRC_ATTRIBUTE_GROUP_3ZXML_SCHEMAP_MG_PROPS_CORRECT_1ZXML_SCHEMAP_MG_PROPS_CORRECT_2ZXML_SCHEMAP_SRC_CT_1Z+XML_SCHEMAP_DERIVATION_OK_RESTRICTION_2_1_3ZXML_SCHEMAP_AU_PROPS_CORRECT_2ZXML_SCHEMAP_A_PROPS_CORRECT_2ZXML_SCHEMAP_C_PROPS_CORRECTZXML_SCHEMAP_SRC_REDEFINEZXML_SCHEMAP_SRC_IMPORTZXML_SCHEMAP_WARN_SKIP_SCHEMAZ!XML_SCHEMAP_WARN_UNLOCATED_SCHEMAZ!XML_SCHEMAP_WARN_ATTR_REDECL_PROHZ$XML_SCHEMAP_WARN_ATTR_POINTLESS_PROHZXML_SCHEMAP_AG_PROPS_CORRECTZXML_SCHEMAP_COS_CT_EXTENDS_1_2ZXML_SCHEMAP_AU_PROPS_CORRECTZXML_SCHEMAP_A_PROPS_CORRECT_3ZXML_SCHEMAP_COS_ALL_LIMITEDZXML_SCHEMATRONV_ASSERTZXML_SCHEMATRONV_REPORTZXML_MODULE_OPENZXML_MODULE_CLOSEZXML_CHECK_FOUND_ELEMENTZXML_CHECK_FOUND_ATTRIBUTEZXML_CHECK_FOUND_TEXTZXML_CHECK_FOUND_CDATAZXML_CHECK_FOUND_ENTITYREFZXML_CHECK_FOUND_ENTITYZXML_CHECK_FOUND_PIZXML_CHECK_FOUND_COMMENTZXML_CHECK_FOUND_DOCTYPEZXML_CHECK_FOUND_FRAGMENTZXML_CHECK_FOUND_NOTATIONZXML_CHECK_UNKNOWN_NODEZXML_CHECK_ENTITY_TYPEZXML_CHECK_NO_PARENTZXML_CHECK_NO_DOCZXML_CHECK_NO_NAMEZXML_CHECK_NO_ELEMZXML_CHECK_WRONG_DOCZXML_CHECK_NO_PREVZXML_CHECK_WRONG_PREVZXML_CHECK_NO_NEXTZXML_CHECK_WRONG_NEXTZXML_CHECK_NOT_DTDZXML_CHECK_NOT_ATTRZXML_CHECK_NOT_ATTR_DECLZXML_CHECK_NOT_ELEM_DECLZXML_CHECK_NOT_ENTITY_DECLZXML_CHECK_NOT_NS_DECLZXML_CHECK_NO_HREFZXML_CHECK_WRONG_PARENTZXML_CHECK_NS_SCOPEZXML_CHECK_NS_ANCESTORZXML_CHECK_NOT_UTF8ZXML_CHECK_NO_DICTZXML_CHECK_NOT_NCNAMEZXML_CHECK_OUTSIDE_DICTZXML_CHECK_WRONG_NAMEZXML_CHECK_NAME_NOT_NULLZXML_I18N_NO_NAMEZXML_I18N_NO_HANDLERZXML_I18N_EXCESS_HANDLERZXML_I18N_CONV_FAILEDZXML_I18N_NO_OUTPUTZXML_BUF_OVERFLOWZXML_C14N_1_0ZXML_C14N_EXCLUSIVE_1_0ZXML_C14N_1_1ZXML_CATA_ALLOW_NONEZXML_CATA_ALLOW_GLOBALZXML_CATA_ALLOW_DOCUMENTZXML_CATA_ALLOW_ALLZXML_CATA_PREFER_NONEZXML_CATA_PREFER_PUBLICZXML_CATA_PREFER_SYSTEMZXML_CHAR_ENCODING_ERRORZXML_CHAR_ENCODING_NONEZXML_CHAR_ENCODING_UTF8ZXML_CHAR_ENCODING_UTF16LEZXML_CHAR_ENCODING_UTF16BEZXML_CHAR_ENCODING_UCS4LEZXML_CHAR_ENCODING_UCS4BEZXML_CHAR_ENCODING_EBCDICZXML_CHAR_ENCODING_UCS4_2143ZXML_CHAR_ENCODING_UCS4_3412ZXML_CHAR_ENCODING_UCS2ZXML_CHAR_ENCODING_8859_1ZXML_CHAR_ENCODING_8859_2ZXML_CHAR_ENCODING_8859_3ZXML_CHAR_ENCODING_8859_4ZXML_CHAR_ENCODING_8859_5ZXML_CHAR_ENCODING_8859_6ZXML_CHAR_ENCODING_8859_7ZXML_CHAR_ENCODING_8859_8ZXML_CHAR_ENCODING_8859_9ZXML_CHAR_ENCODING_2022_JPZXML_CHAR_ENCODING_SHIFT_JISZXML_CHAR_ENCODING_EUC_JPZXML_CHAR_ENCODING_ASCIIZXML_DOC_WELLFORMEDZXML_DOC_NSVALIDZ XML_DOC_OLD10ZXML_DOC_DTDVALIDZXML_DOC_XINCLUDEZXML_DOC_USERBUILTZXML_DOC_INTERNALZXML_DOC_HTMLZXML_ELEMENT_CONTENT_PCDATAZXML_ELEMENT_CONTENT_ELEMENTZXML_ELEMENT_CONTENT_SEQZXML_ELEMENT_CONTENT_ORZXML_ELEMENT_CONTENT_ONCEZXML_ELEMENT_CONTENT_OPTZXML_ELEMENT_CONTENT_MULTZXML_ELEMENT_CONTENT_PLUSZXML_ELEMENT_TYPE_UNDEFINEDZXML_ELEMENT_TYPE_EMPTYZXML_ELEMENT_TYPE_ANYZXML_ELEMENT_TYPE_MIXEDZXML_ELEMENT_TYPE_ELEMENTZXML_ERR_NONEZXML_ERR_WARNINGZ XML_ERR_ERRORZ XML_ERR_FATALZ XML_EXP_EMPTYZXML_EXP_FORBIDZXML_EXP_ATOMZXML_EXP_SEQZ XML_EXP_ORZ XML_EXP_COUNTZXML_INTERNAL_GENERAL_ENTITYZ"XML_EXTERNAL_GENERAL_PARSED_ENTITYZ$XML_EXTERNAL_GENERAL_UNPARSED_ENTITYZXML_INTERNAL_PARAMETER_ENTITYZXML_EXTERNAL_PARAMETER_ENTITYZXML_INTERNAL_PREDEFINED_ENTITYZ XML_FROM_NONEZXML_FROM_PARSERZ XML_FROM_TREEZXML_FROM_NAMESPACEZXML_FROM_DTDZ XML_FROM_HTMLZXML_FROM_MEMORYZXML_FROM_OUTPUTZXML_FROM_IOZXML_FROM_FTPZ XML_FROM_HTTPZXML_FROM_XINCLUDEZXML_FROM_XPATHZXML_FROM_XPOINTERZXML_FROM_REGEXPZXML_FROM_DATATYPEZXML_FROM_SCHEMASPZXML_FROM_SCHEMASVZXML_FROM_RELAXNGPZXML_FROM_RELAXNGVZXML_FROM_CATALOGZ XML_FROM_C14NZ XML_FROM_XSLTZXML_FROM_VALIDZXML_FROM_CHECKZXML_FROM_WRITERZXML_FROM_MODULEZ XML_FROM_I18NZXML_FROM_SCHEMATRONVZXML_FROM_BUFFERZXML_FROM_URIZXML_MODULE_LAZYZXML_MODULE_LOCALZXML_PARSER_EOFZXML_PARSER_STARTZXML_PARSER_MISCZ XML_PARSER_PIZXML_PARSER_DTDZXML_PARSER_PROLOGZXML_PARSER_COMMENTZXML_PARSER_START_TAGZXML_PARSER_CONTENTZXML_PARSER_CDATA_SECTIONZXML_PARSER_END_TAGZXML_PARSER_ENTITY_DECLZXML_PARSER_ENTITY_VALUEZXML_PARSER_ATTRIBUTE_VALUEZXML_PARSER_SYSTEM_LITERALZXML_PARSER_EPILOGZXML_PARSER_IGNOREZXML_PARSER_PUBLIC_LITERALZXML_PARSER_LOADDTDZXML_PARSER_DEFAULTATTRSZXML_PARSER_VALIDATEZXML_PARSER_SUBST_ENTITIESZ$XML_PARSER_SEVERITY_VALIDITY_WARNINGZ"XML_PARSER_SEVERITY_VALIDITY_ERRORZXML_PARSER_SEVERITY_WARNINGZXML_PARSER_SEVERITY_ERRORZXML_PARSE_RECOVERZXML_PARSE_NOENTZXML_PARSE_DTDLOADZXML_PARSE_DTDATTRZXML_PARSE_DTDVALIDZXML_PARSE_NOERRORZXML_PARSE_NOWARNINGZXML_PARSE_PEDANTICZXML_PARSE_NOBLANKSZXML_PARSE_SAX1ZXML_PARSE_XINCLUDEZXML_PARSE_NONETZXML_PARSE_NODICTZXML_PARSE_NSCLEANZXML_PARSE_NOCDATAZXML_PARSE_NOXINCNODEZXML_PARSE_COMPACTZXML_PARSE_OLD10ZXML_PARSE_NOBASEFIXZXML_PARSE_HUGEZXML_PARSE_OLDSAXZXML_PARSE_IGNORE_ENCZXML_PARSE_BIG_LINESZXML_PARSE_UNKNOWNZ XML_PARSE_DOMZ XML_PARSE_SAXZXML_PARSE_PUSH_DOMZXML_PARSE_PUSH_SAXZXML_PARSE_READERZXML_PATTERN_DEFAULTZXML_PATTERN_XPATHZXML_PATTERN_XSSELZXML_PATTERN_XSFIELDZXML_READER_TYPE_NONEZXML_READER_TYPE_ELEMENTZXML_READER_TYPE_ATTRIBUTEZXML_READER_TYPE_TEXTZXML_READER_TYPE_CDATAZ XML_READER_TYPE_ENTITY_REFERENCEZXML_READER_TYPE_ENTITYZ&XML_READER_TYPE_PROCESSING_INSTRUCTIONZXML_READER_TYPE_COMMENTZXML_READER_TYPE_DOCUMENTZXML_READER_TYPE_DOCUMENT_TYPEZ!XML_READER_TYPE_DOCUMENT_FRAGMENTZXML_READER_TYPE_NOTATIONZXML_READER_TYPE_WHITESPACEZ&XML_READER_TYPE_SIGNIFICANT_WHITESPACEZXML_READER_TYPE_END_ELEMENTZXML_READER_TYPE_END_ENTITYZXML_READER_TYPE_XML_DECLARATIONZXML_RELAXNGP_NONEZXML_RELAXNGP_FREE_DOCZXML_RELAXNGP_CRNGZXML_RELAXNG_OKZXML_RELAXNG_ERR_MEMORYZXML_RELAXNG_ERR_TYPEZXML_RELAXNG_ERR_TYPEVALZXML_RELAXNG_ERR_DUPIDZXML_RELAXNG_ERR_TYPECMPZXML_RELAXNG_ERR_NOSTATEZXML_RELAXNG_ERR_NODEFINEZXML_RELAXNG_ERR_LISTEXTRAZXML_RELAXNG_ERR_LISTEMPTYZXML_RELAXNG_ERR_INTERNODATAZXML_RELAXNG_ERR_INTERSEQZXML_RELAXNG_ERR_INTEREXTRAZXML_RELAXNG_ERR_ELEMNAMEZXML_RELAXNG_ERR_ATTRNAMEZXML_RELAXNG_ERR_ELEMNONSZXML_RELAXNG_ERR_ATTRNONSZXML_RELAXNG_ERR_ELEMWRONGNSZXML_RELAXNG_ERR_ATTRWRONGNSZXML_RELAXNG_ERR_ELEMEXTRANSZXML_RELAXNG_ERR_ATTREXTRANSZXML_RELAXNG_ERR_ELEMNOTEMPTYZXML_RELAXNG_ERR_NOELEMZXML_RELAXNG_ERR_NOTELEMZXML_RELAXNG_ERR_ATTRVALIDZXML_RELAXNG_ERR_CONTENTVALIDZXML_RELAXNG_ERR_EXTRACONTENTZXML_RELAXNG_ERR_INVALIDATTRZXML_RELAXNG_ERR_DATAELEMZXML_RELAXNG_ERR_VALELEMZXML_RELAXNG_ERR_LISTELEMZXML_RELAXNG_ERR_DATATYPEZXML_RELAXNG_ERR_VALUEZXML_RELAXNG_ERR_LISTZXML_RELAXNG_ERR_NOGRAMMARZXML_RELAXNG_ERR_EXTRADATAZXML_RELAXNG_ERR_LACKDATAZXML_RELAXNG_ERR_INTERNALZXML_RELAXNG_ERR_ELEMWRONGZXML_RELAXNG_ERR_TEXTWRONGZXML_SAVE_FORMATZXML_SAVE_NO_DECLZXML_SAVE_NO_EMPTYZXML_SAVE_NO_XHTMLZXML_SAVE_XHTMLZXML_SAVE_AS_XMLZXML_SAVE_AS_HTMLZXML_SAVE_WSNONSIGZXML_SCHEMAS_UNKNOWNZXML_SCHEMAS_STRINGZXML_SCHEMAS_NORMSTRINGZXML_SCHEMAS_DECIMALZXML_SCHEMAS_TIMEZXML_SCHEMAS_GDAYZXML_SCHEMAS_GMONTHZXML_SCHEMAS_GMONTHDAYZXML_SCHEMAS_GYEARZXML_SCHEMAS_GYEARMONTHZXML_SCHEMAS_DATEZXML_SCHEMAS_DATETIMEZXML_SCHEMAS_DURATIONZXML_SCHEMAS_FLOATZXML_SCHEMAS_DOUBLEZXML_SCHEMAS_BOOLEANZXML_SCHEMAS_TOKENZXML_SCHEMAS_LANGUAGEZXML_SCHEMAS_NMTOKENZXML_SCHEMAS_NMTOKENSZXML_SCHEMAS_NAMEZXML_SCHEMAS_QNAMEZXML_SCHEMAS_NCNAMEZXML_SCHEMAS_IDZXML_SCHEMAS_IDREFZXML_SCHEMAS_IDREFSZXML_SCHEMAS_ENTITYZXML_SCHEMAS_ENTITIESZXML_SCHEMAS_NOTATIONZXML_SCHEMAS_ANYURIZXML_SCHEMAS_INTEGERZXML_SCHEMAS_NPINTEGERZXML_SCHEMAS_NINTEGERZXML_SCHEMAS_NNINTEGERZXML_SCHEMAS_PINTEGERZXML_SCHEMAS_INTZXML_SCHEMAS_UINTZXML_SCHEMAS_LONGZXML_SCHEMAS_ULONGZXML_SCHEMAS_SHORTZXML_SCHEMAS_USHORTZXML_SCHEMAS_BYTEZXML_SCHEMAS_UBYTEZXML_SCHEMAS_HEXBINARYZXML_SCHEMAS_BASE64BINARYZXML_SCHEMAS_ANYTYPEZXML_SCHEMAS_ANYSIMPLETYPEZXML_SCHEMAS_ERR_OKZXML_SCHEMAS_ERR_NOROOTZXML_SCHEMAS_ERR_UNDECLAREDELEMZXML_SCHEMAS_ERR_NOTTOPLEVELZXML_SCHEMAS_ERR_MISSINGZXML_SCHEMAS_ERR_WRONGELEMZXML_SCHEMAS_ERR_NOTYPEZXML_SCHEMAS_ERR_NOROLLBACKZXML_SCHEMAS_ERR_ISABSTRACTZXML_SCHEMAS_ERR_NOTEMPTYZXML_SCHEMAS_ERR_ELEMCONTZXML_SCHEMAS_ERR_HAVEDEFAULTZXML_SCHEMAS_ERR_NOTNILLABLEZXML_SCHEMAS_ERR_EXTRACONTENTZXML_SCHEMAS_ERR_INVALIDATTRZXML_SCHEMAS_ERR_INVALIDELEMZXML_SCHEMAS_ERR_NOTDETERMINISTZXML_SCHEMAS_ERR_CONSTRUCTZXML_SCHEMAS_ERR_INTERNALZXML_SCHEMAS_ERR_NOTSIMPLEZXML_SCHEMAS_ERR_ATTRUNKNOWNZXML_SCHEMAS_ERR_ATTRINVALIDZXML_SCHEMAS_ERR_VALUEZXML_SCHEMAS_ERR_FACETZXML_SCHEMAS_ERR_ZXML_SCHEMAS_ERR_XXXZXML_SCHEMATRON_OUT_QUIETZXML_SCHEMATRON_OUT_TEXTZXML_SCHEMATRON_OUT_XMLZXML_SCHEMATRON_OUT_ERRORZXML_SCHEMATRON_OUT_FILEZXML_SCHEMATRON_OUT_BUFFERZXML_SCHEMATRON_OUT_IOZXML_SCHEMA_CONTENT_UNKNOWNZXML_SCHEMA_CONTENT_EMPTYZXML_SCHEMA_CONTENT_ELEMENTSZXML_SCHEMA_CONTENT_MIXEDZXML_SCHEMA_CONTENT_SIMPLEZ$XML_SCHEMA_CONTENT_MIXED_OR_ELEMENTSZXML_SCHEMA_CONTENT_BASICZXML_SCHEMA_CONTENT_ANYZXML_SCHEMA_TYPE_BASICZXML_SCHEMA_TYPE_ANYZXML_SCHEMA_TYPE_FACETZXML_SCHEMA_TYPE_SIMPLEZXML_SCHEMA_TYPE_COMPLEXZXML_SCHEMA_TYPE_SEQUENCEZXML_SCHEMA_TYPE_CHOICEZXML_SCHEMA_TYPE_ALLZXML_SCHEMA_TYPE_SIMPLE_CONTENTZXML_SCHEMA_TYPE_COMPLEX_CONTENTZXML_SCHEMA_TYPE_URZXML_SCHEMA_TYPE_RESTRICTIONZXML_SCHEMA_TYPE_EXTENSIONZXML_SCHEMA_TYPE_ELEMENTZXML_SCHEMA_TYPE_ATTRIBUTEZXML_SCHEMA_TYPE_ATTRIBUTEGROUPZXML_SCHEMA_TYPE_GROUPZXML_SCHEMA_TYPE_NOTATIONZXML_SCHEMA_TYPE_LISTZXML_SCHEMA_TYPE_UNIONZXML_SCHEMA_TYPE_ANY_ATTRIBUTEZXML_SCHEMA_TYPE_IDC_UNIQUEZXML_SCHEMA_TYPE_IDC_KEYZXML_SCHEMA_TYPE_IDC_KEYREFZXML_SCHEMA_TYPE_PARTICLEZXML_SCHEMA_TYPE_ATTRIBUTE_USEZXML_SCHEMA_FACET_MININCLUSIVEZXML_SCHEMA_FACET_MINEXCLUSIVEZXML_SCHEMA_FACET_MAXINCLUSIVEZXML_SCHEMA_FACET_MAXEXCLUSIVEZXML_SCHEMA_FACET_TOTALDIGITSZXML_SCHEMA_FACET_FRACTIONDIGITSZXML_SCHEMA_FACET_PATTERNZXML_SCHEMA_FACET_ENUMERATIONZXML_SCHEMA_FACET_WHITESPACEZXML_SCHEMA_FACET_LENGTHZXML_SCHEMA_FACET_MAXLENGTHZXML_SCHEMA_FACET_MINLENGTHZXML_SCHEMA_EXTRA_QNAMEREFZ XML_SCHEMA_EXTRA_ATTR_USE_PROHIBZXML_SCHEMA_VAL_VC_I_CREATEZXML_SCHEMA_WHITESPACE_UNKNOWNZXML_SCHEMA_WHITESPACE_PRESERVEZXML_SCHEMA_WHITESPACE_REPLACEZXML_SCHEMA_WHITESPACE_COLLAPSEZXML_TEXTREADER_MODE_INITIALZXML_TEXTREADER_MODE_INTERACTIVEZXML_TEXTREADER_MODE_ERRORZXML_TEXTREADER_MODE_EOFZXML_TEXTREADER_MODE_CLOSEDZXML_TEXTREADER_MODE_READINGZXML_WITH_THREADZ XML_WITH_TREEZXML_WITH_OUTPUTZ XML_WITH_PUSHZXML_WITH_READERZXML_WITH_PATTERNZXML_WITH_WRITERZ XML_WITH_SAX1ZXML_WITH_FTPZ XML_WITH_HTTPZXML_WITH_VALIDZ XML_WITH_HTMLZXML_WITH_LEGACYZ XML_WITH_C14NZXML_WITH_CATALOGZXML_WITH_XPATHZ XML_WITH_XPTRZXML_WITH_XINCLUDEZXML_WITH_ICONVZXML_WITH_ISO8859XZXML_WITH_UNICODEZXML_WITH_REGEXPZXML_WITH_AUTOMATAZ XML_WITH_EXPRZXML_WITH_SCHEMASZXML_WITH_SCHEMATRONZXML_WITH_MODULESZXML_WITH_DEBUGZXML_WITH_DEBUG_MEMZXML_WITH_DEBUG_RUNZ XML_WITH_ZLIBZXML_WITH_ICUZ XML_WITH_LZMAZ XML_WITH_NONEZXPATH_UNDEFINEDZ XPATH_NODESETZ XPATH_BOOLEANZXPATH_NUMBERZXPATH_STRINGZXPATH_POINTZXPATH_RANGEZXPATH_LOCATIONSETZXPATH_USERSZXPATH_XSLT_TREEZXPATH_EXPRESSION_OKZXPATH_NUMBER_ERRORZXPATH_UNFINISHED_LITERAL_ERRORZXPATH_START_LITERAL_ERRORZXPATH_VARIABLE_REF_ERRORZXPATH_UNDEF_VARIABLE_ERRORZXPATH_INVALID_PREDICATE_ERRORZXPATH_EXPR_ERRORZXPATH_UNCLOSED_ERRORZXPATH_UNKNOWN_FUNC_ERRORZXPATH_INVALID_OPERANDZXPATH_INVALID_TYPEZXPATH_INVALID_ARITYZXPATH_INVALID_CTXT_SIZEZXPATH_INVALID_CTXT_POSITIONZXPATH_MEMORY_ERRORZXPTR_SYNTAX_ERRORZXPTR_RESOURCE_ERRORZXPTR_SUB_RESOURCE_ERRORZXPATH_UNDEF_PREFIX_ERRORZXPATH_ENCODING_ERRORZXPATH_INVALID_CHAR_ERRORZXPATH_INVALID_CTXTZXPATH_STACK_ERRORZXPATH_FORBID_VARIABLE_ERRORZXPATH_OP_LIMIT_EXCEEDEDZXPATH_RECURSION_LIMIT_EXCEEDEDr���r���r���r����<module>���sD �� +/i�� # " �������9�������9�����N <B 3�-b:.F*M���;z�0�%����E