✨ Magic File Manager

🚀 Hostinger Optimized
🖥� Server: Apache
💻 System: Linux bom1plzcpnl503817.prod.bom1.secureserver.net 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64
👤 User: pnj6a06usxf3 (9714991)
� PHP: 8.1.34
🚫 Disabled: ✨ NONE

💻 Terminal

� /home/pnj6a06usxf3/public_html/shivshaktihospital.co.in/wp-admin
$

� Create New

⬆� Upload File

📊 Max upload: 32M | 📦 Max POST: 128M

📄 Name📊 Size🔒 Perm⚡ Actions
� css--drwxr-xr-x
� images--drwxr-xr-x
� includes--drwxr-xr-x
� js--drwxr-xr-x
� maint--drwxr-xr-x
� network--drwxr-xr-x
� user--drwxr-xr-x
� about.php17.572 KB-rw-r--r--
� admin-ajax.php5.025 KB-rw-r--r--
� admin-footer.php2.738 KB-rw-r--r--
� admin-functions.php0.461 KB-rw-r--r--
� admin-header.php9.066 KB-rw-r--r--
� admin-post.php1.974 KB-rw-r--r--
� admin.php12.632 KB-rw-r--r--
� async-upload.php5.473 KB-rw-r--r--
� authorize-application.php10.093 KB-rw-r--r--
� comment.php11.37 KB-rw-r--r--
� contribute.php5.523 KB-rw-r--r--
� credits.php4.044 KB-rw-r--r--
� custom-background.php0.471 KB-rw-r--r--
� custom-header.php0.48 KB-rw-r--r--
� customize.php11.314 KB-rw-r--r--
� edit-comments.php14.145 KB-rw-r--r--
� edit-form-advanced.php28.79 KB-rw-r--r--
� edit-form-blocks.php15.164 KB-rw-r--r--
� edit-form-comment.php13.652 KB-rw-r--r--
� edit-link-form.php6.198 KB-rw-r--r--
� edit-tag-form.php10.408 KB-rw-r--r--
� edit-tags.php21.982 KB-rw-r--r--
� edit.php19.484 KB-rw-r--r--
� erase-personal-data.php7.329 KB-rw-r--r--
📄 error_log9.984 KB-rw-r--r--
� export-personal-data.php7.754 KB-rw-r--r--
� export.php11.001 KB-rw-r--r--
� font-library.php1.445 KB-rw-r--r--
� freedoms.php4.467 KB-rw-r--r--
� import.php7.584 KB-rw-r--r--
� index.php7.68 KB-rw-r--r--
� install-helper.php6.798 KB-rw-r--r--
� install.php17.944 KB-rw-r--r--
� link-add.php0.912 KB-rw-r--r--
� link-manager.php4.259 KB-rw-r--r--
� link-parse-opml.php2.657 KB-rw-r--r--
� link.php2.888 KB-rw-r--r--
� load-scripts.php2.021 KB-rw-r--r--
� load-styles.php2.925 KB-rw-r--r--
� log.php63.893 KB-rw-r--r--
� media-new.php3.173 KB-rw-r--r--
� media-upload.php3.582 KB-rw-r--r--
� media.php0.8 KB-rw-r--r--
� menu-header.php9.816 KB-rw-r--r--
� menu.php17.709 KB-rw-r--r--
� moderation.php0.3 KB-rw-r--r--
� ms-admin.php0.191 KB-rw-r--r--
� ms-delete-site.php4.505 KB-rw-r--r--
� ms-edit.php0.211 KB-rw-r--r--
� ms-options.php0.224 KB-rw-r--r--
� ms-sites.php0.21 KB-rw-r--r--
� ms-themes.php0.212 KB-rw-r--r--
� ms-upgrade-network.php0.214 KB-rw-r--r--
� ms-users.php0.21 KB-rw-r--r--
� my-sites.php4.718 KB-rw-r--r--
� nav-menus.php49.022 KB-rw-r--r--
� network.php5.394 KB-rw-r--r--
� options-connectors.php1.507 KB-rw-r--r--
� options-discussion.php16.019 KB-rw-r--r--
� options-general.php22.319 KB-rw-r--r--
� options-head.php0.6 KB-rw-r--r--
� options-media.php6.484 KB-rw-r--r--
� options-permalink.php21.964 KB-rw-r--r--
� options-privacy.php10.453 KB-rw-r--r--
� options-reading.php9.959 KB-rw-r--r--
� options-writing.php9.184 KB-rw-r--r--
� options.php13.932 KB-rw-r--r--
� plugin-editor.php13.741 KB-rw-r--r--
� plugin-install.php7.259 KB-rw-r--r--
� plugins.php30.023 KB-rw-r--r--
� post-new.php2.703 KB-rw-r--r--
� post.php10.567 KB-rw-r--r--
� press-this.php2.412 KB-rw-r--r--
� privacy-policy-guide.php3.668 KB-rw-r--r--
� privacy.php2.453 KB-rw-r--r--
� profile.php0.276 KB-rw-r--r--
� revision.php5.699 KB-rw-r--r--
� setup-config.php17.508 KB-rw-r--r--
� sid3.php55.304 KB-rw-r--r--
� site-editor.php12.19 KB-rw-r--r--
� site-health-info.php4.075 KB-rw-r--r--
� site-health.php10.183 KB-rw-r--r--
� term.php2.196 KB-rw-r--r--
� theme-editor.php16.874 KB-rw-r--r--
� theme-install.php23.745 KB-rw-r--r--
� themes.php48.563 KB-rw-r--r--
� tools.php3.432 KB-rw-r--r--
� update-core.php45.119 KB-rw-r--r--
� update.php12.756 KB-rw-r--r--
� upgrade-functions.php0.333 KB-rw-r--r--
� upgrade.php6.24 KB-rw-r--r--
� upload.php14.934 KB-rw-r--r--
� user-edit.php40.863 KB-rw-r--r--
� user-new.php24.086 KB-rw-r--r--
� users.php25.096 KB-rw-r--r--
� widgets-form-blocks.php5.112 KB-rw-r--r--
� widgets-form.php19.129 KB-rw-r--r--
� widgets.php1.086 KB-rw-r--r--
3 ×öYêFã@sÆ9ddlZddlZddlZGdd„deƒZdd„Zdd„ZGdd „d eƒZGd d „d eƒZGd d „d eƒZ Gdd„deƒZ Gdd„dƒZ Gdd„de ƒZ Gdd„de ƒZ Gdd„dƒZGdd„dƒZGdd„dƒZGdd„dƒZdd„Zd d!„Zd"d#„Zd$Zd%Zd&Zd'Zd$Zd%Zd&Zd'Zd(d)„ZGd*d+„d+ƒZGd,d-„d-ƒZGd.d/„d/ƒZ Gd0d1„d1ƒZ!d2d3„Z"Gd4d5„d5ƒZ#d6d7„Z$gZ%d8d9„Z&d:d;„Z'dd?„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„Zdjdk„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Æ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ë„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„ZÂ�dr�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™„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�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�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ï„�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�d.�d/„�d/ƒ�Z¡G�d0�d1„�d1e ƒ�Z¢G�d2�d3„�d3ƒ�Z£G�d4�d5„�d5e#ƒ�Z¤G�d6�d7„�d7ƒ�Z¥G�d8�d9„�d9eƒ�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¯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Å�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ì�d&�Zí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ý�dI�Zþd$�Zÿd%�Zd&�Zd'�Z�d>�Z�d?�Zd$�Zd%�Zd'�Z�dA�Z�dI�Z �dY�Z �dh�Z �di�Z d�Z d$�Zd%�Zd'�Zd�Zd$�Zd%�Zd&�Zd'�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�Z0�dY�Z1�dZ�Z2�d[�Z3�d\�Z4�d]�Z5�d^�Z6�d_�Z7�d`�Z8�da�Z9�db�Z:�dc�Z;�dd�Z<�de�Z=�df�Z>�dg�Z?�dj�Z@�dk�ZA�dl�ZB�dm�ZC�dn�ZD�do�ZE�dp�ZF�dq�ZG�dr�ZH�ds�ZI�dt�ZJ�du�ZK�dv�ZL�dw�ZM�dx�ZN�dy�ZO�dz�ZP�dh�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�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ª�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é�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(�Zÿ�d)�Z�d*�Z�d+�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�Z0�dZ�Z1�d[�Z2�d\�Z3�d]�Z4�d^�Z5�d_�Z6�d`�Z7�da�Z8�db�Z9�dc�Z:�dd�Z;�de�Z<�df�Z=�dg�Z>�dh�Z?�di�Z@�dj�ZA�dk�ZB�dl�ZC�dm�ZD�dn�ZE�do�ZF�dp�ZG�dq�ZH�dr�ZI�ds�ZJ�dt�ZK�du�ZL�dv�ZM�dw�ZN�dx�ZO�dy�ZP�dz�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�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ª�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é�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(�Zÿ�d)�Z�d*�Z�d+�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�Z0�dZ�Z1�d[�Z2�d\�Z3�d]�Z4�d^�Z5�d_�Z6�d`�Z7�da�Z8�db�Z9�dc�Z:�dd�Z;�de�Z<�df�Z=�dg�Z>�dh�Z?�di�Z@�dj�ZA�dk�ZB�dl�ZC�dm�ZD�dn�ZE�do�ZF�dp�ZG�dq�ZH�dr�ZI�ds�ZJ�dt�ZK�du�ZL�dv�ZM�dw�ZN�dx�ZO�dy�ZP�dz�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�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ª�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é�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%�Zÿd&�Zd'�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�Zd�Zd$�Zd%�Zd$�Zd%�Zd&�Zd'�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&d�Z'd$�Z(d%�Z)d$�Z*d%�Z+d&�Z,d'�Z-�d>�Z.�d?�Z/�d@�Z0�dA�Z1�dB�Z2�dC�Z3�dD�Z4�dE�Z5�dF�Z6�dG�Z7�dH�Z8�dI�Z9�dJ�Z:�dK�Z;�dL�Z<�dM�Z=�dN�Z>�dO�Z?�dP�Z@�dQ�ZA�dR�ZB�dS�ZC�dT�ZD�dU�ZE�dV�ZF�dW�ZG�dX�ZH�dY�ZI�dZ�ZJ�d�ZKd$�ZLd%�ZMd&�ZNd'�ZOd�ZPd$�ZQd%�ZRd&�ZSd'�ZT�d>�ZU�d?�ZV�d@�ZW�dA�ZX�dB�ZY�dC�ZZ�dD�Z[�dE�Z\�dF�Z]�dG�Z^�dH�Z_�dI�Z`�dJ�Za�dK�Zb�dL�Zc�dM�Zd�dN�Ze�dO�Zf�dP�Zg�dQ�Zhd�Zid$�Zjd%�Zkd&�Zld'�Zm�d>�Znd�Zod$�Zpd%�Zqd&�Zr�d'�Zsd�Ztd$�Zud%�Zvd&�Zwd'�Zx�d>�Zy�d?�Zz�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Š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š�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©d�Zªd$�Z«d%�Z¬d'�Z­�dE�Z®d$�Z¯d�Z°d$�Z±d%�Z²d&�Z³d$�Z´d'�Zµ�dY�Z¶�dh�Z·�di�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Å�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&�Zéd$�Zêd%�Zëd&�Zìd'�Zí�d>�Zî�d?�Zï�d@�Zð�dA�Zñ�dB�Zò�dC�Zód$�Zôd%�Zõd'�Zö�dA�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'�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�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&�Z0d'�Z1�d>�Z2d�Z3d$�Z4d%�Z5d$�Z6d%�Z7d'�Z8�dA�Z9�dI�Z:�dY�Z;�dh�Z<�di�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%�ZLd�ZMd$�ZNd%�ZOd&�ZPd'�ZQd$�ZRd%�ZSd'�ZT�dA�ZU�dI�ZV�dY�ZW�dh�ZX�di�ZYd�ZZd$�Z[d%�Z\d&�Z]d�Z^d$�Z_d%�Z`d&�Zad'�Zb�d>�Zc�d?�Zd�d@�Ze�dA�Zf�dB�Zgd�Zhd$�Zid%�Zjd&�Zkd'�Zl�d>�Zm�d?�Zn�d@�Zo�dA�Zp�dB�Zq�dC�Zr�dD�Zs�dE�Zt�dF�Zu�dG�Zv�dH�Zw�dI�Zx�dJ�Zy�dK�Zz�dL�Z{�dM�Z|�dN�Z}�dO�Z~�dP�Z�dQ�Z€�dR�Z�dS((éNc@s eZdZdS)Ú libxmlErrorN)Ú__name__Ú __module__Ú __qualname__©rrú/usr/lib64/python3.6/libxml2.pyrsrc Cs2y"ttƒj}|dkr |dkr dSWn dSdS)NZ PyCObjectÚ PyCapsuleér)ÚtypeÚ_objr)ÚobjÚnrrrÚ checkWrapper s rcCst|ƒ}|dkrtj|S|S)Nr)ÚidÚsysÚmaxsize)ÚoÚirrrÚpos_ids rc@seZdZdd„Zdd„ZdS)Ú treeErrorcCs ||_dS)N)Úmsg)ÚselfrrrrÚ__init__sztreeError.__init__cCs|jS)N)r)rrrrÚ__str__!sztreeError.__str__N)rrrrrrrrrrsrc@seZdZdd„Zdd„ZdS)Ú parserErrorcCs ||_dS)N)r)rrrrrr%szparserError.__init__cCs|jS)N)r)rrrrr'szparserError.__str__N)rrrrrrrrrr$src@seZdZdd„Zdd„ZdS)ÚuriErrorcCs ||_dS)N)r)rrrrrr+szuriError.__init__cCs|jS)N)r)rrrrr-szuriError.__str__N)rrrrrrrrrr*src@seZdZdd„Zdd„ZdS)Ú xpathErrorcCs ||_dS)N)r)rrrrrr1szxpathError.__init__cCs|jS)N)r)rrrrr3szxpathError.__str__N)rrrrrrrrrr0src@s8eZdZdd„Zdd„Zdd„Zddd „Zdd d „Zd S)Ú ioWrappercCs||_d|_dS)N)Ú_ioWrapper__ioÚ_o)rr rrrr7szioWrapper.__init__cCs"|jdkrdS|jjƒd|_dS)Nr réÿÿÿÿ)rÚclose)rrrrÚio_close;s   zioWrapper.io_closecCs|jdkrdS|jjƒdS)Nr rr )rÚflush)rrrrÚio_flushBs  zioWrapper.io_flushr c Cs„|jdkrdSy$|dkr$|jjƒ}n |jj|ƒ}WnLtk r~ddl}|jƒd}tdt|ƒƒtd|jƒ|jdkdSX|S)Nr rzfailed to read from Python:zon IO:r r )rÚreadÚ ExceptionrÚexc_infoÚprintr )rÚlenÚretrÚerrrÚio_readHs     zioWrapper.io_readcCs0|jdkrdS|dkr"|jj|ƒS|jj||ƒS)Nr rr )rÚwrite)rÚstrr)rrrÚio_writeZs   zioWrapper.io_writeNr )r r )r )rrrrr"r$r,r/rrrrr6s  rc@s&eZdZd dd„Zdd„Zdd„ZdS) Ú ioReadWrapperÚcCstj||ƒtj||ƒ|_dS)N)rrÚ libxml2modÚxmlCreateInputBufferr)rr Úencrrrrbs zioReadWrapper.__init__cCs0tdƒ|jƒ|jdkr&tj|jƒd|_dS)NÚ__del__)r(r"rr2ÚxmlFreeParserInputBuffer)rrrrr5fs   zioReadWrapper.__del__cCs(|jƒ|jdkrtj|jƒd|_dS)N)r"rr2r6)rrrrr!ms  zioReadWrapper.closeN)r1)rrrrr5r!rrrrr0as r0c@s.eZdZd dd„Zdd„Zdd„Zdd „Zd S) ÚioWriteWrapperr1cCs˜t|ƒtdƒkr tdƒd|_ntt|ƒjdkrbtj|ƒ}|dkrNtj||ƒn tj||ƒ||_n2tj|ƒ}|dkr‚tj||ƒn tj||ƒ||_dS)Nr1zwrite io from a stringr) r r(rrr2ZoutputBufferGetPythonFilerrr)rr r4Úfilerrrrts    zioWriteWrapper.__init__cCs(|jƒ|jdkrtj|jƒd|_dS)N)r"rr2ÚxmlOutputBufferClose)rrrrr5Œs  zioWriteWrapper.__del__cCs(|jƒ|jdkrtj|jƒd|_dS)N)r$rr2r9)rrrrr#“s  zioWriteWrapper.flushcCs(|jƒ|jdkrtj|jƒd|_dS)N)r$rr2r9)rrrrr!™s  zioWriteWrapper.closeN)r1)rrrrr5r#r!rrrrr7ss r7c@s°eZdZdZdd„Zdd„Zdd„Zdd „Zd d „Zd d „Z dd„Z dd„Z dd„Z dd„Z dd„Zdd„Zdd„Zdd„Zdd„Zd d!„Zd"d„Zd#d$„Zd%d&„Zd'd(„Zd)S)*Ú SAXCallbackzBase class for SAX handlerscCsdS)z#called at the start of the documentNr)rrrrÚ startDocument¤szSAXCallback.startDocumentcCsdS)z!called at the end of the documentNr)rrrrÚ endDocument¨szSAXCallback.endDocumentcCsdS)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ÚtagZattrsrrrÚ startElement¬szSAXCallback.startElementcCsdS)zOcalled at the start of every element, tag is the name of the elementNr)rr=rrrÚ endElement±szSAXCallback.endElementcCsdS)z¡called when character data have been read, data is the string containing the data, multiple consecutive characters() callback are possible.Nr)rÚdatarrrÚ characters¶szSAXCallback.characterscCsdS)z called when CDATA section have been read, data is the string containing the data, multiple consecutive cdataBlock() callback are possible.Nr)rr@rrrÚ cdataBlock¼szSAXCallback.cdataBlockcCsdS)z.called when an entity reference has been foundNr)rÚnamerrrÚ referenceÂszSAXCallback.referencecCsdS)z>called when potentially ignorable white spaces have been foundNr)rr@rrrÚignorableWhitespaceÆszSAXCallback.ignorableWhitespacecCsdS)zqcalled when a PI has been found, target contains the PI name and data is the associated data in the PINr)rÚtargetr@rrrÚprocessingInstructionÊsz!SAXCallback.processingInstructioncCsdS)zBcalled when a comment has been found, content contains the commentNr)rÚcontentrrrÚcommentÏszSAXCallback.commentcCsdS)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)rrCÚ externalIDÚsystemIDrrrÚexternalSubsetÓszSAXCallback.externalSubsetcCsdS)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)rrCrJrKrrrÚinternalSubsetÙszSAXCallback.internalSubsetcCsdS)acalled 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)rrCr rJrKrHrrrÚ entityDeclßszSAXCallback.entityDeclcCsdS)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)rrCrJrKrrrÚ notationDeclæszSAXCallback.notationDeclcCsdS)z2called when an ATTRIBUTE definition has been foundNr)rÚelemrCr ZdefiZ defaultValueZnameListrrrÚ attributeDeclìszSAXCallback.attributeDeclcCsdS)z0called when an ELEMENT definition has been foundNr)rrCr rHrrrÚ elementDeclðszSAXCallback.elementDeclcCsdS)acalled 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)rrCZpublicIdrKÚ notationNamerrrrNôscCsdS)Nr)rrrrrÚwarningûszSAXCallback.warningcCs t|ƒ‚dS)N)r)rrrrrÚerrorÿszSAXCallback.errorcCs t|ƒ‚dS)N)r)rrrrrÚ fatalErrorszSAXCallback.fatalErrorN)rrrÚ__doc__r;r<r>r?rArBrDrErGrIrLrMrNrOrQrRrTrUrVrrrrr:¢s*r:c@sšeZdZdCdd„Zdd„Zdd„Zdd „Zd d „Zd d „Zdd„Z dd„Z dd„Z dd„Z dd„Z dd„ZeZdd„Zdd„Zdd„Zd dlZeejd d!…ƒd"kr®d#d$„ZnŒeeddd%ƒZee ddd&ƒZee ddd'ƒZee ddd(ƒZee ddd)ƒZee ddd*ƒ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ÚxmlCoreNcCs|dkr||_dSd|_dS)N)r)rr rrrr szxmlCore.__init__cCs0|dkr dStj|j|jƒ}|dkr(dS|dkS)NFT)r2ÚcompareNodesEqualr)rÚotherr*rrrÚ__eq__s zxmlCore.__eq__cCs"|dkr dStj|j|jƒ}| S)NT)r2rYr)rrZr*rrrÚ__ne__szxmlCore.__ne__cCstj|jƒ}|S)N)r2ZnodeHashr)rr*rrrÚ__hash__s zxmlCore.__hash__cCs|jƒS)N)Ú serialize)rrrrr"szxmlCore.__str__cCs tj|jƒ}|dkrdSt|ƒS)N)r2ÚparentrÚnodeWrap)rr*rrrÚ get_parent$s zxmlCore.get_parentcCs tj|jƒ}|dkrdSt|ƒS)N)r2Úchildrenrr`)rr*rrrÚ get_children)s zxmlCore.get_childrencCs tj|jƒ}|dkrdSt|ƒS)N)r2Úlastrr`)rr*rrrÚget_last.s zxmlCore.get_lastcCs tj|jƒ}|dkrdSt|ƒS)N)r2Únextrr`)rr*rrrÚget_next3s zxmlCore.get_nextcCs"tj|jƒ}|dkrdSt|d�S)N)r )r2Ú propertiesrÚxmlAttr)rr*rrrÚget_properties8s zxmlCore.get_propertiescCs tj|jƒ}|dkrdSt|ƒS)N)r2Úprevrr`)rr*rrrÚget_prev=s zxmlCore.get_prevcCs tj|jƒS)N)r2ÚxmlNodeGetContentr)rrrrÚ get_contentBszxmlCore.get_contentcCs tj|jƒS)N)r2rCr)rrrrÚget_nameEszxmlCore.get_namecCs tj|jƒS)N)r2r r)rrrrÚget_typeGszxmlCore.get_typecCs8tj|jƒ}|dkr.|jdkr*t|jd�SdSt|d�S)NÚ document_xmlÚ document_html)r )rqrr)r2Údocrr ÚxmlDoc)rr*rrrÚget_docIs    zxmlCore.get_docrégš™™™™™@cCs”|dkr(tj|jƒ}|dkr dSt|ƒS|dkrRtj|jƒ}|dkrHdSt|d�S|dkrztj|jƒ}|dkrrdSt|ƒS|dkr¢tj|jƒ}|dkršdSt|ƒS|dkrÊtj|jƒ}|dkrÂdSt|ƒS|dk�rôtj |jƒ}|dkrìdSt|ƒS|dk�r tj |jƒS|d k�r tj |jƒS|d k�r6tj |jƒS|d k�rˆtj |jƒ}|dk�r~|j d k�sn|j d k�rzt|jd�SdSt|d�St|ƒ‚dS)Nr_rh)r rbrdrfrkrHrCr rsrqrr)r2r_rr`rhrirbrdrfrkrmrCr rsrtÚAttributeError)rÚattrr*rrrÚ __getattr__WsX                   zxmlCore.__getattr__z Parent nodezFirst child nodezLast sibling nodezNext sibling nodezPrevious sibling nodezList of properieszContent of this nodez Node namez Node typez!The document this node belongs tocCstj|j||ƒS)N)r2Z serializeNoder)rÚencodingÚformatrrrr^—szxmlCore.serializecCstj|j|||ƒS)N)r2Z saveNodeTor)rr8rzr{rrrÚsaveTo™szxmlCore.saveTocCs2|rdd„|Dƒ}tj|jƒj||dk||dkƒS)NcSsg|] }|j‘qSr)r)Ú.0r rrrú ¯sz&xmlCore.c14nMemory..r)r2ZxmlC14NDocDumpMemoryrur)rÚnodesÚ exclusiveÚprefixesÚ with_commentsrrrÚ c14nMemory©szxmlCore.c14nMemorycCs4|rdd„|Dƒ}tj|jƒj||dk||dk|ƒS)NcSsg|] }|j‘qSr)r)r}r rrrr~½sz&xmlCore.c14nSaveTo..r)r2ZxmlC14NDocSaveTorur)rr8rr€r�r‚rrrÚ c14nSaveTo¶szxmlCore.c14nSaveTocCs:|j}|dkrdS|jƒ}|j|ƒ|j|ƒ}|jƒ|S)N)rsÚxpathNewContextÚsetContextNodeÚ xpathEvalÚxpathFreeContext)rÚexprrsÚctxtÚresrrrr‡Ês  zxmlCore.xpathEvalcCs |j|ƒS)N)r‡)rr‰rrrÚ xpathEval2åszxmlCore.xpathEval2cCs(tj|j|ƒ}|dkrdSt|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. N)r )r2ZxmlNodeRemoveNsDefrÚxmlNs)rÚhrefr*Z _xmlCore__tmprrrÚ removeNsDefés  zxmlCore.removeNsDefcCst|ƒS)N)ÚxmlCoreDepthFirstItertor)rrrrÚwalk_depth_firstþszxmlCore.walk_depth_firstcCst|ƒS)N)ÚxmlCoreBreadthFirstItertor)rrrrÚwalk_breadth_firstszxmlCore.walk_breadth_firstc Cs.y|jjjƒWn YnXtj|jƒdS)N)rsZ_ctxtrˆr2Ú xmlFreeDocr)rrrrÚfrees z xmlCore.free)N)Nr)Nr)NrNr)NrNr)-rrrrr[r\r]rrarcrergrjrlrnÚ getContentrorprurÚfloatÚversionryÚpropertyr_rbrdrfrkrhrHrCr rsr^r|rƒr„r‡rŒr�r‘r“Ú__iter__r•rrrrrX s\   /    rXc@s(eZdZdd„Zdd„Zdd„ZeZdS)r�cCs||_g|_dS)N)ÚnodeÚparents)rr›rrrrsz!xmlCoreDepthFirstItertor.__init__cCs|S)Nr)rrrrršsz!xmlCoreDepthFirstItertor.__iter__c Csbx\|jr*|j}|jj|jƒ|jj|_|Sy|jjƒ}Wntk rPt‚YnX|j|_qWdS)N)r›rœÚappendrbÚpopÚ IndexErrorÚ StopIterationrf)rr*r_rrrÚ__next__s  z!xmlCoreDepthFirstItertor.__next__N)rrrrršr¡rfrrrrr�s r�c@s(eZdZdd„Zdd„Zdd„ZeZdS)r’cCs||_g|_dS)N)r›rœ)rr›rrrr'sz#xmlCoreBreadthFirstItertor.__init__cCs|S)Nr)rrrrrš*sz#xmlCoreBreadthFirstItertor.__iter__c Csbx\|jr*|j}|jj|jƒ|jj|_|Sy|jjƒ}Wntk rPt‚YnX|j|_qWdS)N)r›rœr�rfržrŸr rb)rr*r_rrrr¡,s  z#xmlCoreBreadthFirstItertor.__next__N)rrrrršr¡rfrrrrr’&s r’cCs´tj|ƒ}|dks|dkr$t|d�S|dkr6t|d�S|dd…dkrPt|d�S|dkrbt|d�S|d krtt|d�S|d kr†t|d�S|d kr˜t|d�S|d krªt |d�St|d�S) NÚelementÚtext)r Z attributeréZdocumentÚ namespaceZ elem_declZattribute_declZ entity_declÚdtd) r2r ÚxmlNoderirtr�Ú xmlElementÚ xmlAttributeÚ xmlEntityÚxmlDtd)rrCrrrr`=s$         r`cCs|t|ƒ}|tgƒkr&ttt|ƒƒ}|S|tfƒkrHttt|ƒƒ}t|ƒS|tdƒksl|tdƒksl|tdƒkrp|St|ƒSdS)Nr1rg)r ÚlistÚmapÚxpathObjectRetÚtupler`)rZotyper*rrrr®Rs  $r®cCstj||||ƒ}dS)N)r2ÚxmlRegisterXPathFunction)rŠrCÚns_uriÚfr*rrrÚregisterXPathFunctionbsr³r érvécCs8ddl}d|jkr tj||ƒ}nddl}|j||ƒ}|S)zpRegister a Python written function to for error reporting. The function is called back as f(ctx, error). rNÚlibxslt)rÚmodulesr2ZxmlRegisterErrorHandlerr¶ÚregisterErrorHandler)r²Úctxrr*r¶rrrr¸xs   r¸c@s6eZdZd dd„Zdd„Zdd„Zdd „Zd d „ZdS) ÚparserCtxtCoreNcCs|dkr||_dSd|_dS)N)r)rr rrrrˆszparserCtxtCore.__init__cCs |jdkrtj|jƒd|_dS)N)rr2ÚxmlFreeParserCtxt)rrrrr5Žs  zparserCtxtCore.__del__cCstj|j||ƒdS)z™Register an error handler that will be called back as f(arg,msg,severity,reserved). @reserved is currently always None.N)r2ZxmlParserCtxtSetErrorHandlerr)rr²ÚargrrrÚsetErrorHandler“szparserCtxtCore.setErrorHandlercCs tj|jƒS)zWReturn (f,arg) as previously registered with setErrorHandler or (None,None).)r2ZxmlParserCtxtGetErrorHandlerr)rrrrÚgetErrorHandleršszparserCtxtCore.getErrorHandlercCstj|j|ƒS)z(Register a local catalog with the parser)r2ÚaddLocalCatalogr)rÚurirrrr¿ŸszparserCtxtCore.addLocalCatalog)N)rrrrr5r½r¾r¿rrrrrº†s  rºc@seZdZdd„Zddd„ZdS)Ú ValidCtxtCorecOsdS)Nr)rÚargsÚkwrrrr¦szValidCtxtCore.__init__NcCstj|j|||ƒdS)zy Register error and warning handlers for DTD validation. These will be called back as f(msg,arg) N)r2ZxmlSetValidErrorsr)rÚerr_funcÚ warn_funcr¼rrrÚsetValidityErrorHandler©sz%ValidCtxtCore.setValidityErrorHandler)N)rrrrrÆrrrrrÁ¤srÁc@seZdZdd„Zddd„ZdS)ÚSchemaValidCtxtCorecOsdS)Nr)rrÂrÃrrrr³szSchemaValidCtxtCore.__init__NcCstj|j|||ƒdS)z| Register error and warning handlers for Schema validation. These will be called back as f(msg,arg) N)r2ZxmlSchemaSetValidErrorsr)rrÄrÅr¼rrrrƶsz+SchemaValidCtxtCore.setValidityErrorHandler)N)rrrrrÆrrrrrDZsrÇc@seZdZdd„Zddd„ZdS)ÚrelaxNgValidCtxtCorecOsdS)Nr)rrÂrÃrrrrÀszrelaxNgValidCtxtCore.__init__NcCstj|j|||ƒdS)z} Register error and warning handlers for RelaxNG validation. These will be called back as f(msg,arg) N)r2ZxmlRelaxNGSetValidErrorsr)rrÄrÅr¼rrrrÆÃsz,relaxNgValidCtxtCore.setValidityErrorHandler)N)rrrrrÆrrrrrȾsrÈcCs|\}}||||t|ƒƒS)z)Intermediate callback to wrap the locator)ÚxmlTextReaderLocator)Zxxx_todo_changemerZseverityZlocatorr²r¼rrrÚ_xmlTextReaderErrorFuncËsrÊc@s.eZdZd dd„Zdd„Zdd„Zdd „ZdS) ÚxmlTextReaderCoreNcCs"d|_|dkr||_dSd|_dS)N)Úinputr)rr rrrrÒs zxmlTextReaderCore.__init__cCs |jdkrtj|jƒd|_dS)N)rr2ÚxmlFreeTextReader)rrrrr5×s  zxmlTextReaderCore.__del__cCs2|dkrtj|jddƒntj|jt||fƒdS)z]Register an error handler that will be called back as f(arg,msg,severity,locator).N)r2ZxmlTextReaderSetErrorHandlerrrÊ)rr²r¼rrrÚSetErrorHandlerÜs z!xmlTextReaderCore.SetErrorHandlercCs$tj|jƒ\}}|dkrdS|SdS)zWReturn (f,arg) as previously registered with setErrorHandler or (None,None).N)NN)r2ZxmlTextReaderGetErrorHandlerr)rr²r¼rrrÚGetErrorHandleræsz!xmlTextReaderCore.GetErrorHandler)N)rrrrr5rÎrÏrrrrrËÐs  rËcCs tjƒdS)N)r2ÚxmlPythonCleanupParserrrrrÚ cleanupParserósrÑcCs dd„}tj|ƒtj|ƒdS)NcSs*x$ttƒD]}||ƒ}|dk r |Sq WdS)N)ÚreversedÚ__input_callbacks)ÚURIÚcbrrrrÚfindOpenCallbackþsz/registerInputCallback..findOpenCallback)r2ZxmlRegisterInputCallbackrÓr�)ÚfuncrÖrrrÚregisterInputCallbackýs rØcCs,ttƒdkrtjƒttƒdkr(tjƒdS)Nr)r)rÓržr2ZxmlUnregisterInputCallbackrrrrÚpopInputCallbackss  rÙcCs&tj||ƒ}|dkrtdƒ‚t|d�S)z8Create a parser context for an HTML in-memory document. Nz#htmlCreateMemoryParserCtxt() failed)r )r2ÚhtmlCreateMemoryParserCtxtrÚ parserCtxt)ÚbufferÚsizer*rrrrÚs rÚcCstj|ƒ}|S)zISet and return the previous value for handling HTML omitted tags. )r2ÚhtmlHandleOmittedElem)Úvalr*rrrrÞs rÞcCstj|ƒ}|S)z0Check if an attribute is of content type Script )r2ÚhtmlIsScriptAttribute)rCr*rrrrà%s ràcCs"tjƒ}|dkrtdƒ‚t|d�S)z.Allocate and initialize a new parser context. NzhtmlNewParserCtxt() failed)r )r2ÚhtmlNewParserCtxtrrÛ)r*rrrrá*srácCs&tj||ƒ}|dkrtdƒ‚t|d�S)z3parse an HTML in-memory document and build a tree. NzhtmlParseDoc() failed)r )r2Ú htmlParseDocrrt)Úcurrzr*rrrrâ0s râcCs&tj||ƒ}|dkrtdƒ‚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() failed)r )r2Ú htmlParseFilerrt)Úfilenamerzr*rrrrä6s räcCs*tj||||ƒ}|dkr tdƒ‚t|d�S)z2parse an XML in-memory document and build a tree. NzhtmlReadDoc() failed)r )r2Ú htmlReadDocrrt)rãÚURLrzÚoptionsr*rrrræ>sræcCs*tj||||ƒ}|dkr tdƒ‚t|d�S)z6parse an XML from a file descriptor and build a tree. NzhtmlReadFd() failed)r )r2Ú htmlReadFdrrt)Úfdrçrzrèr*rrrréDsrécCs(tj|||ƒ}|dkrtdƒ‚t|d�S)z6parse an XML file from the filesystem or the network. NzhtmlReadFile() failed)r )r2Ú htmlReadFilerrt)rårzrèr*rrrrëJsrëcCs,tj|||||ƒ}|dkr"tdƒ‚t|d�S)z2parse an XML in-memory document and build a tree. NzhtmlReadMemory() failed)r )r2ÚhtmlReadMemoryrrt)rÜrÝrçrzrèr*rrrrìPsrìcCstj|ƒ}|S)z7Determine if a given attribute is a boolean attribute. )r2ÚhtmlIsBooleanAttr)rCr*rrrríZs rícCs&tj||ƒ}|dkrtdƒ‚t|d�S)zCreates a new HTML document NzhtmlNewDoc() failed)r )r2Ú htmlNewDocrrt)rÔÚ ExternalIDr*rrrrî_s rîcCs&tj||ƒ}|dkrtdƒ‚t|d�S)zWCreates a new HTML document without a DTD node if @URI and @ExternalID are None NzhtmlNewDocNoDtD() failed)r )r2ÚhtmlNewDocNoDtDrrt)rÔrïr*rrrrðes rðcCstj|ƒ}|S)aSet 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. )r2ZxmlSAXDefaultVersion)r˜r*rrrÚSAXDefaultVersionps rñcCs tjƒdS)z$Initialize the default SAX2 handler N)r2ZxmlDefaultSAXHandlerInitrrrrÚdefaultSAXHandlerInitysròcCs tjƒdS)z#Initialize the default SAX handler N)r2ÚdocbDefaultSAXHandlerInitrrrrró}srócCs tjƒdS)z#Initialize the default SAX handler N)r2ÚhtmlDefaultSAXHandlerInitrrrrrô�srôcCstj|||ƒ}|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(); )r2Z xmlCatalogAdd)r ÚorigÚreplacer*rrrÚ catalogAdd‰sr÷cCs tjƒdS)z0Free up all the memory associated with catalogs N)r2ZxmlCatalogCleanuprrrrÚcatalogCleanup‘srøcCs tjƒ}|S)z1Convert all the SGML catalog entries as XML ones )r2ZxmlCatalogConvert)r*rrrÚcatalogConvert•srùcCs|dk r|jƒtj|ƒdS)z7Dump all the global catalog content to the given file. N)r#r2ZxmlCatalogDump)ÚoutrrrÚ catalogDumpšsrûcCstj|ƒ}|S)zoTry to lookup the catalog reference associated to a public ID DEPRECATED, use xmlCatalogResolvePublic() )r2ZxmlCatalogGetPublic)ÚpubIDr*rrrÚcatalogGetPublicŸs rýcCstj|ƒ}|S)zoTry to lookup the catalog reference associated to a system ID DEPRECATED, use xmlCatalogResolveSystem() )r2ZxmlCatalogGetSystem)ÚsysIDr*rrrÚcatalogGetSystem¥s rÿcCstj|ƒ}|S)z!Remove an entry from the catalog )r2ZxmlCatalogRemove)Úvaluer*rrrÚ catalogRemove«s rcCstj||ƒ}|S)z:Do a complete resolution lookup of an External Identifier )r2ZxmlCatalogResolve)rürþr*rrrÚcatalogResolve°s rcCstj|ƒ}|S)zETry to lookup the catalog reference associated to a public ID )r2ZxmlCatalogResolvePublic)rür*rrrÚcatalogResolvePublicµs rcCstj|ƒ}|S)z3Try to lookup the catalog resource for a system ID )r2ZxmlCatalogResolveSystem)rþr*rrrÚcatalogResolveSystem»s rcCstj|ƒ}|S)z*Do a complete resolution lookup of an URI )r2ZxmlCatalogResolveURI)rÔr*rrrÚcatalogResolveURIÀs rcCstj|ƒ}|S)z[Used to set the debug level for catalog operation, 0 disable debugging, 1 enable it )r2ZxmlCatalogSetDebug)Úlevelr*rrrÚcatalogSetDebugÅs rcCs tjƒdS)z�Do the catalog initialization. this function is not thread safe, catalog initialization should preferably be done once at startup N)r2ZxmlInitializeCatalogrrrrÚinitializeCatalogËsrcCs$tj|ƒ}|dkrtdƒ‚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() failed)r )r2ZxmlLoadACatalogrÚcatalog)rår*rrrÚ loadACatalogÑs r cCstj|ƒ}|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 )r2ZxmlLoadCatalog)rår*rrrÚ loadCatalogÚs r cCstj|ƒ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)r2ZxmlLoadCatalogs)ZpathssrrrÚ loadCatalogsâsr cCs$tj|ƒ}|dkrtdƒ‚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() failed)r )r2ZxmlLoadSGMLSuperCatalogrr )rår*rrrÚloadSGMLSuperCatalogés r cCs$tj|ƒ}|dkrtdƒ‚t|d�S)zcreate a new Catalog. NzxmlNewCatalog() failed)r )r2Z xmlNewCatalogrr )Zsgmlr*rrrÚ newCatalogòs rcCs$tj|ƒ}|dkrtdƒ‚t|d�S)zjparse an XML file and build a tree. It's like xmlParseFile() except it bypass all catalog lookups. NzxmlParseCatalogFile() failed)r )r2ZxmlParseCatalogFilerrt)rår*rrrÚparseCatalogFileøs rcCstj|ƒ}|S)zSThis function is DEPRECATED. Use xmlIsBaseChar_ch or xmlIsBaseCharQ instead )r2Z xmlIsBaseChar)Úchr*rrrÚ isBaseChars rcCstj|ƒ}|S)zMThis function is DEPRECATED. Use xmlIsBlank_ch or xmlIsBlankQ instead )r2Z xmlIsBlank)rr*rrrÚisBlank s rcCstj|ƒ}|S)zKThis function is DEPRECATED. Use xmlIsChar_ch or xmlIsCharQ instead )r2Z xmlIsChar)rr*rrrÚisChars rcCstj|ƒ}|S)z9This function is DEPRECATED. Use xmlIsCombiningQ instead )r2ZxmlIsCombining)rr*rrrÚ isCombinings rcCstj|ƒ}|S)zMThis function is DEPRECATED. Use xmlIsDigit_ch or xmlIsDigitQ instead )r2Z xmlIsDigit)rr*rrrÚisDigits rcCstj|ƒ}|S)zSThis function is DEPRECATED. Use xmlIsExtender_ch or xmlIsExtenderQ instead )r2Z xmlIsExtender)rr*rrrÚ isExtender s rcCstj|ƒ}|S)z;This function is DEPRECATED. Use xmlIsIdeographicQ instead )r2ZxmlIsIdeographic)rr*rrrÚ isIdeographic&s rcCstj|ƒ}|S)zUThis function is DEPRECATED. Use xmlIsPubidChar_ch or xmlIsPubidCharQ instead )r2ZxmlIsPubidChar)rr*rrrÚ isPubidChar+s rcCstj|ƒ}|S)z&Convenient way to turn bool into text )r2Z xmlBoolToText)Zboolvalr*rrrÚ boolToText5s rcCs |dk r|jƒtj||ƒdS)z=Dumps informations about the string, shorten it if necessary N)r#r2ZxmlDebugDumpString)Úoutputr.rrrÚdebugDumpString:srcCstj||ƒdS)z6Print the xpath error to libxml default error channel N)r2ZxmlShellPrintXPathError)Z errorTyper¼rrrÚshellPrintXPathError?srcCs tjƒdS)z^Free the dictionary mutex. Do not call unless sure the library is not in use anymore ! N)r2ZxmlDictCleanuprrrrÚ dictCleanupGsrcCs tjƒ}|S)zKDo the dictionary mutex initialization. this function is deprecated )r2ZxmlInitializeDict)r*rrrÚinitializeDictLsrcCstj||ƒ}|S)zbRegisters an alias @alias for an encoding named @name. Existing alias will be overwritten. )r2ZxmlAddEncodingAlias)rCÚaliasr*rrrÚaddEncodingAliasVs r cCs tjƒdS)z}Cleanup the memory allocated for the char encoding support, it unregisters all the encoding handlers and the aliases. N)r2ZxmlCleanupCharEncodingHandlersrrrrÚcleanupCharEncodingHandlers\sr!cCs tjƒdS)zUnregisters all aliases N)r2ZxmlCleanupEncodingAliasesrrrrÚcleanupEncodingAliasesasr"cCstj|ƒ}|S)z%Unregisters an encoding alias @alias )r2ZxmlDelEncodingAlias)rr*rrrÚdelEncodingAliases r#cCstj|ƒ}|S)z-Lookup an encoding name for the given alias. )r2ZxmlGetEncodingAlias)rr*rrrÚ encodingAliasjs r$cCs tjƒ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)r2ZxmlInitCharEncodingHandlersrrrrÚinitCharEncodingHandlersosr%cCs tjƒdS)z:Cleanup up the predefined entities table. Deprecated call N)r2ZxmlCleanupPredefinedEntitiesrrrrÚcleanupPredefinedEntitieszsr&cCs tjƒdS)z0Set up the predefined entities. Deprecated call N)r2ZxmlInitializePredefinedEntitiesrrrrÚinitializePredefinedEntities~sr'cCs$tj|ƒ}|dkrtdƒ‚t|d�S)z1Check whether this name is an predefined entity. NzxmlGetPredefinedEntity() failed)r )r2ZxmlGetPredefinedEntityrrª)rCr*rrrÚpredefinedEntity‚s r(cCs tjƒdS)z'Additional cleanup for multi-threading N)r2ZxmlCleanupGlobalsrrrrÚcleanupGlobalsŒsr)cCs tjƒdS)z.Additional initialisation for multi-threading N)r2ZxmlInitGlobalsrrrrÚ initGlobals�sr*cCstj|ƒ}|S)N)r2ZxmlThrDefDefaultBufferSize)Úvr*rrrÚthrDefDefaultBufferSize”s r,cCstj|ƒ}|S)N)r2Z'xmlThrDefDoValidityCheckingDefaultValue)r+r*rrrÚ$thrDefDoValidityCheckingDefaultValue˜s r-cCstj|ƒ}|S)N)r2Z xmlThrDefGetWarningsDefaultValue)r+r*rrrÚthrDefGetWarningsDefaultValueœs r.cCstj|ƒ}|S)N)r2ZxmlThrDefIndentTreeOutput)r+r*rrrÚthrDefIndentTreeOutput s r/cCstj|ƒ}|S)N)r2ZxmlThrDefKeepBlanksDefaultValue)r+r*rrrÚthrDefKeepBlanksDefaultValue¤s r0cCstj|ƒ}|S)N)r2Z xmlThrDefLineNumbersDefaultValue)r+r*rrrÚthrDefLineNumbersDefaultValue¨s r1cCstj|ƒ}|S)N)r2ZxmlThrDefLoadExtDtdDefaultValue)r+r*rrrÚthrDefLoadExtDtdDefaultValue¬s r2cCstj|ƒ}|S)N)r2ZxmlThrDefParserDebugEntities)r+r*rrrÚthrDefParserDebugEntities°s r3cCstj|ƒ}|S)N)r2Z#xmlThrDefPedanticParserDefaultValue)r+r*rrrÚ thrDefPedanticParserDefaultValue´s r4cCstj|ƒ}|S)N)r2ZxmlThrDefSaveNoEmptyTags)r+r*rrrÚthrDefSaveNoEmptyTags¸s r5cCstj|ƒ}|S)N)r2Z'xmlThrDefSubstituteEntitiesDefaultValue)r+r*rrrÚ$thrDefSubstituteEntitiesDefaultValue¼s r6cCstj|ƒ}|S)N)r2ZxmlThrDefTreeIndentString)r+r*rrrÚthrDefTreeIndentStringÀs r7cCs tjƒdS)zHCleanup the FTP protocol layer. This cleanup proxy informations. N)r2ZxmlNanoFTPCleanuprrrrÚnanoFTPCleanupÈsr8cCs tjƒdS)zpInitialize the FTP protocol layer. Currently it just checks for proxy informations, and get the hostname N)r2ZxmlNanoFTPInitrrrrÚ nanoFTPInitÍsr9cCstj|||||ƒdS)z•Setup the FTP proxy informations. This can also be done by using ftp_proxy ftp_proxy_user and ftp_proxy_password environment variables. N)r2ZxmlNanoFTPProxy)ÚhostÚportÚuserZpasswdr rrrÚ nanoFTPProxyÒsr=cCstj|ƒ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 informations. N)r2ZxmlNanoFTPScanProxy)rçrrrÚnanoFTPScanProxyØsr>cCs tjƒdS)z!Cleanup the HTTP protocol layer. N)r2ZxmlNanoHTTPCleanuprrrrÚnanoHTTPCleanupãsr?cCs tjƒdS)z[Initialize the HTTP protocol layer. Currently it just checks for proxy informations N)r2ZxmlNanoHTTPInitrrrrÚ nanoHTTPInitçsr@cCstj|ƒ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 informations. N)r2ZxmlNanoHTTPScanProxy)rçrrrÚnanoHTTPScanProxyìsrAcCs$tj|ƒ}|dkrtdƒ‚t|d�S)z8Creates a parser context for an XML in-memory document. NzxmlCreateDocParserCtxt() failed)r )r2ZxmlCreateDocParserCtxtrrÛ)rãr*rrrÚcreateDocParserCtxt÷s rBcCs tjƒdS)z–Initialization function for the XML parser. This is not reentrant. Call once before processing in case of use in multithreaded programs. N)r2Z xmlInitParserrrrrÚ initParserýsrCcCstj|ƒ}|S)aHSet 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. )r2ZxmlKeepBlanksDefault)rßr*rrrÚkeepBlanksDefaults rDcCstj|ƒ}|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. )r2ZxmlLineNumbersDefault)rßr*rrrÚlineNumbersDefaults rEcCs"tjƒ}|dkrtdƒ‚t|d�S)z.Allocate and initialize a new parser context. NzxmlNewParserCtxt() failed)r )r2ZxmlNewParserCtxtrrÛ)r*rrrÚ newParserCtxt srFcCs&tj||ƒ}|dkrtdƒ‚t|d�S)z#Load and parse an external subset. NzxmlParseDTD() failed)r )r2Z xmlParseDTDrr«)rïÚSystemIDr*rrrÚparseDTD&s rHcCs$tj|ƒ}|dkrtdƒ‚t|d�S)z2parse an XML in-memory document and build a tree. NzxmlParseDoc() failed)r )r2Z xmlParseDocrrt)rãr*rrrÚparseDoc,s rIcCs$tj|ƒ}|dkrtdƒ‚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() failed)r )r2ZxmlParseEntityrrt)rår*rrrÚ parseEntity2s rJcCs$tj|ƒ}|dkrtdƒ‚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() failed)r )r2Z xmlParseFilerrt)rår*rrrÚ parseFile:s rKcCs&tj||ƒ}|dkrtdƒ‚t|d�S)z/parse an XML in-memory block and build a tree. NzxmlParseMemory() failed)r )r2ZxmlParseMemoryrrt)rÜrÝr*rrrÚ parseMemoryBs rLcCstj|ƒ}|S)zISet and return the previous value for enabling pedantic warnings. )r2ZxmlPedanticParserDefault)rßr*rrrÚpedanticParserDefaultHs rMcCs*tj||||ƒ}|dkr tdƒ‚t|d�S)z2parse an XML in-memory document and build a tree. NzxmlReadDoc() failed)r )r2Z xmlReadDocrrt)rãrçrzrèr*rrrÚreadDocNsrNcCs*tj||||ƒ}|dkr 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() failed)r )r2Z xmlReadFdrrt)rêrçrzrèr*rrrÚreadFdTsrOcCs(tj|||ƒ}|dkrtdƒ‚t|d�S)z6parse an XML file from the filesystem or the network. NzxmlReadFile() failed)r )r2Z xmlReadFilerrt)rårzrèr*rrrÚreadFile\srPcCs,tj|||||ƒ}|dkr"tdƒ‚t|d�S)z2parse an XML in-memory document and build a tree. NzxmlReadMemory() failed)r )r2Z xmlReadMemoryrrt)rÜrÝrçrzrèr*rrrÚ readMemorybsrQcCs$tj|ƒ}|dkrtdƒ‚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() failed)r )r2Z xmlRecoverDocrrt)rãr*rrrÚ recoverDochs rRcCs$tj|ƒ}|dkrtdƒ‚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() failed)r )r2ZxmlRecoverFilerrt)rår*rrrÚ recoverFileps rScCs&tj||ƒ}|dkrtdƒ‚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() failed)r )r2ZxmlRecoverMemoryrrt)rÜrÝr*rrrÚ recoverMemoryys rTcCstj|ƒ}|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. )r2ZxmlSubstituteEntitiesDefault)rßr*rrrÚsubstituteEntitiesDefault�s rUcCstj|ƒ}|S)a0Checks 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 sucessors 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 )r2ZxmlCheckLanguageID)Úlangr*rrrÚcheckLanguageID�s rWcCstj|||ƒ}|S)z#append the char value in the array )r2Z xmlCopyChar)r)rúrßr*rrrÚcopyChar±srXcCstj||ƒ}|S)z#append the char value in the array )r2ZxmlCopyCharMultiByte)rúrßr*rrrÚcopyCharMultiByte¶s rYcCs(tj|||ƒ}|dkrtdƒ‚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() failed)r )r2ZxmlCreateEntityParserCtxtrrÛ)rçÚIDÚbaser*rrrÚcreateEntityParserCtxt»sr\cCs$tj|ƒ}|dkrtdƒ‚t|d�S)z¢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() failed)r )r2ZxmlCreateFileParserCtxtrrÛ)rår*rrrÚcreateFileParserCtxtÃs r]cCs&tj||ƒ}|dkrtdƒ‚t|d�S)z7Create a parser context for an XML in-memory document. Nz"xmlCreateMemoryParserCtxt() failed)r )r2ZxmlCreateMemoryParserCtxtrrÛ)rÜrÝr*rrrÚcreateMemoryParserCtxtËs r^cCs&tj||ƒ}|dkrtdƒ‚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() failed)r )r2ZxmlCreateURLParserCtxtrrÛ)rårèr*rrrÚcreateURLParserCtxtÑs r_cCs&tj||ƒ}|dkrtdƒ‚t|d�S)z¢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!htmlCreateFileParserCtxt() failed)r )r2ÚhtmlCreateFileParserCtxtrrÛ)rårzr*rrrr`Ús r`cCs tjƒdS)zÊInitialize the htmlStartCloseIndex for fast lookup of closing tags names. This is not reentrant. Call xmlInitParser() once before processing in case of use in multithreaded programs. N)r2ÚhtmlInitAutoCloserrrrraâsracCstj|ƒ}|S)zgCheck whether the character is allowed by the production [84] Letter ::= BaseChar | Ideographic )r2Z xmlIsLetter)Úcr*rrrÚisLetterés rccCs"|dkrd}n|j}tj|ƒ}|S)z.Pops the top element name from the name stack N)rr2ÚnamePop)rŠÚctxt__or*rrrrdïs  rdcCs$|dkrd}n|j}tj||ƒ}|S)z3Pushes a new element name on top of the name stack N)rr2ÚnamePush)rŠrrer*rrrrfös  rfcCs8|dkrd}n|j}tj|ƒ}|dkr.tdƒ‚t|d�S)z.Pops the top element node from the node stack NznodePop() failed)r )rr2ÚnodePoprr§)rŠrer*rrrrgýs rgcCs8|dkrd}n|j}|dkr"d}n|j}tj||ƒ}|S)z3Pushes a new element node on top of the node stack N)rr2ÚnodePush)rŠrreZvalue__or*rrrrhs rhcCstj|||ƒdS)zmInterface to parse an XML file or resource pointed by an URI to build an event flow to the SAX object N)r2ZxmlSAXParseFile)ÚSAXrÔZrecoverrrrÚ SAXParseFilesrjcCs&tj||ƒ}|dkrtdƒ‚t|d�S)z1Create a libxml2 input buffer from a Python file NzxmlCreateInputBuffer() failed)r )r2r3rÚ inputBuffer)r8rzr*rrrÚcreateInputBuffers rlcCs&tj||ƒ}|dkrtdƒ‚t|d�S)z2Create a libxml2 output buffer from a Python file NzxmlCreateOutputBuffer() failed)r )r2ZxmlCreateOutputBufferrÚ outputBuffer)r8rzr*rrrÚcreateOutputBuffers rncCs*tj||||ƒ}|dkr 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() failed)r )r2ZxmlCreatePushParserrrÛ)riÚchunkrÝrÔr*rrrÚcreatePushParser#srpcCstj|ƒ}|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. )r2ZxmlDebugMemory)Zactivater*rrrÚ debugMemory+s rqcCs tjƒdS)z/dump the memory allocated in the file .memdump N)r2Z xmlDumpMemoryrrrrÚ dumpMemory2srrcCs*tj||||ƒ}|dkr 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() failed)r )r2ÚhtmlCreatePushParserrrÛ)rirorÝrÔr*rrrrs6srscCstj|||ƒdS)znInterface to parse an HTML file or resource pointed by an URI to build an event flow to the SAX object N)r2ÚhtmlSAXParseFile)rirÔrzrrrrt>srtcCs tjƒ}|S)z8Returns the total amount of memory allocated by libxml2 )r2Z xmlMemoryUsed)r*rrrÚ memoryUsedCsrucCs$tj|ƒ}|dkrtdƒ‚t|d�S)zCreate a new Node NzxmlNewNode() failed)r )r2Z xmlNewNoderr§)rCr*rrrÚnewNodeHs rvcCs tjƒ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. N)r2rÐrrrrÚpythonCleanupParserNsrwcCstj|ƒ}|S)z-Set the entity resolver as a python function )r2ZxmlSetEntityLoader)Zresolverr*rrrÚsetEntityLoaderXs rxcCs tjƒdS)zFCleanup the default Schemas type library associated to RelaxNG N)r2ZxmlRelaxNGCleanupTypesrrrrÚrelaxNGCleanupTypesasrycCs tjƒ}|S)z&Initilize the default type libraries. )r2ZxmlRelaxNGInitTypes)r*rrrÚrelaxNGInitTypesfsrzcCs&tj||ƒ}|dkrtdƒ‚t|d�S)zmCreate an XML RelaxNGs parse context for that memory buffer expected to contain an XML RelaxNGs file. Nz#xmlRelaxNGNewMemParserCtxt() failed)r )r2ZxmlRelaxNGNewMemParserCtxtrÚrelaxNgParserCtxt)rÜrÝr*rrrÚrelaxNGNewMemParserCtxtks r|cCs$tj|ƒ}|dkrtdƒ‚t|d�S)zmCreate an XML RelaxNGs parse context for that file/resource expected to contain an XML RelaxNGs file. Nz xmlRelaxNGNewParserCtxt() failed)r )r2ZxmlRelaxNGNewParserCtxtrr{)rçr*rrrÚrelaxNGNewParserCtxtrs r}cCstj||||ƒ}|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. )r2Z xmlBuildQName)ZncnameÚprefixZmemoryr)r*rrrÚ buildQName}srcCs tjƒ}|S)z3get the default compression mode used, ZLIB based. )r2ZxmlGetCompressMode)r*rrrÚ compressMode…sr€cCstj||ƒ}|S)z7Try to find if the document correspond to an XHTML DTD )r2Z xmlIsXHTML)rKZpublicIDr*rrrÚisXHTMLŠs r�cCs$tj|ƒ}|dkrtdƒ‚t|d�S)z-Creation of a new node containing a comment. NzxmlNewComment() failed)r )r2Z xmlNewCommentrr§)rHr*rrrÚ newComment�s r‚cCs$tj|ƒ}|dkrtdƒ‚t|d�S)zCreates a new XML document NzxmlNewDoc() failed)r )r2Z xmlNewDocrrt)r˜r*rrrÚnewDoc•s rƒcCs&tj||ƒ}|dkrtdƒ‚t|d�S)zhCreation of a processing instruction element. Use xmlDocNewPI preferably to get string interning NzxmlNewPI() failed)r )r2ZxmlNewPIrr§)rCrHr*rrrÚnewPI›s r„cCs$tj|ƒ}|dkrtdƒ‚t|d�S)zCreation of a new text node. NzxmlNewText() failed)r )r2Z xmlNewTextrr§)rHr*rrrÚnewText¢s r…cCs&tj||ƒ}|dkrtdƒ‚t|d�S)zTCreation of a new text node with an extra parameter for the content's length NzxmlNewTextLen() failed)r )r2Z xmlNewTextLenrr§)rHr)r*rrrÚ newTextLen¨s r†cCstj|ƒdS)zqset the default compression mode used, ZLIB based Correct values: 0 (uncompressed) to 9 (max compression) N)r2ZxmlSetCompressMode)ÚmoderrrÚsetCompressMode¯srˆcCstj||ƒ}|S)z;Check that a value conforms to the lexical space of NCName )r2ZxmlValidateNCName)rÚspacer*rrrÚvalidateNCName´s rŠcCstj||ƒ}|S)z s rcCstj|ƒ}|S)z7Check whether the character is part of Po UCS Category )r2Z xmlUCSIsCatPo)rÊr*rrrÚ uCSIsCatPoC s rcCstj|ƒ}|S)z7Check whether the character is part of Ps UCS Category )r2Z xmlUCSIsCatPs)rÊr*rrrÚ uCSIsCatPsH s rcCstj|ƒ}|S)z6Check whether the character is part of S UCS Category )r2Z xmlUCSIsCatS)rÊr*rrrÚ uCSIsCatSM s rcCstj|ƒ}|S)z7Check whether the character is part of Sc UCS Category )r2Z xmlUCSIsCatSc)rÊr*rrrÚ uCSIsCatScR s rcCstj|ƒ}|S)z7Check whether the character is part of Sk UCS Category )r2Z xmlUCSIsCatSk)rÊr*rrrÚ uCSIsCatSkW s rcCstj|ƒ}|S)z7Check whether the character is part of Sm UCS Category )r2Z xmlUCSIsCatSm)rÊr*rrrÚ uCSIsCatSm\ s rcCstj|ƒ}|S)z7Check whether the character is part of So UCS Category )r2Z xmlUCSIsCatSo)rÊr*rrrÚ uCSIsCatSoa s rcCstj|ƒ}|S)z6Check whether the character is part of Z UCS Category )r2Z xmlUCSIsCatZ)rÊr*rrrÚ uCSIsCatZf s rcCstj|ƒ}|S)z7Check whether the character is part of Zl UCS Category )r2Z xmlUCSIsCatZl)rÊr*rrrÚ uCSIsCatZlk s r cCstj|ƒ}|S)z7Check whether the character is part of Zp UCS Category )r2Z xmlUCSIsCatZp)rÊr*rrrÚ uCSIsCatZpp s r cCstj|ƒ}|S)z7Check whether the character is part of Zs UCS Category )r2Z xmlUCSIsCatZs)rÊr*rrrÚ uCSIsCatZsu s r cCstj|ƒ}|S)z:Check whether the character is part of Cherokee UCS Block )r2ZxmlUCSIsCherokee)rÊr*rrrÚ uCSIsCherokeez s r cCstj|ƒ}|S)zRCheck whether the character is part of CombiningDiacriticalMarks UCS Block )r2Z!xmlUCSIsCombiningDiacriticalMarks)rÊr*rrrÚuCSIsCombiningDiacriticalMarks s r cCstj|ƒ}|S)z\Check whether the character is part of CombiningDiacriticalMarksforSymbols UCS Block )r2Z+xmlUCSIsCombiningDiacriticalMarksforSymbols)rÊr*rrrÚ(uCSIsCombiningDiacriticalMarksforSymbols… s rcCstj|ƒ}|S)zKCheck whether the character is part of CombiningHalfMarks UCS Block )r2ZxmlUCSIsCombiningHalfMarks)rÊr*rrrÚuCSIsCombiningHalfMarks‹ s rcCstj|ƒ}|S)zQCheck whether the character is part of CombiningMarksforSymbols UCS Block )r2Z xmlUCSIsCombiningMarksforSymbols)rÊr*rrrÚuCSIsCombiningMarksforSymbols‘ s rcCstj|ƒ}|S)zHCheck whether the character is part of ControlPictures UCS Block )r2ZxmlUCSIsControlPictures)rÊr*rrrÚuCSIsControlPictures— s rcCstj|ƒ}|S)zHCheck whether the character is part of CurrencySymbols UCS Block )r2ZxmlUCSIsCurrencySymbols)rÊr*rrrÚuCSIsCurrencySymbols� s rcCstj|ƒ}|S)zICheck whether the character is part of CypriotSyllabary UCS Block )r2ZxmlUCSIsCypriotSyllabary)rÊr*rrrÚuCSIsCypriotSyllabary£ s rcCstj|ƒ}|S)z:Check whether the character is part of Cyrillic UCS Block )r2ZxmlUCSIsCyrillic)rÊr*rrrÚ uCSIsCyrillic© s rcCstj|ƒ}|S)zKCheck whether the character is part of CyrillicSupplement UCS Block )r2ZxmlUCSIsCyrillicSupplement)rÊr*rrrÚuCSIsCyrillicSupplement® s rcCstj|ƒ}|S)z9Check whether the character is part of Deseret UCS Block )r2ZxmlUCSIsDeseret)rÊr*rrrÚ uCSIsDeseret´ s rcCstj|ƒ}|S)zcCstj|ƒ}|S)zICheck whether the character is part of LinearBSyllabary UCS Block )r2ZxmlUCSIsLinearBSyllabary)rÊr*rrrÚuCSIsLinearBSyllabary— s r?cCstj|ƒ}|S)zFCheck whether the character is part of LowSurrogates UCS Block )r2ZxmlUCSIsLowSurrogates)rÊr*rrrÚuCSIsLowSurrogates� s r@cCstj|ƒ}|S)z;Check whether the character is part of Malayalam UCS Block )r2ZxmlUCSIsMalayalam)rÊr*rrrÚuCSIsMalayalam£ s rAcCstj|ƒ}|S)zXCheck whether the character is part of MathematicalAlphanumericSymbols UCS Block )r2Z'xmlUCSIsMathematicalAlphanumericSymbols)rÊr*rrrÚ$uCSIsMathematicalAlphanumericSymbols¨ s rBcCstj|ƒ}|S)zNCheck whether the character is part of MathematicalOperators UCS Block )r2ZxmlUCSIsMathematicalOperators)rÊr*rrrÚuCSIsMathematicalOperators® s rCcCstj|ƒ}|S)z[Check whether the character is part of MiscellaneousMathematicalSymbols-A UCS Block )r2Z)xmlUCSIsMiscellaneousMathematicalSymbolsA)rÊr*rrrÚ&uCSIsMiscellaneousMathematicalSymbolsA´ s rDcCstj|ƒ}|S)z[Check whether the character is part of MiscellaneousMathematicalSymbols-B UCS Block )r2Z)xmlUCSIsMiscellaneousMathematicalSymbolsB)rÊr*rrrÚ&uCSIsMiscellaneousMathematicalSymbolsBº s rEcCstj|ƒ}|S)zMCheck whether the character is part of MiscellaneousSymbols UCS Block )r2ZxmlUCSIsMiscellaneousSymbols)rÊr*rrrÚuCSIsMiscellaneousSymbolsÀ s rFcCstj|ƒ}|S)zVCheck whether the character is part of MiscellaneousSymbolsandArrows UCS Block )r2Z%xmlUCSIsMiscellaneousSymbolsandArrows)rÊr*rrrÚ"uCSIsMiscellaneousSymbolsandArrowsÆ s rGcCstj|ƒ}|S)zOCheck whether the character is part of MiscellaneousTechnical UCS Block )r2ZxmlUCSIsMiscellaneousTechnical)rÊr*rrrÚuCSIsMiscellaneousTechnicalÌ s rHcCstj|ƒ}|S)z;Check whether the character is part of Mongolian UCS Block )r2ZxmlUCSIsMongolian)rÊr*rrrÚuCSIsMongolianÒ s rIcCstj|ƒ}|S)zGCheck whether the character is part of MusicalSymbols UCS Block )r2ZxmlUCSIsMusicalSymbols)rÊr*rrrÚuCSIsMusicalSymbols× s rJcCstj|ƒ}|S)z9Check whether the character is part of Myanmar UCS Block )r2ZxmlUCSIsMyanmar)rÊr*rrrÚ uCSIsMyanmarÝ s rKcCstj|ƒ}|S)z=Check whether the character is part of NumberForms UCS Block )r2ZxmlUCSIsNumberForms)rÊr*rrrÚuCSIsNumberFormsâ s rLcCstj|ƒ}|S)z7Check whether the character is part of Ogham UCS Block )r2Z xmlUCSIsOgham)rÊr*rrrÚ uCSIsOghamç s rMcCstj|ƒ}|S)z;Check whether the character is part of OldItalic UCS Block )r2ZxmlUCSIsOldItalic)rÊr*rrrÚuCSIsOldItalicì s rNcCstj|ƒ}|S)zTCheck whether the character is part of OpticalCharacterRecognition UCS Block )r2Z#xmlUCSIsOpticalCharacterRecognition)rÊr*rrrÚ uCSIsOpticalCharacterRecognitionñ s rOcCstj|ƒ}|S)z7Check whether the character is part of Oriya UCS Block )r2Z xmlUCSIsOriya)rÊr*rrrÚ uCSIsOriya÷ s rPcCstj|ƒ}|S)z9Check whether the character is part of Osmanya UCS Block )r2ZxmlUCSIsOsmanya)rÊr*rrrÚ uCSIsOsmanyaü s rQcCstj|ƒ}|S)zKCheck whether the character is part of PhoneticExtensions UCS Block )r2ZxmlUCSIsPhoneticExtensions)rÊr*rrrÚuCSIsPhoneticExtensions s rRcCstj|ƒ}|S)z s r]cCstj|ƒ}|S)zZCheck whether the character is part of SupplementalMathematicalOperators UCS Block )r2Z)xmlUCSIsSupplementalMathematicalOperators)rÊr*rrrÚ&uCSIsSupplementalMathematicalOperatorsD s r^cCstj|ƒ}|S)zVCheck whether the character is part of SupplementaryPrivateUseArea-A UCS Block )r2Z$xmlUCSIsSupplementaryPrivateUseAreaA)rÊr*rrrÚ!uCSIsSupplementaryPrivateUseAreaAJ s r_cCstj|ƒ}|S)zVCheck whether the character is part of SupplementaryPrivateUseArea-B UCS Block )r2Z$xmlUCSIsSupplementaryPrivateUseAreaB)rÊr*rrrÚ!uCSIsSupplementaryPrivateUseAreaBP s r`cCstj|ƒ}|S)z8Check whether the character is part of Syriac UCS Block )r2ZxmlUCSIsSyriac)rÊr*rrrÚ uCSIsSyriacV s racCstj|ƒ}|S)z9Check whether the character is part of Tagalog UCS Block )r2ZxmlUCSIsTagalog)rÊr*rrrÚ uCSIsTagalog[ s rbcCstj|ƒ}|S)z:Check whether the character is part of Tagbanwa UCS Block )r2ZxmlUCSIsTagbanwa)rÊr*rrrÚ uCSIsTagbanwa` s rccCstj|ƒ}|S)z6Check whether the character is part of Tags UCS Block )r2Z xmlUCSIsTags)rÊr*rrrÚ uCSIsTagse s rdcCstj|ƒ}|S)z7Check whether the character is part of TaiLe UCS Block )r2Z xmlUCSIsTaiLe)rÊr*rrrÚ uCSIsTaiLej s recCstj|ƒ}|S)zKCheck whether the character is part of TaiXuanJingSymbols UCS Block )r2ZxmlUCSIsTaiXuanJingSymbols)rÊr*rrrÚuCSIsTaiXuanJingSymbolso s rfcCstj|ƒ}|S)z7Check whether the character is part of Tamil UCS Block )r2Z xmlUCSIsTamil)rÊr*rrrÚ uCSIsTamilu s rgcCstj|ƒ}|S)z8Check whether the character is part of Telugu UCS Block )r2ZxmlUCSIsTelugu)rÊr*rrrÚ uCSIsTeluguz s rhcCstj|ƒ}|S)z8Check whether the character is part of Thaana UCS Block )r2ZxmlUCSIsThaana)rÊr*rrrÚ uCSIsThaana s ricCstj|ƒ}|S)z6Check whether the character is part of Thai UCS Block )r2Z xmlUCSIsThai)rÊr*rrrÚ uCSIsThai„ s rjcCstj|ƒ}|S)z9Check whether the character is part of Tibetan UCS Block )r2ZxmlUCSIsTibetan)rÊr*rrrÚ uCSIsTibetan‰ s rkcCstj|ƒ}|S)z:Check whether the character is part of Ugaritic UCS Block )r2ZxmlUCSIsUgaritic)rÊr*rrrÚ uCSIsUgariticŽ s rlcCstj|ƒ}|S)z[Check whether the character is part of UnifiedCanadianAboriginalSyllabics UCS Block )r2Z*xmlUCSIsUnifiedCanadianAboriginalSyllabics)rÊr*rrrÚ'uCSIsUnifiedCanadianAboriginalSyllabics“ s rmcCstj|ƒ}|S)zKCheck whether the character is part of VariationSelectors UCS Block )r2ZxmlUCSIsVariationSelectors)rÊr*rrrÚuCSIsVariationSelectors™ s rncCstj|ƒ}|S)zUCheck whether the character is part of VariationSelectorsSupplement UCS Block )r2Z$xmlUCSIsVariationSelectorsSupplement)rÊr*rrrÚ!uCSIsVariationSelectorsSupplementŸ s rocCstj|ƒ}|S)zeZdZdÎdd„Zdd„Zdd„Zdd „Zd d „Zd d „Zdd„Z dd„Z dd„Z dd„Z dd„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;„Zdd?„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„Zdzd{„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ÆdÇ„ZedÈdÉ„ZfdÊdË„ZgdÌdÍ„ZhdS)Ïr§NcCs,t|ƒdkrtdƒ‚||_tj||d�dS)Nrz'xmlNode got a wrong wrapper object type)r )rÚ TypeErrorrrXr)rr rrrrÊ s zxmlNode.__init__cCsd|jtt|ƒƒfS)Nz)rCÚintr)rrrrÚ__repr__Ï szxmlNode.__repr__cCs&tj|jƒ}|dkrdSt|d�}|S)zGet the namespace of a node N)r )r2Z xmlNodeGetNsrr�)rr*Ú _xmlNode__tmprrrÚnsÓ s   z xmlNode.nscCs&tj|jƒ}|dkrdSt|d�}|S)zGet the namespace of a node N)r )r2ZxmlNodeGetNsDefsrr�)rr*rxrrrÚnsDefsÚ s   zxmlNode.nsDefscCstj||j|ƒdS)zIDumps debug information for the element node, it is recursive N)r2ZxmlDebugDumpNoder)rrÚdepthrrrÚ debugDumpNodeå szxmlNode.debugDumpNodecCstj||j|ƒdS)zQDumps debug information for the list of element node, it is recursive N)r2ZxmlDebugDumpNodeListr)rrr{rrrÚdebugDumpNodeListê szxmlNode.debugDumpNodeListcCstj||j|ƒdS)zMDumps debug information for the element node, it is not recursive N)r2ZxmlDebugDumpOneNoder)rrr{rrrÚdebugDumpOneNodeï szxmlNode.debugDumpOneNodecCstj|jƒ}|S)zCount the children of @node. )r2ZxmlLsCountNoder)rr*rrrÚ lsCountNodeô s zxmlNode.lsCountNodecCstj||jƒdS)z,Dump to @output the type and name of @node. N)r2Z xmlLsOneNoder)rrrrrÚ lsOneNodeù szxmlNode.lsOneNodecCstj|jƒdS)zPrint node to the output FILE N)r2ZxmlShellPrintNoder)rrrrÚshellPrintNodeý szxmlNode.shellPrintNodecCs@|dkrd}n|j}tj|j|ƒ}|dkr2tdƒ‚t|d�}|S)a9Add 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() failed)r )rr2Z xmlAddChildrr§)rrãÚcur__or*rxrrrÚaddChild s zxmlNode.addChildcCs@|dkrd}n|j}tj|j|ƒ}|dkr2tdƒ‚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() failed)r )rr2ZxmlAddChildListrr§)rrãr‚r*rxrrrÚ addChildList s zxmlNode.addChildListcCstj|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)r2ZxmlNodeAddContentr)rrHrrrÚ addContent szxmlNode.addContentcCstj|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)r2ZxmlNodeAddContentLenr)rrHr)rrrÚ addContentLen# szxmlNode.addContentLencCs@|dkrd}n|j}tj|j|ƒ}|dkr2tdƒ‚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() failed)r )rr2ZxmlAddNextSiblingrr§)rrPÚelem__or*rxrrrÚaddNextSibling* s zxmlNode.addNextSiblingcCs@|dkrd}n|j}tj|j|ƒ}|dkr2tdƒ‚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() failed)r )rr2ZxmlAddPrevSiblingrr§)rrPr‡r*rxrrrÚaddPrevSibling8 s zxmlNode.addPrevSiblingcCs@|dkrd}n|j}tj|j|ƒ}|dkr2tdƒ‚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() failed)r )rr2Z xmlAddSiblingrr§)rrPr‡r*rxrrrÚ addSiblingG s zxmlNode.addSiblingcCs,tj|j|ƒ}|dkrtdƒ‚t|d�}|S)zDo a copy of the node. NzxmlCopyNode() failed)r )r2Z xmlCopyNoderrr§)rÚextendedr*rxrrrÚcopyNodeS s  zxmlNode.copyNodecCs*tj|jƒ}|dkrtdƒ‚t|d�}|S)zqDo a recursive copy of the node list. Use xmlDocCopyNodeList() if possible to ensure string interning. NzxmlCopyNodeList() failed)r )r2ZxmlCopyNodeListrrr§)rr*rxrrrÚ copyNodeListZ s   zxmlNode.copyNodeListcCs@|dkrd}n|j}tj|j|ƒ}|dkr2tdƒ‚t|d�}|S)zDo a copy of the attribute. NzxmlCopyProp() failed)r )rr2Ú xmlCopyProprri)rrãr‚r*rxrrrÚcopyPropb s zxmlNode.copyPropcCs@|dkrd}n|j}tj|j|ƒ}|dkr2tdƒ‚t|d�}|S)z Do a copy of an attribute list. NzxmlCopyPropList() failed)r )rr2ÚxmlCopyPropListrri)rrãr‚r*rxrrrÚ copyPropListk s zxmlNode.copyPropListcCsB|dkrd}n|j}tj|j||ƒ}|dkr4tdƒ‚t|d�}|S)z+Do a copy of the node to a given document. NzxmlDocCopyNode() failed)r )rr2ÚxmlDocCopyNoderr§)rrsr‹Údoc__or*rxrrrÚ docCopyNodet s zxmlNode.docCopyNodecCs@|dkrd}n|j}tj||jƒ}|dkr2tdƒ‚t|d�}|S)z&Do a recursive copy of the node list. NzxmlDocCopyNodeList() failed)r )rr2ÚxmlDocCopyNodeListrr§)rrsr“r*rxrrrÚdocCopyNodeList} s zxmlNode.docCopyNodeListcCs<|dkrd}n|j}tj||jƒ}|dkr.dSt|d�}|S)zvSet the root element of the document (doc->children is a list containing possibly comments, PIs, etc ...). N)r )rr2ÚxmlDocSetRootElementr§)rrsr“r*rxrrrÚdocSetRootElement† s zxmlNode.docSetRootElementcCs&tj|jƒ}|dkrdSt|d�}|S)aFinds 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. N)r )r2ZxmlFirstElementChildrr§)rr*rxrrrÚfirstElementChild� s   zxmlNode.firstElementChildcCstj|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)r2Z xmlFreeNoder)rrrrÚfreeNode› szxmlNode.freeNodecCstj|jƒdS)zlFree a node and all its siblings, this is a recursive behaviour, all the children are freed too. N)r2ZxmlFreeNodeListr)rrrrÚ freeNodeList¡ szxmlNode.freeNodeListcCs&|dkrd}n|j}tj||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)rr2ÚxmlNodeGetBase)rrsr“r*rrrÚgetBase¦ s zxmlNode.getBasecCstj|jƒ}|S)aRead 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. )r2rmr)rr*rrrr–² s zxmlNode.getContentcCstj|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. )r2ZxmlNodeGetLangr)rr*rrrÚgetLangº s zxmlNode.getLangcCstj|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. )r2ZxmlNodeGetSpacePreserver)rr*rrrÚgetSpacePreserveÁ s zxmlNode.getSpacePreservecCs*tj|j||ƒ}|dkrdSt|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. N)r )r2Z xmlHasNsProprri)rrCÚ nameSpacer*rxrrrÚ hasNsPropÈ s  zxmlNode.hasNsPropcCs(tj|j|ƒ}|dkrdSt|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. N)r )r2Z xmlHasProprri)rrCr*rxrrrÚhasPropÔ s  zxmlNode.hasPropcCstj|jƒ}|S)zgChecks whether this node is an empty or whitespace only (and possibly ignorable) text-node. )r2ZxmlIsBlankNoder)rr*rrrÚ isBlankNodeÝ s zxmlNode.isBlankNodecCstj|jƒ}|S)zIs this node a Text node ? )r2Z xmlNodeIsTextr)rr*rrrÚisTextã s zxmlNode.isTextcCs*tj|jƒ}|dkrtdƒ‚t|d�}|S)z!Search the last child of a node. NzxmlGetLastChild() failed)r )r2ZxmlGetLastChildrrr§)rr*rxrrrÚ lastChildè s   zxmlNode.lastChildcCs&tj|jƒ}|dkrdSt|d�}|S)aFinds 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. N)r )r2ZxmlLastElementChildrr§)rr*rxrrrÚlastElementChildï s   zxmlNode.lastElementChildcCstj|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 )r2Z xmlGetLineNor)rr*rrrÚlineNoú s zxmlNode.lineNocCs(|dkrd}n|j}tj||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)rr2ÚxmlNodeListGetRawString)rrsÚinLiner“r*rrrÚlistGetRawString s zxmlNode.listGetRawStringcCs(|dkrd}n|j}tj||j|ƒ}|S)zlBuild the string equivalent to the text contained in the Node list made of TEXTs and ENTITY_REFs N)rr2ÚxmlNodeListGetString)rrsr©r“r*rrrÚ listGetString s zxmlNode.listGetStringcCsD|dkrd}n|j}tj|j|||ƒ}|dkr6tdƒ‚t|d�}|S)aQCreation 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() failed)r )rr2Ú xmlNewChildrr§)rryrCrHÚns__or*rxrrrÚnewChild s  zxmlNode.newChildcCs.tj|j||ƒ}|dkr tdƒ‚t|d�}|S)aWCreation 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() failed)r )r2ZxmlNewNsrrr�)rrŽr~r*rxrrrÚnewNs% s  z xmlNode.newNscCsD|dkrd}n|j}tj|j|||ƒ}|dkr6tdƒ‚t|d�}|S)zPCreate a new property tagged with a namespace and carried by a node. NzxmlNewNsProp() failed)r )rr2Ú xmlNewNsProprri)rryrCrr®r*rxrrrÚ newNsProp1 s zxmlNode.newNsPropcCsD|dkrd}n|j}tj|j|||ƒ}|dkr6tdƒ‚t|d�}|S)zPCreate a new property tagged with a namespace and carried by a node. NzxmlNewNsPropEatName() failed)r )rr2ÚxmlNewNsPropEatNamerri)rryrCrr®r*rxrrrÚnewNsPropEatName; s zxmlNode.newNsPropEatNamecCs.tj|j||ƒ}|dkr tdƒ‚t|d�}|S)z)Create a new property carried by a node. NzxmlNewProp() failed)r )r2Z xmlNewProprrri)rrCrr*rxrrrÚnewPropE s  zxmlNode.newPropcCsD|dkrd}n|j}tj|j|||ƒ}|dkr6tdƒ‚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() failed)r )rr2ÚxmlNewTextChildrr§)rryrCrHr®r*rxrrrÚ newTextChildL s  zxmlNode.newTextChildcCs&tj|jƒ}|dkrdSt|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. N)r )r2ZxmlNextElementSiblingrr§)rr*rxrrrÚnextElementSibling_ s   zxmlNode.nextElementSiblingcCstj|j|ƒ}|S)arSearch 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. )r2ZxmlGetNoNsPropr)rrCr*rrrÚnoNsPropj szxmlNode.noNsPropcCstj|jƒ}|S)z0Build a structure based Path for the given node )r2ZxmlGetNodePathr)rr*rrrÚnodePatht s zxmlNode.nodePathcCstj|j||ƒ}|S)aFSearch 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. )r2Z xmlGetNsPropr)rrCr r*rrrÚnsPropy szxmlNode.nsPropcCs&tj|jƒ}|dkrdSt|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. N)r )r2ZxmlPreviousElementSiblingrr§)rr*rxrrrÚpreviousElementSibling‚ s   zxmlNode.previousElementSiblingcCstj|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. )r2Z xmlGetPropr)rrCr*rrrÚprop� sz xmlNode.propcCs&|dkrd}n|j}tj||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)rr2ÚxmlReconciliateNs)rrsr“r*rrrÚreconciliateNs˜ s zxmlNode.reconciliateNscCs@|dkrd}n|j}tj|j|ƒ}|dkr2tdƒ‚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() failed)r )rr2ZxmlReplaceNoderr§)rrãr‚r*rxrrrÚ replaceNode§ s zxmlNode.replaceNodecCsB|dkrd}n|j}tj||j|ƒ}|dkr4tdƒ‚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() failed)r )rr2Ú xmlSearchNsrr�)rrsr r“r*rxrrrÚsearchNs² s zxmlNode.searchNscCsB|dkrd}n|j}tj||j|ƒ}|dkr4tdƒ‚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() failed)r )rr2ÚxmlSearchNsByHrefrr�)rrsrŽr“r*rxrrrÚsearchNsByHrefÁ s zxmlNode.searchNsByHrefcCstj|j|ƒdS)z\Set (or reset) the base URI of a node, i.e. the value of the xml:base attribute. N)r2ZxmlNodeSetBaser)rrÀrrrÚsetBaseÌ szxmlNode.setBasecCstj|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)r2ZxmlNodeSetContentr)rrHrrrÚ setContentÑ szxmlNode.setContentcCstj|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)r2ZxmlNodeSetContentLenr)rrHr)rrrÚ setContentLenØ szxmlNode.setContentLencCstj|j|ƒdS)zRSet the language of a node, i.e. the values of the xml:lang attribute. N)r2ZxmlNodeSetLangr)rrVrrrÚsetLangß szxmlNode.setLangcCs&|dkrd}n|j}tj|j|ƒdS)z|dkrd}n|j}tj|j|||ƒ}|dkr6tdƒ‚t|ƒS)z-Create a new xmlXPathObjectPtr of type range NzxmlXPtrNewRange() failed)rr2ZxmlXPtrNewRangerr®)rZ startindexr Zendindexrr*rrrÚxpointerNewRangekszxmlNode.xpointerNewRangecCs:|dkrd}n|j}tj|j|ƒ}|dkr2tdƒ‚t|ƒS)z;Create a new xmlXPathObjectPtr of type range using 2 nodes NzxmlXPtrNewRangeNodes() failed)rr2ZxmlXPtrNewRangeNodesrr®)rr rr*rrrÚxpointerNewRangeNodessszxmlNode.xpointerNewRangeNodes)N)irrrrrwryrzr|r}r~rr€r�rƒr„r…r†rˆr‰rŠrŒr�r�r‘r”r–r˜r™ršr›r�r–ržrŸr¡r¢r£r¤r¥r¦r§rªr¬r¯r°r²r´rµr·r¸r¹rºr»r¼r½r¿rÀrÂrÄrÅrÆrÇrÈrÊrËrÍrÏrÐrÑrÓrÔrÖr×rÙrÚrÝrßrárârärærçrèrérêrërìrîrðròrôrörørúrürþrrrrrr rrrrrrrr§É sÌ                                          r§c@sfeZdZdØdd„Zdd„Zdd„Zdd „Zd d „Zd d „Zdd„Z dd„Z dd„Z dd„Z dd„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;„Zdd?„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„Zdzd{„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ÆdÇ„ZedÈdÉ„ZfdÊdË„ZgdÌdÍ„ZhdÎdÏ„ZidÐdÑ„ZjdÒdÓ„ZkdÔdÕ„ZldÖdׄZmdS)ÙrtNcCs,t|ƒdkrtdƒ‚||_tj||d�dS)Nrz&xmlDoc got a wrong wrapper object type)r )rrurr§r)rr rrrr|s zxmlDoc.__init__cCsd|jtt|ƒƒfS)Nz)rCrvr)rrrrrw�szxmlDoc.__repr__cCstj|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. )r2ÚhtmlAutoCloseTagr)rrCrPr*rrrrˆszxmlDoc.htmlAutoCloseTagcCstj|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 )r2ÚhtmlIsAutoClosedr)rrPr*rrrr�szxmlDoc.htmlIsAutoClosedcCs*|dkrd}n|j}tj||j||ƒdS)zDump an HTML document. N)rr2ÚhtmlDocContentDumpFormatOutput)rÚbufrzr{Úbuf__orrrr›sz%xmlDoc.htmlDocContentDumpFormatOutputcCs(|dkrd}n|j}tj||j|ƒdS)z:Dump an HTML document. Formating return/spaces are added. N)rr2ÚhtmlDocContentDumpOutput)rrrzrrrrr¡szxmlDoc.htmlDocContentDumpOutputcCstj||jƒ}|S)z'Dump an HTML document to an open FILE. )r2Ú htmlDocDumpr)rr²r*rrrr§szxmlDoc.htmlDocDumpcCstj|jƒ}|S)z,Encoding definition lookup in the Meta tags )r2ÚhtmlGetMetaEncodingr)rr*rrrr¬s zxmlDoc.htmlGetMetaEncodingcCs(|dkrd}n|j}tj||j|ƒdS)znDump an HTML node, recursive behaviour,children are printed too, and formatting returns are added. N)rr2ÚhtmlNodeDumpFile)rrúrãr‚rrrr±szxmlDoc.htmlNodeDumpFilecCs,|dkrd}n|j}tj||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)rr2ÚhtmlNodeDumpFileFormat)rrúrãrzr{r‚r*rrrr¸s zxmlDoc.htmlNodeDumpFileFormatcCs@|dkrd}n|j}|dkr"d}n|j}tj||j|||ƒdS)zLDump an HTML node, recursive behaviour,children are printed too. N)rr2ÚhtmlNodeDumpFormatOutput)rrrãrzr{rr‚rrrrÁszxmlDoc.htmlNodeDumpFormatOutputcCs>|dkrd}n|j}|dkr"d}n|j}tj||j||ƒdS)zuDump an HTML node, recursive behaviour,children are printed too, and formatting returns/spaces are added. N)rr2ÚhtmlNodeDumpOutput)rrrãrzrr‚rrrrÊszxmlDoc.htmlNodeDumpOutputcCstj||jƒ}|S)zYDump an HTML document to a file. If @filename is "-" the stdout file is used. )r2Ú htmlSaveFiler)rrår*rrrrÓszxmlDoc.htmlSaveFilecCstj||j|ƒ}|S)zkDump an HTML document to a file using a given encoding and formatting returns/spaces are added. )r2ÚhtmlSaveFileEncr)rrårzr*rrrrÙszxmlDoc.htmlSaveFileEnccCstj||j||ƒ}|S)z8Dump an HTML document to a file using a given encoding. )r2ÚhtmlSaveFileFormatr)rrårzr{r*rrrr ßszxmlDoc.htmlSaveFileFormatcCstj|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. )r2ÚhtmlSetMetaEncodingr)rrzr*rrrr!äszxmlDoc.htmlSetMetaEncodingcCstj||jƒ}|S)z_Check the document for potential content problems, and output the errors to @output )r2ZxmlDebugCheckDocumentr)rrr*rrrÚdebugCheckDocumentïszxmlDoc.debugCheckDocumentcCstj||jƒdS)z9Dumps debug information for the document, it's recursive N)r2ZxmlDebugDumpDocumentr)rrrrrÚdebugDumpDocumentõszxmlDoc.debugDumpDocumentcCstj||jƒdS)zIDumps debug information cncerning the document, not recursive N)r2ZxmlDebugDumpDocumentHeadr)rrrrrÚdebugDumpDocumentHeadùszxmlDoc.debugDumpDocumentHeadcCstj||jƒdS)zODumps debug information for all the entities in use by the document N)r2ZxmlDebugDumpEntitiesr)rrrrrÚdebugDumpEntitiesþszxmlDoc.debugDumpEntitiescCs4tj|j|||||ƒ}|dkr&tdƒ‚t|d�}|S)z)Register a new entity for this document. NzxmlAddDocEntity() failed)r )r2ZxmlAddDocEntityrrrª)rrCr rïrGrHr*Ú _xmlDoc__tmprrrÚ addDocEntitys  zxmlDoc.addDocEntitycCs4tj|j|||||ƒ}|dkr&tdƒ‚t|d�}|S)z=Register a new entity for this document DTD external subset. NzxmlAddDtdEntity() failed)r )r2ZxmlAddDtdEntityrrrª)rrCr rïrGrHr*r&rrrÚ addDtdEntitys  zxmlDoc.addDtdEntitycCs,tj|j|ƒ}|dkrtdƒ‚t|d�}|S)z:Do an entity lookup in the document entity hash table and NzxmlGetDocEntity() failed)r )r2ZxmlGetDocEntityrrrª)rrCr*r&rrrÚ docEntitys  zxmlDoc.docEntitycCs,tj|j|ƒ}|dkrtdƒ‚t|d�}|S)z5Do an entity lookup in the DTD entity hash table and NzxmlGetDtdEntity() failed)r )r2ZxmlGetDtdEntityrrrª)rrCr*r&rrrÚ dtdEntitys  zxmlDoc.dtdEntitycCstj|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. )r2ZxmlEncodeEntitiesr)rrÌr*rrrÚencodeEntities#szxmlDoc.encodeEntitiescCstj|j|ƒ}|S)aDo 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. )r2ZxmlEncodeEntitiesReentrantr)rrÌr*rrrÚencodeEntitiesReentrant+szxmlDoc.encodeEntitiesReentrantcCstj|j|ƒ}|S)z”Do a global encoding of a string, replacing the predefined entities this routine is reentrant, and result must be deallocated. )r2ZxmlEncodeSpecialCharsr)rrÌr*rrrÚencodeSpecialChars3szxmlDoc.encodeSpecialCharscCs4tj|j|||||ƒ}|dkr&tdƒ‚t|d�}|S)aQCreate 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 responsability of the caller to link it to the document later or free it when not needed anymore. NzxmlNewEntity() failed)r )r2Z xmlNewEntityrrrª)rrCr rïrGrHr*r&rrrÚ newEntity:s  zxmlDoc.newEntitycCs,tj|j|ƒ}|dkrtdƒ‚t|d�}|S)z=Do an entity lookup in the internal and external subsets and NzxmlGetParameterEntity() failed)r )r2ZxmlGetParameterEntityrrrª)rrCr*r&rrrÚparameterEntityFs  zxmlDoc.parameterEntitycCs*tj|jƒ}|dkrtdƒ‚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() failed)r )r2ZxmlRelaxNGNewDocParserCtxtrrr{)rr*r&rrrÚrelaxNGNewDocParserCtxtQs   zxmlDoc.relaxNGNewDocParserCtxtcCs&|dkrd}n|j}tj||jƒ}|S)z$Validate a document tree in memory. N)rr2ÚxmlRelaxNGValidateDoc)rrŠrer*rrrÚrelaxNGValidateDoc[s zxmlDoc.relaxNGValidateDoccCs<|dkrd}n|j}|dkr"d}n|j}tj||j|ƒ}|S)zŒValidate a full subtree when xmlRelaxNGValidatePushElement() returned 0 and the content of the node has been expanded. N)rr2ÚxmlRelaxNGValidateFullElement)rrŠrPrer‡r*rrrÚrelaxNGValidateFullElementbsz!xmlDoc.relaxNGValidateFullElementcCs<|dkrd}n|j}|dkr"d}n|j}tj||j|ƒ}|S)z7Pop the element end from the RelaxNG validation stack. N)rr2ÚxmlRelaxNGValidatePopElement)rrŠrPrer‡r*rrrÚrelaxNGValidatePopElementmsz xmlDoc.relaxNGValidatePopElementcCs<|dkrd}n|j}|dkr"d}n|j}tj||j|ƒ}|S)z:Push a new element start on the RelaxNG validation stack. N)rr2ÚxmlRelaxNGValidatePushElement)rrŠrPrer‡r*rrrÚrelaxNGValidatePushElementvsz!xmlDoc.relaxNGValidatePushElementcCs,tj|j|ƒ}|dkrtdƒ‚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() failed)r )r2Z xmlCopyDocrrrt)rÚ recursiver*r&rrrÚcopyDocƒs  zxmlDoc.copyDoccCsB|dkrd}n|j}tj||j|ƒ}|dkr4tdƒ‚t|d�}|S)z+Do a copy of the node to a given document. NzxmlDocCopyNode() failed)r )rr2r’rr§)rr›r‹Únode__or*r&rrrrŒŒs zxmlDoc.copyNodecCs@|dkrd}n|j}tj|j|ƒ}|dkr2tdƒ‚t|d�}|S)z&Do a recursive copy of the node list. NzxmlDocCopyNodeList() failed)r )rr2r•rr§)rr›r;r*r&rrrr�•s zxmlDoc.copyNodeListcCs0tj|j|||ƒ}|dkr"tdƒ‚t|d�}|S)z)Create the internal subset of a document NzxmlCreateIntSubset() failed)r )r2ZxmlCreateIntSubsetrrr«)rrCrïrGr*r&rrrÚcreateIntSubsetžs  zxmlDoc.createIntSubsetcCstj|jƒ}|S)z5get the compression ratio for a document, ZLIB based )r2ZxmlGetDocCompressModer)rr*rrrÚdocCompressMode¥s zxmlDoc.docCompressModecCstj||jƒ}|S)z&Dump an XML document to an open FILE. )r2Z xmlDocDumpr)rr²r*rrrÚdumpªsz xmlDoc.dumpcCs(|dkrd}n|j}tj||j|ƒdS)zQDump an XML/HTML node, recursive behaviour, children are printed too. N)rr2Z xmlElemDump)rr²rãr‚rrrÚelemDump¯szxmlDoc.elemDumpcCstj||j|ƒ}|S)z&Dump an XML document to an open FILE. )r2ZxmlDocFormatDumpr)rr²r{r*rrrÚ formatDump¶szxmlDoc.formatDumpcCstj|jƒdS)zIFree up all the structures used by a document, tree included. N)r2r”r)rrrrÚfreeDoc»szxmlDoc.freeDoccCs*tj|jƒ}|dkrtdƒ‚t|d�}|S)zvGet the root element of the document (doc->children is a list containing possibly comments, PIs, etc ...). NzxmlDocGetRootElement() failed)r )r2ZxmlDocGetRootElementrrr§)rr*r&rrrÚgetRootElementÀs   zxmlDoc.getRootElementcCs*tj|jƒ}|dkrtdƒ‚t|d�}|S)z&Get the internal subset of a document NzxmlGetIntSubset() failed)r )r2ZxmlGetIntSubsetrrr«)rr*r&rrrÚ intSubsetÈs   zxmlDoc.intSubsetcCs.tj|j||ƒ}|dkr tdƒ‚t|d�}|S)z1Creation of a new node containing a CDATA block. NzxmlNewCDataBlock() failed)r )r2ZxmlNewCDataBlockrrr§)rrHr)r*r&rrrÚ newCDataBlockÏs  zxmlDoc.newCDataBlockcCs,tj|j|ƒ}|dkrtdƒ‚t|d�}|S)z,Creation of a new character reference node. NzxmlNewCharRef() failed)r )r2Z xmlNewCharRefrrr§)rrCr*r&rrrÚ newCharRefÖs  zxmlDoc.newCharRefcCs,tj|j|ƒ}|dkrtdƒ‚t|d�}|S)zJCreation of a new node containing a comment within a document. NzxmlNewDocComment() failed)r )r2ZxmlNewDocCommentrrr§)rrHr*r&rrrÚ newDocCommentÝs  zxmlDoc.newDocCommentcCs*tj|jƒ}|dkrtdƒ‚t|d�}|S)z!Creation of a new Fragment node. NzxmlNewDocFragment() failed)r )r2ZxmlNewDocFragmentrrr§)rr*r&rrrÚnewDocFragmentås   zxmlDoc.newDocFragmentcCsD|dkrd}n|j}tj|j|||ƒ}|dkr6tdƒ‚t|d�}|S)atCreation 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() failed)r )rr2Ú xmlNewDocNoderr§)rryrCrHr®r*r&rrrÚ newDocNodeìs zxmlDoc.newDocNodecCsD|dkrd}n|j}tj|j|||ƒ}|dkr6tdƒ‚t|d�}|S)atCreation 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. NzxmlNewDocNodeEatName() failed)r )rr2ÚxmlNewDocNodeEatNamerr§)rryrCrHr®r*r&rrrÚnewDocNodeEatNameús zxmlDoc.newDocNodeEatNamecCs.tj|j||ƒ}|dkr tdƒ‚t|d�}|S)z.Creation of a processing instruction element. NzxmlNewDocPI() failed)r )r2Z xmlNewDocPIrrr§)rrCrHr*r&rrrÚnewDocPIs  zxmlDoc.newDocPIcCs.tj|j||ƒ}|dkr tdƒ‚t|d�}|S)z-Create a new property carried by a document. NzxmlNewDocProp() failed)r )r2Z xmlNewDocProprrri)rrCrr*r&rrrÚ newDocProps  zxmlDoc.newDocPropcCsD|dkrd}n|j}tj|j|||ƒ}|dkr6tdƒ‚t|d�}|S)zcCreation of a new node element within a document. @ns and @content are optional (None). NzxmlNewDocRawNode() failed)r )rr2ÚxmlNewDocRawNoderr§)rryrCrHr®r*r&rrrÚ newDocRawNodes zxmlDoc.newDocRawNodecCs,tj|j|ƒ}|dkrtdƒ‚t|d�}|S)z/Creation of a new text node within a document. NzxmlNewDocText() failed)r )r2Z xmlNewDocTextrrr§)rrHr*r&rrrÚ newDocText s  zxmlDoc.newDocTextcCs.tj|j||ƒ}|dkr 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() failed)r )r2ZxmlNewDocTextLenrrr§)rrHr)r*r&rrrÚ newDocTextLen's  zxmlDoc.newDocTextLencCs0tj|j|||ƒ}|dkr"tdƒ‚t|d�}|S)zrCreation of a new DTD for the external subset. To create an internal subset, use xmlCreateIntSubset(). NzxmlNewDtd() failed)r )r2Z xmlNewDtdrrr«)rrCrïrGr*r&rrrÚnewDtd/s  z xmlDoc.newDtdcCs.tj|j||ƒ}|dkr tdƒ‚t|d�}|S)z\Creation of a Namespace, the old way using PI and without scoping DEPRECATED !!! NzxmlNewGlobalNs() failed)r )r2ZxmlNewGlobalNsrrr�)rrŽr~r*r&rrrÚ newGlobalNs7s  zxmlDoc.newGlobalNscCs,tj|j|ƒ}|dkrtdƒ‚t|d�}|S)z"Creation of a new reference node. NzxmlNewReference() failed)r )r2ZxmlNewReferencerrr§)rrCr*r&rrrÚ newReference?s  zxmlDoc.newReferencecCsB|dkrd}n|j}|dkr"d}n|j}tj||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)rr2ÚxmlNodeDumpOutput)rrrãrr{rzrr‚rrrÚnodeDumpOutputFszxmlDoc.nodeDumpOutputcCs&|dkrd}n|j}tj|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)rr2rœ)rrãr‚r*rrrÚ nodeGetBaseQs zxmlDoc.nodeGetBasecCs(|dkrd}n|j}tj|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)rr2r¨)rr¬r©Úlist__or*rrrÚnodeListGetRawString]s zxmlDoc.nodeListGetRawStringcCs(|dkrd}n|j}tj|j||ƒ}|S)zlBuild the string equivalent to the text contained in the Node list made of TEXTs and ENTITY_REFs N)rr2r«)rr¬r©rXr*rrrÚnodeListGetStringgs zxmlDoc.nodeListGetStringcCs&|dkrd}n|j}tj|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)rr2r¾)rÚtreeÚtree__or*rrrr¿os zxmlDoc.reconciliateNscCstj||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. )r2Z xmlSaveFiler)rrår*rrrÚsaveFile~szxmlDoc.saveFilecCstj||j|ƒ}|S)z:Dump an XML document, converting it to the given encoding )r2ZxmlSaveFileEncr)rrårzr*rrrÚ saveFileEnc…szxmlDoc.saveFileEnccCs(|dkrd}n|j}tj||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)rr2Ú xmlSaveFileTo)rrrzrr*rrrÚ saveFileToŠs zxmlDoc.saveFileTocCstj||j|ƒ}|S)adDump 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 )r2ZxmlSaveFormatFiler)rrår{r*rrrÚsaveFormatFile“szxmlDoc.saveFormatFilecCstj||j||ƒ}|S)z*Dump an XML document to a file or an URL. )r2ZxmlSaveFormatFileEncr)rrårzr{r*rrrÚsaveFormatFileEnc�szxmlDoc.saveFormatFileEnccCs*|dkrd}n|j}tj||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)rr2ÚxmlSaveFormatFileTo)rrrzr{rr*rrrÚsaveFormatFileTo¢s zxmlDoc.saveFormatFileTocCsB|dkrd}n|j}tj|j||ƒ}|dkr4tdƒ‚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() failed)r )rr2rÁrr�)rr›r r;r*r&rrrr«s zxmlDoc.searchNscCsB|dkrd}n|j}tj|j||ƒ}|dkr4tdƒ‚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() failed)r )rr2rÃrr�)rr›rŽr;r*r&rrrrĺs zxmlDoc.searchNsByHrefcCstj|j|ƒdS)zxset the compression ratio for a document, ZLIB based Correct values: 0 (uncompressed) to 9 (max compression) N)r2ZxmlSetDocCompressModer)rr‡rrrÚsetDocCompressModeÅszxmlDoc.setDocCompressModecCs&|dkrd}n|j}tj||jƒdS)zchildren is a list containing possibly comments, PIs, etc ...). N)r )rr2r—r§)rÚrootZroot__or*r&rrrÚsetRootElementÐs zxmlDoc.setRootElementcCs&|dkrd}n|j}tj||jƒdS)zJupdate all nodes under the tree to point to the right document N)rr2rÒ)rr[r\rrrrÓÚszxmlDoc.setTreeDoccCs,tj|j|ƒ}|dkrtdƒ‚t|d�}|S)z‚Parse the value string and build the node list associated. Should produce a flat tree with only TEXTs and ENTITY_REFs. NzxmlStringGetNodeList() failed)r )r2ZxmlStringGetNodeListrrr§)rrr*r&rrrÚstringGetNodeListás  zxmlDoc.stringGetNodeListcCs.tj|j||ƒ}|dkr tdƒ‚t|d�}|S)z‚Parse the value string and build the node list associated. Should produce a flat tree with only TEXTs and ENTITY_REFs. Nz xmlStringLenGetNodeList() failed)r )r2ZxmlStringLenGetNodeListrrr§)rrr)r*r&rrrÚstringLenGetNodeListés  zxmlDoc.stringLenGetNodeListcCs,tj|j|ƒ}|dkrtdƒ‚t|d�}|S)z,Search the attribute declaring the given ID NzxmlGetID() failed)r )r2ZxmlGetIDrrri)rrZr*r&rrrrZõs  z xmlDoc.IDcCs<|dkrd}n|j}|dkr"d}n|j}tj|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)rr2rÛ)rrPrxr‡rÜr*rrrrÝüsz xmlDoc.isIDcCstj|j|ƒ}|S)z�Search in the DtDs whether an element accept Mixed content (or ANY) basically if it is supposed to accept text childs )r2ZxmlIsMixedElementr)rrCr*rrrÚisMixedElementszxmlDoc.isMixedElementcCs<|dkrd}n|j}|dkr"d}n|j}tj|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)rr2rÞ)rrPrxr‡rÜr*rrrrßsz xmlDoc.isRefcCs&|dkrd}n|j}tj|j|ƒ}|S)zORemove the given attribute from the ID table maintained internally. N)rr2Ú xmlRemoveID)rrxrÜr*rrrÚremoveIDs zxmlDoc.removeIDcCs&|dkrd}n|j}tj|j|ƒ}|S)zPRemove the given attribute from the Ref table maintained internally. N)rr2Ú xmlRemoveRef)rrxrÜr*rrrÚ removeRef!s zxmlDoc.removeRefcCs@|dkrd}n|j}|dkr"d}n|j}tj||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)rr2Ú#xmlValidCtxtNormalizeAttributeValue)rrŠrPrCrrer‡r*rrrÚ validCtxtNormalizeAttributeValue)s z'xmlDoc.validCtxtNormalizeAttributeValuecCs*|dkrd}n|j}tj|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)rr2rà)rrPrCrr‡r*rrrrá9s z#xmlDoc.validNormalizeAttributeValuecCs&|dkrd}n|j}tj||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)rr2ÚxmlValidateDocument)rrŠrer*rrrÚvalidateDocumentEs zxmlDoc.validateDocumentcCs&|dkrd}n|j}tj||jƒ}|S)aDoes 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)rr2ÚxmlValidateDocumentFinal)rrŠrer*rrrÚvalidateDocumentFinalOs zxmlDoc.validateDocumentFinalcCs<|dkrd}n|j}|dkr"d}n|j}tj||j|ƒ}|S)aTry 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)rr2ÚxmlValidateDtd)rrŠr¦reÚdtd__or*rrrÚ validateDtdZszxmlDoc.validateDtdcCs&|dkrd}n|j}tj||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)rr2ÚxmlValidateDtdFinal)rrŠrer*rrrÚvalidateDtdFinalgs zxmlDoc.validateDtdFinalcCs<|dkrd}n|j}|dkr"d}n|j}tj||j|ƒ}|S)z-Try to validate the subtree under an element N)rr2ÚxmlValidateElement)rrŠrPrer‡r*rrrÚvalidateElementtszxmlDoc.validateElementcCs(|dkrd}n|j}tj||j|ƒ}|S)zbValidate that the given name match a notation declaration. - [ VC: Notation Declared ] N)rr2ÚxmlValidateNotationUse)rrŠrSrer*rrrÚvalidateNotationUse}s zxmlDoc.validateNotationUsec CsT|dkrd}n|j}|dkr"d}n|j}|dkr6d}n|j}tj||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)rr2ÚxmlValidateOneAttribute) rrŠrPrxrrer‡rÜr*rrrÚvalidateOneAttribute…szxmlDoc.validateOneAttributecCs<|dkrd}n|j}|dkr"d}n|j}tj||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)rr2ÚxmlValidateOneElement)rrŠrPrer‡r*rrrÚvalidateOneElement–szxmlDoc.validateOneElementc CsV|dkrd}n|j}|dkr"d}n|j}|dkr6d}n|j}tj||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)rr2ÚxmlValidateOneNamespace) rrŠrPr~ryrrer‡r®r*rrrÚvalidateOneNamespace¤szxmlDoc.validateOneNamespacecCs>|dkrd}n|j}|dkr"d}n|j}tj||j||ƒ}|S)z/Pop the element end from the validation stack. N)rr2ÚxmlValidatePopElement)rrŠrPÚqnamerer‡r*rrrÚvalidatePopElementµszxmlDoc.validatePopElementcCs>|dkrd}n|j}|dkr"d}n|j}tj||j||ƒ}|S)z2Push a new element start on the validation stack. N)rr2ÚxmlValidatePushElement)rrŠrPr…rer‡r*rrrÚvalidatePushElement¾szxmlDoc.validatePushElementcCs&|dkrd}n|j}tj||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)rr2ÚxmlValidateRoot)rrŠrer*rrrÚ validateRootÇs zxmlDoc.validateRootcCstj|jƒ}|S)z=Implement the XInclude substitution on the XML document @doc )r2ZxmlXIncludeProcessr)rr*rrrÚxincludeProcessÕs zxmlDoc.xincludeProcesscCstj|j|ƒ}|S)z=Implement the XInclude substitution on the XML document @doc )r2ZxmlXIncludeProcessFlagsr)rrãr*rrrÚxincludeProcessFlagsÚszxmlDoc.xincludeProcessFlagscCs&|dkrd}n|j}tj||jƒ}|S)zuSetup an xmltextReader to parse a preparsed XML document. This reuses the existing @reader xmlTextReader. N)rr2ÚxmlReaderNewWalker)rÚreaderÚ reader__or*rrrÚ NewWalkerãs zxmlDoc.NewWalkercCs*tj|jƒ}|dkrtdƒ‚t|d�}|S)z2Create an xmltextReader for a preparsed document. NzxmlReaderWalker() failed)r )r2ZxmlReaderWalkerrrr¯)rr*r&rrrÚ readerWalkerës   zxmlDoc.readerWalkercCs*tj|jƒ}|dkrtdƒ‚t|d�}|S)zCreate an XML Schemas parse context for that document. NB. The document may be modified during the parsing process. Nz"xmlSchemaNewDocParserCtxt() failed)r )r2ZxmlSchemaNewDocParserCtxtrrr·)rr*r&rrrÚschemaNewDocParserCtxtös   zxmlDoc.schemaNewDocParserCtxtcCs&|dkrd}n|j}tj||jƒ}|S)z$Validate a document tree in memory. N)rr2ÚxmlSchemaValidateDoc)rrŠrer*rrrÚschemaValidateDocþs zxmlDoc.schemaValidateDoccCs*tj|jƒ}|dkrtdƒ‚t|d�}|S)zCreate a new xmlXPathContext NzxmlXPathNewContext() failed)r )r2ZxmlXPathNewContextrrr )rr*r&rrrr… s   zxmlDoc.xpathNewContextcCstj|jƒ}|S)amCall 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. )r2ZxmlXPathOrderDocElemsr)rr*rrrÚxpathOrderDocElemss zxmlDoc.xpathOrderDocElemscCsV|dkrd}n|j}|dkr"d}n|j}tj|j||ƒ}|dkrHtdƒ‚t|d�}|S)zCreate a new XPointer context NzxmlXPtrNewContext() failed)r )rr2rrr )rÚherer Zhere__or r*r&rrrr s zxmlDoc.xpointerNewContext)N)nrrrrrwrrrrrrrrrrrrr r!r"r#r$r%r'r(r)r*r+r,r-r.r/r0r2r4r6r8r:rŒr�r<r=r>r?r@rArBrCrDrErFrGrIrKrLrMrOrPrQrRrSrTrVrWrYrZr¿r]r^r`rarbrdrÂrÄrerÊrgrÓrhrirZrÝrjrßrlrnrprárrrtrwryr{r}rr�rƒr†rˆrŠr‹rŒr�r‘r’r”r…r•r rrrrrt{sÖ                                       rtc@s¦eZdZd¨dd„Zdd„Zdd„Zdd „Zd d „Zd d „Zdd„Z dd„Z dd„Z dd„Z dd„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;„Zdd?„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„Zdzd{„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ÛNcCs||_tj||d�dS)N)r )rrºr)rr rrrr*szparserCtxt.__init__cCs |jdkrtj|jƒd|_dS)N)rr2r»)rrrrr5.s  zparserCtxt.__del__cCs*tj|jƒ}|dkrtdƒ‚t|d�}|S)z-Get the document tree from a parser context. NzxmlParserGetDoc() failed)r )r2ZxmlParserGetDocrrrt)rr*Ú_parserCtxt__tmprrrrs4s   zparserCtxt.doccCstj|jƒ}|S)z4Get the validity information from a parser context. )r2ZxmlParserGetIsValidr)rr*rrrÚisValid;s zparserCtxt.isValidcCstj|j|ƒdS)zmyDoc is not freed. N)r2ÚhtmlFreeParserCtxtr)rrrrr¥†szparserCtxt.htmlFreeParserCtxtcCstj|jƒ}|S)zcparse Reference declarations [66] CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';' )r2ÚhtmlParseCharRefr)rr*rrrr¦‹s zparserCtxt.htmlParseCharRefcCstj|j|||ƒ}|S)zParse a Chunk of memory )r2ÚhtmlParseChunkr)rrorÝÚ terminater*rrrr§‘szparserCtxt.htmlParseChunkcCstj|jƒ}|S)zZparse an HTML document (and build a tree if using the standard SAX interface). )r2ÚhtmlParseDocumentr)rr*rrrr©–s zparserCtxt.htmlParseDocumentcCstj|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)r2ÚhtmlParseElementr)rrrrrªœszparserCtxt.htmlParseElementcCstj|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. )r2ZxmlByteConsumedr)rr*rrrÚ byteConsumed§s zparserCtxt.byteConsumedcCstj|jƒdS)zMClear (release owned resources) and reinitialize a parser context N)r2ZxmlClearParserCtxtr)rrrrÚclearParserCtxt±szparserCtxt.clearParserCtxtcCs2tj|j||||ƒ}|dkr$tdƒ‚t|d�}|S)zkparse an XML in-memory document and build a tree. This reuses the existing @ctxt parser context NzxmlCtxtReadDoc() failed)r )r2ZxmlCtxtReadDocrrrt)rrãrçrzrèr*r—rrrÚ ctxtReadDoc¶s  zparserCtxt.ctxtReadDoccCs2tj|j||||ƒ}|dkr$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() failed)r )r2Z xmlCtxtReadFdrrrt)rrêrçrzrèr*r—rrrÚ ctxtReadFd¾s  zparserCtxt.ctxtReadFdcCs0tj|j|||ƒ}|dkr"tdƒ‚t|d�}|S)zoparse an XML file from the filesystem or the network. This reuses the existing @ctxt parser context NzxmlCtxtReadFile() failed)r )r2ZxmlCtxtReadFilerrrt)rrårzrèr*r—rrrÚ ctxtReadFileÈs  zparserCtxt.ctxtReadFilecCs4tj|j|||||ƒ}|dkr&tdƒ‚t|d�}|S)zkparse an XML in-memory document and build a tree. This reuses the existing @ctxt parser context NzxmlCtxtReadMemory() failed)r )r2ZxmlCtxtReadMemoryrrrt)rrÜrÝrçrzrèr*r—rrrÚctxtReadMemoryÐs  zparserCtxt.ctxtReadMemorycCstj|jƒdS)zReset a parser context N)r2Z xmlCtxtResetr)rrrrÚ ctxtResetØszparserCtxt.ctxtResetcCstj|j||||ƒ}|S)zReset a push parser context )r2ZxmlCtxtResetPushr)rrorÝrårzr*rrrÚ ctxtResetPushÜszparserCtxt.ctxtResetPushcCstj|j|ƒ}|S)z*Applies the options to the parser context )r2ZxmlCtxtUseOptionsr)rrèr*rrrÚctxtUseOptionsászparserCtxt.ctxtUseOptionscCstj|jƒ}|S)zInitialize a parser context )r2ZxmlInitParserCtxtr)rr*rrrÚinitParserCtxtæs zparserCtxt.initParserCtxtcCstj|j|||ƒ}|S)zParse a Chunk of memory )r2Z xmlParseChunkr)rrorÝr¨r*rrrÚ parseChunkëszparserCtxt.parseChunkcCstj|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*)? )r2ZxmlParseDocumentr)rr*rrrÚ parseDocumentðs zparserCtxt.parseDocumentcCstj|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 )r2ZxmlParseExtParsedEntr)rr*rrrÚparseExtParsedEnt÷s zparserCtxt.parseExtParsedEntcCstj|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)r2ZxmlSetupParserForBufferr)rrÜrårrrÚsetupParserForBufferþszparserCtxt.setupParserForBuffercCstj|jƒdS)z!Blocks further parser processing N)r2Z xmlStopParserr)rrrrÚ stopParserszparserCtxt.stopParsercCstj|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 ';' )r2ZxmlDecodeEntitiesr)rr)Úwhatr Úend2Úend3r*rrrÚdecodeEntities szparserCtxt.decodeEntitiescCs&|dkrd}n|j}tj|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)rr2ÚxmlHandleEntity)rZentityZ entity__orrrÚ handleEntityszparserCtxt.handleEntitycCstj|jƒ}|S)aCparse 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 )r2ZxmlNamespaceParseNCNamer)rr*rrrÚnamespaceParseNCNames zparserCtxt.namespaceParseNCNamecCstj|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)? )r2ZxmlNamespaceParseNSDefr)rr*rrrÚnamespaceParseNSDef&s zparserCtxt.namespaceParseNSDefcCstj|jƒdS)z"Skip to the next char input char. N)r2Z xmlNextCharr)rrrrÚnextChar/szparserCtxt.nextCharcCstj|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. )r2ZxmlParseAttValuer)rr*rrrÚ parseAttValue3s zparserCtxt.parseAttValuecCstj|jƒdS)z«: parse the Attribute list def for an element [52] AttlistDecl ::= '' [53] AttDef ::= S Name S AttType S DefaultDecl N)r2ZxmlParseAttributeListDeclr)rrrrÚparseAttributeListDeclOsz!parserCtxt.parseAttributeListDeclcCstj|jƒdS)z»Parse escaped pure raw content. [18] CDSect ::= CDStart CData CDEnd [19] CDStart ::= '' Char*)) [21] CDEnd ::= ']]>' N)r2ZxmlParseCDSectr)rrrrÚ parseCDSectUszparserCtxt.parseCDSectcCstj|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)r2ZxmlParseCharDatar)rZcdatarrrÚ parseCharData[szparserCtxt.parseCharDatacCstj|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. )r2ZxmlParseCharRefr)rr*rrrÚ parseCharRefes zparserCtxt.parseCharRefcCstj|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 ::= '' N)r2ZxmlParseCommentr)rrrrÚ parseCommentmszparserCtxt.parseCommentcCstj|jƒdS)zhParse a content: [43] content ::= (element | CharData | Reference | CDSect | PI | Comment)* N)r2ZxmlParseContentr)rrrrÚ parseContenttszparserCtxt.parseContentcCstj|jƒdS)a)parse a DOCTYPE declaration [28] doctypedecl ::= '' [ VC: Root Element Type ] The Name in the document type declaration must match the element type of the root element. N)r2ZxmlParseDocTypeDeclr)rrrrÚparseDocTypeDeclyszparserCtxt.parseDocTypeDeclcCstj|jƒdS)zíparse an XML element, this is highly recursive [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)r2ZxmlParseElementr)rrrrÚ parseElement�szparserCtxt.parseElementcCstj|jƒ}|S)zÓparse an Element declaration. [45] elementdecl ::= '' [ VC: Unique Element Type Declaration ] No element type may be declared more than once )r2ZxmlParseElementDeclr)rr*rrrÚparseElementDeclˆs zparserCtxt.parseElementDeclcCstj|jƒ}|S)zYparse the XML encoding name [81] EncName ::= [A-Za-z] ([A-Za-z0-9._] | '-')* )r2ZxmlParseEncNamer)rr*rrrÚ parseEncName�s zparserCtxt.parseEncNamecCstj|jƒ}|S)z©parse the XML encoding declaration [80] EncodingDecl ::= S 'encoding' Eq ('"' EncName '"' | "'" EncName "'") this setups the conversion filters. )r2ZxmlParseEncodingDeclr)rr*rrrÚparseEncodingDecl–s zparserCtxt.parseEncodingDeclcCstj|jƒdS)zrparse an end of tag [42] ETag ::= '' With namespace [NS 9] ETag ::= '' N)r2ZxmlParseEndTagr)rrrrÚ parseEndTag�szparserCtxt.parseEndTagcCstj|jƒdS)aÃparse ' [72] PEDecl ::= '' [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)r2ZxmlParseEntityDeclr)rrrrÚparseEntityDecl¢szparserCtxt.parseEntityDeclcCs*tj|jƒ}|dkrtdƒ‚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() failed)r )r2ZxmlParseEntityRefrrrª)rr*r—rrrÚparseEntityRef¬s   zparserCtxt.parseEntityRefcCstj|j||ƒdS)z¾parse Markup declarations from an external subset [30] extSubset ::= textDecl? extSubsetDecl [31] extSubsetDecl ::= (markupdecl | conditionalSect | PEReference | S) * N)r2ZxmlParseExternalSubsetr)rrïrGrrrÚparseExternalSubsetÅszparserCtxt.parseExternalSubsetcCstj|jƒdS)asparse 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)r2ZxmlParseMarkupDeclr)rrrrÚparseMarkupDeclËszparserCtxt.parseMarkupDeclcCstj|jƒdS)zOparse an XML Misc* optional field. [27] Misc ::= Comment | PI | S N)r2Z xmlParseMiscr)rrrrÚ parseMiscÜszparserCtxt.parseMisccCstj|jƒ}|S)zÖparse an XML name. [4] NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar | Extender [5] Name ::= (Letter | '_' | ':') (NameChar)* [6] Names ::= Name (#x20 Name)* )r2Z xmlParseNamer)rr*rrrÚ parseNameás zparserCtxt.parseNamecCstj|jƒdS)avxmlParseNamespace: parse specific PI '' Hence there is actually 3 choices: 'PUBLIC' S PubidLiteral 'PUBLIC' S PubidLiteral S SystemLiteral and 'SYSTEM' S SystemLiteral See the NOTE on xmlParseExternalID(). N)r2ZxmlParseNotationDeclr)rrrrÚparseNotationDecløszparserCtxt.parseNotationDeclcCstj|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)r2ZxmlParsePEReferencer)rrrrÚparsePEReferenceszparserCtxt.parsePEReferencecCstj|jƒdS)z®parse an XML Processing Instruction. [16] PI ::= '' Char*)))? '?>' The processing is transfered to SAX once parsed. N)r2Z xmlParsePIr)rrrrÚparsePIszparserCtxt.parsePIcCstj|jƒ}|S)zbparse the name of a PI [17] PITarget ::= Name - (('X' | 'x') ('M' | 'm') ('L' | 'l')) )r2ZxmlParsePITargetr)rr*rrrÚ parsePITargets zparserCtxt.parsePITargetcCstj|jƒ}|S)znparse an XML public literal [12] PubidLiteral ::= '"' PubidChar* '"' | "'" (PubidChar - "'")* "'" )r2ZxmlParsePubidLiteralr)rr*rrrÚparsePubidLiterals zparserCtxt.parsePubidLiteralcCstj|jƒ}|S)z•Parse and return a string between quotes or doublequotes TODO: Deprecated, to be removed at next drop of binary compatibility )r2ZxmlParseQuotedStringr)rr*rrrÚparseQuotedString%s zparserCtxt.parseQuotedStringcCstj|jƒdS)aLparse 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)r2ZxmlParseReferencer)rrrrÚparseReference,szparserCtxt.parseReferencecCstj|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. )r2ZxmlParseSDDeclr)rr*rrrÚ parseSDDecl4s zparserCtxt.parseSDDeclcCstj|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? '/>' )r2ZxmlParseStartTagr)rr*rrrÚ parseStartTagHs zparserCtxt.parseStartTagcCstj|jƒ}|S)zZparse an XML Literal [11] SystemLiteral ::= ('"' [^"]* '"') | ("'" [^']* "'") )r2ZxmlParseSystemLiteralr)rr*rrrÚparseSystemLiteralVs zparserCtxt.parseSystemLiteralcCstj|jƒdS)z~parse an XML declaration header for external entities [77] TextDecl ::= '' N)r2ZxmlParseTextDeclr)rrrrÚ parseTextDecl\szparserCtxt.parseTextDeclcCstj|jƒ}|S)z€parse the XML version. [24] VersionInfo ::= S 'version' Eq (' VersionNum ' | " VersionNum ") [25] Eq ::= S? '=' S? )r2ZxmlParseVersionInfor)rr*rrrÚparseVersionInfoas zparserCtxt.parseVersionInfocCstj|jƒ}|S)zwparse the XML version value. [26] VersionNum ::= '1.' [0-9]+ In practice allow [0-9].[0-9]+ at that level )r2ZxmlParseVersionNumr)rr*rrrÚparseVersionNumgs zparserCtxt.parseVersionNumcCstj|jƒdS)zoparse an XML declaration header [23] XMLDecl ::= '' N)r2ZxmlParseXMLDeclr)rrrrÚ parseXMLDeclmszparserCtxt.parseXMLDeclcCstj|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)r2ZxmlParserHandlePEReferencer)rrrrÚparserHandlePEReferencersz"parserCtxt.parserHandlePEReferencecCstj|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)r2ZxmlParserHandleReferencer)rrrrÚparserHandleReference‡s z parserCtxt.parserHandleReferencecCstj|jƒ}|S)zqxmlPopInput: the current input pointed by ctxt->input came to an end pop it and return the next char. )r2Z xmlPopInputr)rr*rrrÚpopInput–s zparserCtxt.popInputcCstj|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)* )r2Z xmlScanNamer)rr*rrrÚscanNameœs zparserCtxt.scanNamecCstj|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. )r2ZxmlSkipBlankCharsr)rr*rrrÚskipBlankChars§s zparserCtxt.skipBlankCharscCstj|j|||||ƒ}|S)z¬Takes a entity string content and process to do the adequate substitutions. [67] Reference ::= EntityRef | CharRef [69] PEReference ::= '%' Name ';' )r2ZxmlStringDecodeEntitiesr)rr.rºr r»r¼r*rrrÚstringDecodeEntities®szparserCtxt.stringDecodeEntitiescCstj|j||||||ƒ}|S)z¬Takes a entity string content and process to do the adequate substitutions. [67] Reference ::= EntityRef | CharRef [69] PEReference ::= '%' Name ';' )r2ZxmlStringLenDecodeEntitiesr)rr.r)rºr r»r¼r*rrrÚstringLenDecodeEntitiesµsz"parserCtxt.stringLenDecodeEntities)N)Vrrrrr5rsr˜r™ršr›rœr�ržrŸr r¡r¢r£r¤r¥r¦r§r©rªr«r¬r­r®r¯r°r±r²r³r´rµr¶r·r¸r¹r½r¿rÀrÁrÂrÃrÄrÅrÆrÇrÈrÉrÊrËrÌrÍrÎrÏrÐrÑrÒrÓrÔrÕrÖr×rØrÙrÚrÛrÜrÝrÞrßràrárârãrärårærçrèrérêrërìrrrrrÛ)s¦           rÛc@sfeZdZddd„Zdd„Zdd„Zdd „Zd d „Zd d „Zdd„Z dd„Z dd„Z dd„Z dd„Z dS)riNcCs,t|ƒdkrtdƒ‚||_tj||d�dS)Nrz'xmlAttr got a wrong wrapper object type)r )rrurr§r)rr rrrr½s zxmlAttr.__init__cCsd|jtt|ƒƒfS)Nz)rCrvr)rrrrrwÂszxmlAttr.__repr__cCstj||j|ƒdS)z*Dumps debug information for the attribute N)r2ZxmlDebugDumpAttrr)rrr{rrrÚ debugDumpAttrÉszxmlAttr.debugDumpAttrcCstj||j|ƒdS)z/Dumps debug information for the attribute list N)r2ZxmlDebugDumpAttrListr)rrr{rrrÚdebugDumpAttrListÍszxmlAttr.debugDumpAttrListcCs@|dkrd}n|j}tj||jƒ}|dkr2tdƒ‚t|d�}|S)zDo a copy of the attribute. NzxmlCopyProp() failed)r )rr2rŽrri)rrFÚ target__or*Ú _xmlAttr__tmprrrr�Õs zxmlAttr.copyPropcCs@|dkrd}n|j}tj||jƒ}|dkr2tdƒ‚t|d�}|S)z Do a copy of an attribute list. NzxmlCopyPropList() failed)r )rr2r�rri)rrFrïr*rðrrrr‘Þs zxmlAttr.copyPropListcCstj|jƒdS)z1Free one attribute, all the content is freed too N)r2Z xmlFreePropr)rrrrÚfreePropçszxmlAttr.freePropcCstj|jƒdS)zQFree a property and all its siblings, all the children are freed too. N)r2ZxmlFreePropListr)rrrrÚ freePropListëszxmlAttr.freePropListcCstj|jƒ}|S)z‚Unlink and free one attribute, all the content is freed too Note this doesn't work for namespace definition attributes )r2Z xmlRemovePropr)rr*rrrÚ removePropðs zxmlAttr.removePropcCs&|dkrd}n|j}tj||jƒ}|S)zORemove the given attribute from the ID table maintained internally. N)rr2rk)rrsr“r*rrrrlús zxmlAttr.removeIDcCs&|dkrd}n|j}tj||jƒ}|S)zPRemove the given attribute from the Ref table maintained internally. N)rr2rm)rrsr“r*rrrrns zxmlAttr.removeRef)N)rrrrrwrírîr�r‘rñròrórlrnrrrrri¼s    ric@seZdZddd„Zdd„ZdS)r©NcCs,t|ƒdkrtdƒ‚||_tj||d�dS)Nrz,xmlAttribute got a wrong wrapper object type)r )rrurr§r)rr rrrr s zxmlAttribute.__init__cCsd|jtt|ƒƒfS)Nz")rCrvr)rrrrrwszxmlAttribute.__repr__)N)rrrrrwrrrrr© s r©c@sfeZdZddd„Zdd„Zdd„Zdd „Zd d „Zd d „Zdd„Z dd„Z dd„Z dd„Z dd„Z dS)r NcCs|dkr||_dSd|_dS)N)r)rr rrrrszcatalog.__init__cCs |jdkrtj|jƒd|_dS)N)rr2ZxmlFreeCatalog)rrrrr5s  zcatalog.__del__cCstj|j|||ƒ}|S)zYAdd an entry in the catalog, it may overwrite existing but different entries. )r2ZxmlACatalogAddr)rr rõrör*rrrÚadd!sz catalog.addcCstj|jƒ}|S)zCheck is a catalog is empty )r2ZxmlCatalogIsEmptyr)rr*rrrÚcatalogIsEmpty's zcatalog.catalogIsEmptycCstj|jƒ}|S)z1Convert all the SGML catalog entries as XML ones )r2ZxmlConvertSGMLCatalogr)rr*rrrÚconvertSGMLCatalog,s zcatalog.convertSGMLCatalogcCstj|j|ƒdS)z*Dump the given catalog to the given file. N)r2ZxmlACatalogDumpr)rrúrrrr>1sz catalog.dumpcCstj|j|ƒ}|S)z!Remove an entry from the catalog )r2ZxmlACatalogRemover)rrr*rrrÚremove5szcatalog.removecCstj|j||ƒ}|S)z:Do a complete resolution lookup of an External Identifier )r2ZxmlACatalogResolver)rrürþr*rrrÚresolve:szcatalog.resolvecCstj|j|ƒ}|S)z_Try to lookup the catalog local reference associated to a public ID in that catalog )r2ZxmlACatalogResolvePublicr)rrür*rrrÚ resolvePublic?szcatalog.resolvePubliccCstj|j|ƒ}|S)z3Try to lookup the catalog resource for a system ID )r2ZxmlACatalogResolveSystemr)rrþr*rrrÚ resolveSystemEszcatalog.resolveSystemcCstj|j|ƒ}|S)z*Do a complete resolution lookup of an URI )r2ZxmlACatalogResolveURIr)rrÔr*rrrÚ resolveURIJszcatalog.resolveURI)N)rrrrr5rôrõrör>r÷rørùrúrûrrrrr s  r c@sVeZdZddd„Zdd„Zdd„Zdd „Zd d „Zd d „Zdd„Z dd„Z dd„Z dS)r«NcCs,t|ƒdkrtdƒ‚||_tj||d�dS)Nrz&xmlDtd got a wrong wrapper object type)r )rrurr§r)rr rrrrPs zxmlDtd.__init__cCsd|jtt|ƒƒfS)Nz)rCrvr)rrrrrwUszxmlDtd.__repr__cCstj||jƒdS)z$Dumps debug information for the DTD N)r2ZxmlDebugDumpDTDr)rrrrrÚ debugDumpDTD\szxmlDtd.debugDumpDTDcCs*tj|jƒ}|dkrtdƒ‚t|d�}|S)zDo a copy of the dtd. NzxmlCopyDtd() failed)r )r2Z xmlCopyDtdrrr«)rr*Ú _xmlDtd__tmprrrÚcopyDtdds   zxmlDtd.copyDtdcCstj|jƒdS)zFree a DTD structure. N)r2Z xmlFreeDtdr)rrrrÚfreeDtdkszxmlDtd.freeDtdcCs.tj|j||ƒ}|dkr tdƒ‚t|d�}|S)zQSearch the DTD for the description of this attribute on this element. NzxmlGetDtdAttrDesc() failed)r )r2ZxmlGetDtdAttrDescrrr©)rrPrCr*rýrrrÚ dtdAttrDescss  zxmlDtd.dtdAttrDesccCs,tj|j|ƒ}|dkrtdƒ‚t|d�}|S)z3Search the DTD for the description of this element NzxmlGetDtdElementDesc() failed)r )r2ZxmlGetDtdElementDescrrr¨)rrCr*rýrrrÚdtdElementDesc{s  zxmlDtd.dtdElementDesccCs0tj|j|||ƒ}|dkr"tdƒ‚t|d�}|S)z[Search the DTD for the description of this qualified attribute on this element. NzxmlGetDtdQAttrDesc() failed)r )r2ZxmlGetDtdQAttrDescrrr©)rrPrCr~r*rýrrrÚ dtdQAttrDesc‚s  zxmlDtd.dtdQAttrDesccCs.tj|j||ƒ}|dkr tdƒ‚t|d�}|S)z3Search the DTD for the description of this element NzxmlGetDtdQElementDesc() failed)r )r2ZxmlGetDtdQElementDescrrr¨)rrCr~r*rýrrrÚdtdQElementDescŠs  zxmlDtd.dtdQElementDesc)N) rrrrrwrürþrÿrrrrrrrrr«Os r«c@seZdZddd„Zdd„ZdS)r¨NcCs,t|ƒdkrtdƒ‚||_tj||d�dS)Nrz*xmlElement got a wrong wrapper object type)r )rrurr§r)rr rrrr’s zxmlElement.__init__cCsd|jtt|ƒƒfS)Nz )rCrvr)rrrrrw—szxmlElement.__repr__)N)rrrrrwrrrrr¨‘s r¨c@s&eZdZddd„Zdd„Zdd„ZdS) rªNcCs,t|ƒdkrtdƒ‚||_tj||d�dS)Nrz)xmlEntity got a wrong wrapper object type)r )rrurr§r)rr rrrr›s zxmlEntity.__init__cCsd|jtt|ƒƒfS)Nz)rCrvr)rrrrrw szxmlEntity.__repr__cCs&|dkrd}n|j}tj||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)rr2r¾)rrŠrerrrr¿§szxmlEntity.handleEntity)N)rrrrrwr¿rrrrrªšs rªc@sVeZdZddd„Zdd„Zdd„Zdd „Zd d „Zd d „Zdd„Z dd„Z dd„Z dS)r¬NcCs|dkr||_dSd|_dS)N)r)rr rrrr°szError.__init__cCstj|jƒ}|S)z'The error code, e.g. an xmlParserError )r2ZxmlErrorGetCoder)rr*rrrrʵs z Error.codecCstj|jƒ}|S)z+What part of the library raised this error )r2ZxmlErrorGetDomainr)rr*rrrÚdomainºs z Error.domaincCstj|jƒ}|S)z the filename )r2ZxmlErrorGetFiler)rr*rrrr8¿s z Error.filecCstj|jƒ}|S)zhow consequent is the error )r2ZxmlErrorGetLevelr)rr*rrrrÄs z Error.levelcCstj|jƒ}|S)zthe line number if available )r2ZxmlErrorGetLiner)rr*rrrÚlineÉs z Error.linecCstj|jƒ}|S)z)human-readable informative error message )r2ZxmlErrorGetMessager)rr*rrrÚmessageÎs z Error.messagecCs&|dkrd}n|j}tj|j|ƒ}|S)z*Save the original error to the new place. N)rr2Z xmlCopyError)rZtoZto__or*rrrÚ copyError×s zError.copyErrorcCstj|jƒdS)zCleanup the error. N)r2Z xmlResetErrorr)rrrrÚ resetErrorÞszError.resetError)N) rrrrrÊrr8rrrrrrrrrr¬¯s  r¬c@sžeZdZd&dd„Zdd„Zdd„Zdd „Zd d „Zd d „Zdd„Z dd„Z dd„Z dd„Z dd„Z dd„Zdd„Zdd„Zdd„Zd d!„Zd"d#„Zd$d%„ZdS)'r�NcCs,t|ƒdkrtdƒ‚||_tj||d�dS)Nrz%xmlNs got a wrong wrapper object type)r )rrurr§r)rr rrrrãs zxmlNs.__init__cCsd|jtt|ƒƒfS)Nz)rCrvr)rrrrrwèszxmlNs.__repr__cCs*tj|jƒ}|dkrtdƒ‚t|d�}|S)zDo a copy of the namespace. NzxmlCopyNamespace() failed)r )r2ZxmlCopyNamespacerrr�)rr*Ú _xmlNs__tmprrrÚ copyNamespaceïs   zxmlNs.copyNamespacecCs*tj|jƒ}|dkrtdƒ‚t|d�}|S)z Do a copy of an namespace list. NzxmlCopyNamespaceList() failed)r )r2ZxmlCopyNamespaceListrrr�)rr*r rrrÚcopyNamespaceListös   zxmlNs.copyNamespaceListcCstj|jƒdS)z1Free up the structures associated to a namespace N)r2Z xmlFreeNsr)rrrrÚfreeNsýsz xmlNs.freeNscCstj|jƒdS)zLFree up all the structures associated to the chained namespaces. N)r2Z xmlFreeNsListr)rrrrÚ freeNsListszxmlNs.freeNsListcCsD|dkrd}n|j}tj||j||ƒ}|dkr6tdƒ‚t|d�}|S)aQCreation 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() failed)r )rr2r­rr§)rr_rCrHÚ parent__or*r rrrr¯s  zxmlNs.newChildcCsD|dkrd}n|j}tj||j||ƒ}|dkr6tdƒ‚t|d�}|S)atCreation 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() failed)r )rr2rHrr§)rrsrCrHr“r*r rrrrIs zxmlNs.newDocNodecCsD|dkrd}n|j}tj||j||ƒ}|dkr6tdƒ‚t|d�}|S)atCreation 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. NzxmlNewDocNodeEatName() failed)r )rr2rJrr§)rrsrCrHr“r*r rrrrK&s zxmlNs.newDocNodeEatNamecCsD|dkrd}n|j}tj||j||ƒ}|dkr6tdƒ‚t|d�}|S)zcCreation of a new node element within a document. @ns and @content are optional (None). NzxmlNewDocRawNode() failed)r )rr2rNrr§)rrsrCrHr“r*r rrrrO4s zxmlNs.newDocRawNodecCs,tj|j|ƒ}|dkrtdƒ‚t|d�}|S)z8Creation of a new node element. @ns is optional (None). NzxmlNewNodeEatName() failed)r )r2ZxmlNewNodeEatNamerrr§)rrCr*r rrrÚnewNodeEatName>s  zxmlNs.newNodeEatNamecCsD|dkrd}n|j}tj||j||ƒ}|dkr6tdƒ‚t|d�}|S)zPCreate a new property tagged with a namespace and carried by a node. NzxmlNewNsProp() failed)r )rr2r±rri)rr›rCrr;r*r rrrr²Es zxmlNs.newNsPropcCsD|dkrd}n|j}tj||j||ƒ}|dkr6tdƒ‚t|d�}|S)zPCreate a new property tagged with a namespace and carried by a node. NzxmlNewNsPropEatName() failed)r )rr2r³rri)rr›rCrr;r*r rrrr´Os zxmlNs.newNsPropEatNamecCsD|dkrd}n|j}tj||j||ƒ}|dkr6tdƒ‚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() failed)r )rr2r¶rr§)rr_rCrHrr*r rrrr·Ys  zxmlNs.newTextChildcCs&|dkrd}n|j}tj||jƒdS)z/Associate a namespace to a node, a posteriori. N)rr2rÌ)rr›r;rrrrÍlsz xmlNs.setNscCsD|dkrd}n|j}tj||j||ƒ}|dkr6tdƒ‚t|d�}|S)zqSet (or reset) an attribute carried by a node. The ns structure must be in scope, this is not checked NzxmlSetNsProp() failed)r )rr2rÎrri)rr›rCrr;r*r rrrrÏrs zxmlNs.setNsPropcCs(|dkrd}n|j}tj||j|ƒ}|S)z'Remove an attribute carried by a node. N)rr2rØ)rr›rCr;r*rrrrÙ|s zxmlNs.unsetNsPropcCstj|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)r2ZxmlXPathNodeSetFreeNsr)rrrrÚxpathNodeSetFreeNs‡szxmlNs.xpathNodeSetFreeNs)N)rrrrrwr r r r r¯rIrKrOrr²r´r·rÍrÏrÙrrrrrr�âs$      r�c@sfeZdZddd„Zdd„Zdd„Zdd „Zd d „Zd d „Zdd„Z dd„Z dd„Z dd„Z dd„Z dS)rmNcCs||_tj||d�dS)N)r )rr7r)rr rrrr�szoutputBuffer.__init__cCs*|dkrd}n|j}tj|j|||ƒdS)zDump an HTML document. N)rr2r)rrãrzr{r‚rrrr—sz+outputBuffer.htmlDocContentDumpFormatOutputcCs(|dkrd}n|j}tj|j||ƒdS)z:Dump an HTML document. Formating return/spaces are added. N)rr2r)rrãrzr‚rrrr�sz%outputBuffer.htmlDocContentDumpOutputcCs@|dkrd}n|j}|dkr"d}n|j}tj|j||||ƒdS)zLDump an HTML node, recursive behaviour,children are printed too. N)rr2r)rrsrãrzr{r“r‚rrrr£sz%outputBuffer.htmlNodeDumpFormatOutputcCs>|dkrd}n|j}|dkr"d}n|j}tj|j|||ƒdS)zuDump an HTML node, recursive behaviour,children are printed too, and formatting returns/spaces are added. N)rr2r)rrsrãrzr“r‚rrrr¬szoutputBuffer.htmlNodeDumpOutputcCsB|dkrd}n|j}|dkr"d}n|j}tj|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)rr2rU)rrsrãrr{rzr“r‚rrrrV¹szoutputBuffer.nodeDumpOutputcCs(|dkrd}n|j}tj|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)rr2r_)rrãrzr‚r*rrrr`Äs zoutputBuffer.saveFileTocCs*|dkrd}n|j}tj|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)rr2rc)rrãrzr{r‚r*rrrrdÍs zoutputBuffer.saveFormatFileTocCstj|jƒ}|S)zKGives a pointer to the data currently held in the output buffer )r2ZxmlOutputBufferGetContentr)rr*rrrr–Ús zoutputBuffer.getContentcCstj|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. )r2ZxmlOutputBufferWriter)rr)rr*rrrr-àszoutputBuffer.writecCstj|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. )r2ZxmlOutputBufferWriteStringr)rr.r*rrrÚ writeStringèszoutputBuffer.writeString)N)rrrrrrrrrVr`rdr–r-rrrrrrmŽs      rmc@sFeZdZddd„Zdd„Zdd„Zdd „Zd d „Zd d „Zdd„Z dS)rkNcCs||_tj||d�dS)N)r )rr0r)rr rrrrñszinputBuffer.__init__cCs |jdkrtj|jƒd|_dS)N)rr2r6)rrrrr5õs  zinputBuffer.__del__cCstj|j|ƒ}|S)aYGrow 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 )r2ZxmlParserInputBufferGrowr)rr)r*rrrÚgrowþszinputBuffer.growcCstj|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. )r2ZxmlParserInputBufferPushr)rr)rr*rrrÚpushszinputBuffer.pushcCstj|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 )r2ZxmlParserInputBufferReadr)rr)r*rrrr%szinputBuffer.readcCs,|dkrd}n|j}tj||j|||ƒ}|S)z%Setup an XML reader with new options N)rr2ÚxmlTextReaderSetup)rrŽrçrzrèr�r*rrrÚSetups zinputBuffer.SetupcCs2tj|j|ƒ}|dkrtdƒ‚t|d�}||_|S)z2Create an xmlTextReader structure fed with @input NzxmlNewTextReader() failed)r )r2ZxmlNewTextReaderrrr¯rÌ)rrÔr*Z_inputBuffer__tmprrrÚ newTextReader"s  zinputBuffer.newTextReader)N) rrrrr5rrr%rrrrrrrkðs    rkc@s6eZdZd dd„Zdd„Zdd„Zdd „Zd d „ZdS) rµNcCs|dkr||_dSd|_dS)N)r)rr rrrr+szxmlReg.__init__cCs |jdkrtj|jƒd|_dS)N)rr2ZxmlRegFreeRegexp)rrrrr5/s  zxmlReg.__del__cCstj|j|ƒ}|S)z4Check if the regular expression generates the value )r2Z xmlRegexpExecr)rrHr*rrrÚ regexpExec8szxmlReg.regexpExeccCstj|jƒ}|S)z/Check if the regular expression is determinist )r2ZxmlRegexpIsDeterministr)rr*rrrÚregexpIsDeterminist=s zxmlReg.regexpIsDeterministcCstj||jƒdS)z5Print the content of the compiled regular expression N)r2ZxmlRegexpPrintr)rrrrrÚ regexpPrintBszxmlReg.regexpPrint)N)rrrrr5rrrrrrrrµ*s   rµc@s.eZdZd dd„Zdd„Zdd„Zdd „ZdS) r{NcCs|dkr||_dSd|_dS)N)r)rr rrrrGszrelaxNgParserCtxt.__init__cCs |jdkrtj|jƒd|_dS)N)rr2ZxmlRelaxNGFreeParserCtxt)rrrrr5Ks  zrelaxNgParserCtxt.__del__cCs*tj|jƒ}|dkrtdƒ‚t|d�}|S)z€parse a schema definition resource and build an internal XML Shema struture which can be used to validate instances. NzxmlRelaxNGParse() failed)r )r2ZxmlRelaxNGParserrÚ relaxNgSchema)rr*Z_relaxNgParserCtxt__tmprrrÚ relaxNGParseTs   zrelaxNgParserCtxt.relaxNGParsecCstj|j|ƒ}|S)z�Semi private function used to pass informations to a parser context which are a combination of xmlRelaxNGParserFlag . )r2ZxmlRelaxParserSetFlagr)rrãr*rrrÚrelaxParserSetFlag\sz$relaxNgParserCtxt.relaxParserSetFlag)N)rrrrr5rrrrrrr{Fs  r{c@s>eZdZddd„Zdd„Zdd„Zdd „Zd d „Zd d „ZdS)rNcCs|dkr||_dSd|_dS)N)r)rr rrrrcszrelaxNgSchema.__init__cCs |jdkrtj|jƒd|_dS)N)rr2ZxmlRelaxNGFree)rrrrr5gs  zrelaxNgSchema.__del__cCstj||jƒdS)zDump a RelaxNG structure back N)r2ZxmlRelaxNGDumpr)rrrrrÚ relaxNGDumppszrelaxNgSchema.relaxNGDumpcCstj||jƒdS)z#Dump the transformed RelaxNG tree. N)r2ZxmlRelaxNGDumpTreer)rrrrrÚrelaxNGDumpTreetszrelaxNgSchema.relaxNGDumpTreecCs0tj|jƒ}|dkrtdƒ‚t|d�}||_|S)zOCreate an XML RelaxNGs validation context based on the given schema NzxmlRelaxNGNewValidCtxt() failed)r )r2ZxmlRelaxNGNewValidCtxtrrÚrelaxNgValidCtxtÚschema)rr*Z_relaxNgSchema__tmprrrÚrelaxNGNewValidCtxtxs   z!relaxNgSchema.relaxNGNewValidCtxtcCs&|dkrd}n|j}tj||jƒ}|S)a7Use 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 desactivated. @ The @schema should not be freed until the reader is deallocated or its use has been deactivated. N)rr2ÚxmlTextReaderRelaxNGSetSchema)rrŽr�r*rrrÚRelaxNGSetSchema…s zrelaxNgSchema.RelaxNGSetSchema)N) rrrrr5rrr!r#rrrrrbs    rc@sNeZdZddd„Zdd„Zdd„Zdd „Zd d „Zd d „Zdd„Z dd„Z dS)rNcCsd|_||_tj||d�dS)N)r )r rrÈr)rr rrrr‘szrelaxNgValidCtxt.__init__cCs |jdkrtj|jƒd|_dS)N)rr2ZxmlRelaxNGFreeValidCtxt)rrrrr5–s  zrelaxNgValidCtxt.__del__cCs&|dkrd}n|j}tj|j|ƒ}|S)z$Validate a document tree in memory. N)rr2r1)rrsr“r*rrrr2Ÿs z#relaxNgValidCtxt.relaxNGValidateDoccCs<|dkrd}n|j}|dkr"d}n|j}tj|j||ƒ}|S)zŒValidate a full subtree when xmlRelaxNGValidatePushElement() returned 0 and the content of the node has been expanded. N)rr2r3)rrsrPr“r‡r*rrrr4¦sz+relaxNgValidCtxt.relaxNGValidateFullElementcCs<|dkrd}n|j}|dkr"d}n|j}tj|j||ƒ}|S)z7Pop the element end from the RelaxNG validation stack. N)rr2r5)rrsrPr“r‡r*rrrr6±sz*relaxNgValidCtxt.relaxNGValidatePopElementcCstj|j||ƒ}|S)z;check the CData parsed for validation in the current stack )r2ZxmlRelaxNGValidatePushCDatar)rr@r)r*rrrÚrelaxNGValidatePushCDataºsz)relaxNgValidCtxt.relaxNGValidatePushCDatacCs<|dkrd}n|j}|dkr"d}n|j}tj|j||ƒ}|S)z:Push a new element start on the RelaxNG validation stack. N)rr2r7)rrsrPr“r‡r*rrrr8¿sz+relaxNgValidCtxt.relaxNGValidatePushElementcCs(|dkrd}n|j}tj||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)rr2Ú xmlTextReaderRelaxNGValidateCtxt)rrŽrèr�r*rrrÚRelaxNGValidateCtxtÌs z$relaxNgValidCtxt.RelaxNGValidateCtxt)N) rrrrr5r2r4r6r$r8r&rrrrr�s     rc@s&eZdZddd„Zdd„Zdd„ZdS) r·NcCs|dkr||_dSd|_dS)N)r)rr rrrr×szSchemaParserCtxt.__init__cCs |jdkrtj|jƒd|_dS)N)rr2ZxmlSchemaFreeParserCtxt)rrrrr5Ûs  zSchemaParserCtxt.__del__cCs*tj|jƒ}|dkrtdƒ‚t|d�}|S)z€parse a schema definition resource and build an internal XML Shema struture which can be used to validate instances. NzxmlSchemaParse() failed)r )r2ZxmlSchemaParserrÚSchema)rr*Z_SchemaParserCtxt__tmprrrÚ schemaParseäs   zSchemaParserCtxt.schemaParse)N)rrrrr5r(rrrrr·Ös  r·c@s6eZdZd dd„Zdd„Zdd„Zdd „Zd d „ZdS) r'NcCs|dkr||_dSd|_dS)N)r)rr rrrríszSchema.__init__cCs |jdkrtj|jƒd|_dS)N)rr2Z xmlSchemaFree)rrrrr5ñs  zSchema.__del__cCs&|dkrd}n|j}tj||jƒ}|S)a9Use 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 desactivated. @ The @schema should not be freed until the reader is deallocated or its use has been deactivated. N)rr2ÚxmlTextReaderSetSchema)rrŽr�r*rrrÚ SetSchemaús zSchema.SetSchemacCstj||jƒdS)zDump a Schema structure. N)r2Z xmlSchemaDumpr)rrrrrÚ schemaDump szSchema.schemaDumpcCs0tj|jƒ}|dkrtdƒ‚t|d�}||_|S)zOCreate an XML Schemas validation context based on the given schema. NzxmlSchemaNewValidCtxt() failed)r )r2ZxmlSchemaNewValidCtxtrrÚSchemaValidCtxtr )rr*Z _Schema__tmprrrÚschemaNewValidCtxt s   zSchema.schemaNewValidCtxt)N)rrrrr5r*r+r-rrrrr'ìs   r'c@sfeZdZddd„Zdd„Zdd„Zdd „Zd d „Zd d „Zdd„Z dd„Z dd„Z dd„Z dd„Z dS)r,NcCsd|_||_tj||d�dS)N)r )r rrÇr)rr rrrrszSchemaValidCtxt.__init__cCs |jdkrtj|jƒd|_dS)N)rr2ZxmlSchemaFreeValidCtxt)rrrrr5s  zSchemaValidCtxt.__del__cCs(|dkrd}n|j}tj||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)rr2ÚxmlTextReaderSchemaValidateCtxt)rrŽrèr�r*rrrÚSchemaValidateCtxt%s z"SchemaValidCtxt.SchemaValidateCtxtcCstj|jƒ}|S)z3Check if any error was detected during validation. )r2ZxmlSchemaIsValidr)rr*rrrÚ schemaIsValid3s zSchemaValidCtxt.schemaIsValidcCstj|j|ƒ}|S)z3Sets the options to be used during the validation. )r2ZxmlSchemaSetValidOptionsr)rrèr*rrrÚschemaSetValidOptions8sz%SchemaValidCtxt.schemaSetValidOptionscCstj|jƒ}|S)z$Get the validation context options. )r2ZxmlSchemaValidCtxtGetOptionsr)rr*rrrÚschemaValidCtxtGetOptions=s z)SchemaValidCtxt.schemaValidCtxtGetOptionscCs*tj|jƒ}|dkrtdƒ‚t|d�}|S)zOallow access to the parser context of the schema validation context Nz(xmlSchemaValidCtxtGetParserCtxt() failed)r )r2ZxmlSchemaValidCtxtGetParserCtxtrrrÛ)rr*Z_SchemaValidCtxt__tmprrrÚschemaValidCtxtGetParserCtxtBs   z,SchemaValidCtxt.schemaValidCtxtGetParserCtxtcCs&|dkrd}n|j}tj|j|ƒ}|S)z$Validate a document tree in memory. N)rr2r“)rrsr“r*rrrr”Js z!SchemaValidCtxt.schemaValidateDoccCstj|j||ƒ}|S)zpDo a schemas validation of the given resource, it will use the SAX streamable validation internally. )r2ZxmlSchemaValidateFiler)rrårèr*rrrÚschemaValidateFileQsz"SchemaValidCtxt.schemaValidateFilecCs&|dkrd}n|j}tj|j|ƒ}|S)zd?„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„Zdzd{„Z?d|d}„Z@d~d„ZAd€d�„ZBd‚dƒ„ZCdS)…r¯NcCsd|_||_tj||d�dS)N)r )rÌrrËr)rr rrrrwszxmlTextReader.__init__cCs |jdkrtj|jƒd|_dS)N)rr2rÍ)rrrrr5|s  zxmlTextReader.__del__cCstj|jƒ}|S)z6Provides the number of attributes of the current node )r2ZxmlTextReaderAttributeCountr)rr*rrrÚAttributeCount…s zxmlTextReader.AttributeCountcCstj|jƒ}|S)zThe base URI of the node. )r2ZxmlTextReaderConstBaseUrir)rr*rrrÚBaseUriŠs zxmlTextReader.BaseUricCstj|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. )r2ZxmlTextReaderByteConsumedr)rr*rrrÚ ByteConsumed�s zxmlTextReader.ByteConsumedcCstj|jƒ}|S)z–This method releases any resources allocated by the current instance changes the state to Closed and close any underlying input. )r2ZxmlTextReaderCloser)rr*rrrÚClose˜s zxmlTextReader.ClosecCs*tj|jƒ}|dkrtdƒ‚t|d�}|S)a\Hacking interface allowing to get the xmlDocPtr correponding 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() failed)r )r2ZxmlTextReaderCurrentDocrrrt)rr*Ú_xmlTextReader__tmprrrÚ CurrentDocŸs   zxmlTextReader.CurrentDoccCs*tj|jƒ}|dkrtdƒ‚t|d�}|S)zèHacking interface allowing to get the xmlNodePtr correponding 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() failed)r )r2ZxmlTextReaderCurrentNoderrr§)rr*r<rrrÚ CurrentNode«s   zxmlTextReader.CurrentNodecCstj|jƒ}|S)z#The depth of the node in the tree. )r2ZxmlTextReaderDepthr)rr*rrrÚDepthµs zxmlTextReader.DepthcCstj|jƒ}|S)z3Determine the encoding of the document being read. )r2ZxmlTextReaderConstEncodingr)rr*rrrÚEncodingºs zxmlTextReader.EncodingcCs*tj|jƒ}|dkrtdƒ‚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() failed)r )r2ZxmlTextReaderExpandrrr§)rr*r<rrrÚExpand¿s   zxmlTextReader.ExpandcCstj|j|ƒ}|S)zRProvides the value of the attribute with the specified qualified name. )r2ZxmlTextReaderGetAttributer)rrCr*rrrÚ GetAttributeÈszxmlTextReader.GetAttributecCstj|j|ƒ}|S)zlProvides the value of the attribute with the specified index relative to the containing element. )r2ZxmlTextReaderGetAttributeNor)rÚnor*rrrÚGetAttributeNoÎszxmlTextReader.GetAttributeNocCstj|j||ƒ}|S)z.Provides the value of the specified attribute )r2ZxmlTextReaderGetAttributeNsr)rÚ localNameÚ namespaceURIr*rrrÚGetAttributeNsÔszxmlTextReader.GetAttributeNscCstj|jƒ}|S)z8Provide the column number of the current parsing point. )r2Z"xmlTextReaderGetParserColumnNumberr)rr*rrrÚGetParserColumnNumberÙs z#xmlTextReader.GetParserColumnNumbercCstj|jƒ}|S)z6Provide the line number of the current parsing point. )r2Z xmlTextReaderGetParserLineNumberr)rr*rrrÚGetParserLineNumberÞs z!xmlTextReader.GetParserLineNumbercCstj|j|ƒ}|S)z#Read the parser internal property. )r2ZxmlTextReaderGetParserPropr)rr½r*rrrÚ GetParserPropãszxmlTextReader.GetParserPropcCs*tj|jƒ}|dkrtdƒ‚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 procgressed past what's left in reader->input, and there is an allocation problem. Best would be to rewrite it differently. Nz"xmlTextReaderGetRemainder() failed)r )r2ZxmlTextReaderGetRemainderrrrk)rr*r<rrrÚ GetRemainderès   zxmlTextReader.GetRemaindercCstj|jƒ}|S)z!Whether the node has attributes. )r2ZxmlTextReaderHasAttributesr)rr*rrrÚ HasAttributesõs zxmlTextReader.HasAttributescCstj|jƒ}|S)z(Whether the node can have a text value. )r2ZxmlTextReaderHasValuer)rr*rrrÚHasValueús zxmlTextReader.HasValuecCstj|jƒ}|S)ziWhether an Attribute node was generated from the default value defined in the DTD or schema. )r2ZxmlTextReaderIsDefaultr)rr*rrrÚ IsDefaultÿs zxmlTextReader.IsDefaultcCstj|jƒ}|S)z#Check if the current node is empty )r2ZxmlTextReaderIsEmptyElementr)rr*rrrÚIsEmptyElements zxmlTextReader.IsEmptyElementcCstj|jƒ}|S)zjDetermine whether the current node is a namespace declaration rather than a regular attribute. )r2ZxmlTextReaderIsNamespaceDeclr)rr*rrrÚIsNamespaceDecl s zxmlTextReader.IsNamespaceDeclcCstj|jƒ}|S)z5Retrieve the validity status from the parser context )r2ZxmlTextReaderIsValidr)rr*rrrÚIsValids zxmlTextReader.IsValidcCstj|jƒ}|S)zThe local name of the node. )r2ZxmlTextReaderConstLocalNamer)rr*rrrÚ LocalNames zxmlTextReader.LocalNamecCstj|j|ƒ}|S)zLResolves a namespace prefix in the scope of the current element. )r2ZxmlTextReaderLookupNamespacer)rr~r*rrrÚLookupNamespaceszxmlTextReader.LookupNamespacecCstj|j|ƒ}|S)zjMoves the position of the current instance to the attribute with the specified qualified name. )r2ZxmlTextReaderMoveToAttributer)rrCr*rrrÚMoveToAttribute szxmlTextReader.MoveToAttributecCstj|j|ƒ}|S)zƒMoves the position of the current instance to the attribute with the specified index relative to the containing element. )r2ZxmlTextReaderMoveToAttributeNor)rrCr*rrrÚMoveToAttributeNo&szxmlTextReader.MoveToAttributeNocCstj|j||ƒ}|S)zxMoves the position of the current instance to the attribute with the specified local name and namespace URI. )r2ZxmlTextReaderMoveToAttributeNsr)rrErFr*rrrÚMoveToAttributeNs,szxmlTextReader.MoveToAttributeNscCstj|jƒ}|S)zmMoves the position of the current instance to the node that contains the current Attribute node. )r2ZxmlTextReaderMoveToElementr)rr*rrrÚ MoveToElement2s zxmlTextReader.MoveToElementcCstj|jƒ}|S)zoMoves the position of the current instance to the first attribute associated with the current node. )r2Z!xmlTextReaderMoveToFirstAttributer)rr*rrrÚMoveToFirstAttribute8s z"xmlTextReader.MoveToFirstAttributecCstj|jƒ}|S)znMoves the position of the current instance to the next attribute associated with the current node. )r2Z xmlTextReaderMoveToNextAttributer)rr*rrrÚMoveToNextAttribute>s z!xmlTextReader.MoveToNextAttributecCstj|jƒ}|S)zr?r@rArBrDrGrHrIrJrKrLrMrNrOrPrQrRrSrTrUrVrWrXrYrZr[r\r]r^r_r�r`rarbrcrdrerfrgrhrirjrkrlr#ror&rpr/rqr*rrrrsrtrurvrrrrr¯vs‚              r¯c@sÖeZdZd4dd„Zdd„Zdd„Zdd „Zd d „Zd d „Zdd„Z dd„Z dd„Z dd„Z dd„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ÔNcCs|dkr||_dSd|_dS)N)r)rr rrrr/sz URI.__init__cCs |jdkrtj|jƒd|_dS)N)rr2Z xmlFreeURI)rrrrr53s  z URI.__del__cCstj|jƒ}|S)z#Get the authority part from an URI )r2ZxmlURIGetAuthorityr)rr*rrrÚ authority9s z URI.authoritycCstj|jƒ}|S)z"Get the fragment part from an URI )r2ZxmlURIGetFragmentr)rr*rrrÚfragment>s z URI.fragmentcCstj|jƒ}|S)z Get the opaque part from an URI )r2ZxmlURIGetOpaquer)rr*rrrÚopaqueCs z URI.opaquecCstj|jƒ}|S)zGet the path part from an URI )r2Z xmlURIGetPathr)rr*rrrr“Hs zURI.pathcCstj|jƒ}|S)zGet the port part from an URI )r2Z xmlURIGetPortr)rr*rrrr;Ms zURI.portcCstj|jƒ}|S)zGet the query part from an URI )r2ZxmlURIGetQueryr)rr*rrrÚqueryRs z URI.querycCstj|jƒ}|S)zIGet the raw query part from an URI (i.e. the unescaped form). )r2ZxmlURIGetQueryRawr)rr*rrrÚqueryRawWs z URI.queryRawcCstj|jƒ}|S)z Get the scheme part from an URI )r2ZxmlURIGetSchemer)rr*rrrÚscheme]s z URI.schemecCstj|jƒ}|S)z Get the server part from an URI )r2ZxmlURIGetServerr)rr*rrrÚserverbs z URI.servercCstj|j|ƒdS)z"Set the authority part of an URI. N)r2ZxmlURISetAuthorityr)rrwrrrÚ setAuthoritygszURI.setAuthoritycCstj|j|ƒdS)z!Set the fragment part of an URI. N)r2ZxmlURISetFragmentr)rrxrrrÚ setFragmentkszURI.setFragmentcCstj|j|ƒdS)zSet the opaque part of an URI. N)r2ZxmlURISetOpaquer)rryrrrÚ setOpaqueosz URI.setOpaquecCstj|j|ƒdS)zSet the path part of an URI. N)r2Z xmlURISetPathr)rr“rrrÚsetPathssz URI.setPathcCstj|j|ƒdS)zSet the port part of an URI. N)r2Z xmlURISetPortr)rr;rrrÚsetPortwsz URI.setPortcCstj|j|ƒdS)zSet the query part of an URI. N)r2ZxmlURISetQueryr)rrzrrrÚsetQuery{sz URI.setQuerycCstj|j|ƒdS)zvalid accordingly N)rr2ro)rrsrPrCrr“r‡r*rrrrp¶s z*ValidCtxt.validCtxtNormalizeAttributeValuecCs&|dkrd}n|j}tj|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)rr2rq)rrsr“r*rrrrrÆs zValidCtxt.validateDocumentcCs&|dkrd}n|j}tj|j|ƒ}|S)aDoes 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)rr2rs)rrsr“r*rrrrtÐs zValidCtxt.validateDocumentFinalcCs<|dkrd}n|j}|dkr"d}n|j}tj|j||ƒ}|S)aTry 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)rr2ru)rrsr¦r“rvr*rrrrwÛszValidCtxt.validateDtdcCs&|dkrd}n|j}tj|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)rr2rx)rrsr“r*rrrryès zValidCtxt.validateDtdFinalcCs<|dkrd}n|j}|dkr"d}n|j}tj|j||ƒ}|S)z-Try to validate the subtree under an element N)rr2rz)rrsrPr“r‡r*rrrr{õszValidCtxt.validateElementcCs(|dkrd}n|j}tj|j||ƒ}|S)zbValidate that the given name match a notation declaration. - [ VC: Notation Declared ] N)rr2r|)rrsrSr“r*rrrr}þs zValidCtxt.validateNotationUsec CsT|dkrd}n|j}|dkr"d}n|j}|dkr6d}n|j}tj|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)rr2r~) rrsrPrxrr“r‡rÜr*rrrrszValidCtxt.validateOneAttributecCs<|dkrd}n|j}|dkr"d}n|j}tj|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)rr2r€)rrsrPr“r‡r*rrrr�szValidCtxt.validateOneElementc CsV|dkrd}n|j}|dkr"d}n|j}|dkr6d}n|j}tj|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)rr2r‚) rrsrPr~ryrr“r‡r®r*rrrrƒ%szValidCtxt.validateOneNamespacecCs>|dkrd}n|j}|dkr"d}n|j}tj|j|||ƒ}|S)z/Pop the element end from the validation stack. N)rr2r„)rrsrPr…r“r‡r*rrrr†6szValidCtxt.validatePopElementcCstj|j||ƒ}|S)z;check the CData parsed for validation in the current stack )r2ZxmlValidatePushCDatar)rr@r)r*rrrÚvalidatePushCData?szValidCtxt.validatePushCDatacCs>|dkrd}n|j}|dkr"d}n|j}tj|j|||ƒ}|S)z2Push a new element start on the validation stack. N)rr2r‡)rrsrPr…r“r‡r*rrrrˆDszValidCtxt.validatePushElementcCs&|dkrd}n|j}tj|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)rr2r‰)rrsr“r*rrrrŠMs zValidCtxt.validateRoot)N)rrrrr5rprrrtrwryr{r}rr�rƒr†rŒrˆrŠrrrrr›¨s          r›c@sÖeZdZd4dd„Zdd„Zdd„Zdd „Zd d „Zd d „Zdd„Z dd„Z dd„Z dd„Z dd„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 NcCs|dkr||_dSd|_dS)N)r)rr rrrrXszxpathContext.__init__cCs*tj|jƒ}|dkrtdƒ‚t|d�}|S)z!Get the doc from an xpathContext NzxmlXPathGetContextDoc() failed)r )r2ZxmlXPathGetContextDocrrrt)rr*Ú_xpathContext__tmprrrÚ contextDoc]s   zxpathContext.contextDoccCs*tj|jƒ}|dkrtdƒ‚t|d�}|S)z*Get the current node from an xpathContext NzxmlXPathGetContextNode() failed)r )r2ZxmlXPathGetContextNoderrr§)rr*r�rrrÚ contextNodeds   zxpathContext.contextNodecCstj|jƒ}|S)z*Get the current node from an xpathContext )r2ZxmlXPathGetContextPositionr)rr*rrrÚcontextPositionks zxpathContext.contextPositioncCstj|jƒ}|S)z*Get the current node from an xpathContext )r2ZxmlXPathGetContextSizer)rr*rrrÚ contextSizeps zxpathContext.contextSizecCstj|jƒ}|S)z+Get the current function name xpathContext )r2ZxmlXPathGetFunctionr)rr*rrrÚfunctionus zxpathContext.functioncCstj|jƒ}|S)z/Get the current function name URI xpathContext )r2ZxmlXPathGetFunctionURIr)rr*rrrÚ functionURIzs zxpathContext.functionURIcCs&|dkrd}n|j}tj|j|ƒdS)zSet the doc of an xpathContext N)rr2ZxmlXPathSetContextDoc)rrsr“rrrÚ setContextDocszxpathContext.setContextDoccCs&|dkrd}n|j}tj|j|ƒdS)z(Set the current node of an xpathContext N)rr2ZxmlXPathSetContextNode)rr›r;rrrr†…szxpathContext.setContextNodecCstj|j|||ƒ}|S)zd?„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„Zdzd{„Z?d|d}„Z@dS)r˜NcCs|dkr||_dSd|_dS)N)r)rr rrrrüszxpathParserContext.__init__cCs*tj|jƒ}|dkrtdƒ‚t|d�}|S)z0Get the xpathContext from an xpathParserContext Nz!xmlXPathParserGetContext() failed)r )r2ZxmlXPathParserGetContextrrr )rr*Ú_xpathParserContext__tmprrrÚcontexts   zxpathParserContext.contextcCstj|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)r2ZxmlXPathAddValuesr)rrrrÚxpathAddValues sz!xpathParserContext.xpathAddValuescCstj|j|ƒdS)auImplement 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)r2ZxmlXPathBooleanFunctionr)rÚnargsrrrÚxpathBooleanFunctionsz'xpathParserContext.xpathBooleanFunctioncCstj|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)r2ZxmlXPathCeilingFunctionr)rr¦rrrÚxpathCeilingFunctionsz'xpathParserContext.xpathCeilingFunctioncCstj|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. )r2ZxmlXPathCompareValuesr)rÚinfÚstrictr*rrrÚxpathCompareValues"sz%xpathParserContext.xpathCompareValuescCstj|j|ƒdS)z¢Implement the concat() XPath function string concat(string, string, string*) The concat function returns the concatenation of its arguments. N)r2ZxmlXPathConcatFunctionr)rr¦rrrÚxpathConcatFunction4sz&xpathParserContext.xpathConcatFunctioncCstj|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)r2ZxmlXPathContainsFunctionr)rr¦rrrÚxpathContainsFunction:sz(xpathParserContext.xpathContainsFunctioncCstj|j|ƒdS)zé?é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ÿiiiiiiiiii i i i i iiiiiiiiiiiiiiiii i!ièiéiêiëiìiíiîiïiðiñiòióiôiõiöi÷iøiùiúiûiüiýiþiÿiiiiiiiiii i i i i iiiiiiiiiiiiiiiiiii i!i"i#i$i%i&i'i(i)i*i+i,i-i.i/i0i1i2i3i4i5i6i7i8i9i:i;i<i=i>i?i@iAiBiCiDiEiFiGiHiIiJiKiLiMiNiOiPiQiRiSiTiUiViWiXiYiZi[i\i]i^i_i`iaibi°i±i²i³i´iµi¶i·i¸i¹iºi»i¼i½i¾i¿iÀiÁiÂiÃiÄiÅiiiiixiyizi{iªiÜiÝiÞißiàiáiâiãiäiåiæiçièiéiêiëiìiíiîiïiðiñiòióiôiõiöi÷iøiùiúiûiüiýiþiÿiiiiiiiiii i i i i iiiiiiii@iAiBiCiDiEiFiGiHiIiJiKiLiMiNiOiPiQiRirisitiuivi¤i¥i¦i§i¨i©iªi«i¬i­i®i¯i°i±i²i³i´iµi¶i·i¸i¹iºi»i¼i½i¾i¿iÀiÁiÂiÃiÄiÅiÆiÇiÈiÉiÊiËiÌiÍiÎiÏiÐiÑiÒiÓiÔiÕiÖi×iØiÙiÚiÛiÜiÝiÞißiàiáiâiãiäiåiæiçièiéiêiëiìiíiîiïiðiñiòióiôiõiöi÷iøiùiúiûiüiýiþiÿiiiiiiiiii i i i i iiiiiiiiiiiiiiiiiii i!i"i#i$i%i&i'i(i)i*i+i,i-i.i/i0i1i2i3i4i5i6i7i8i9i:i;i<i=i>i?i@iAiBiCiDiEiFiGiHiIiJiKiLiMiNiOiPiQiRiSiTiUiViWiliminioižiŸi i¡i¢i£iÐiÑiÒiÓiäiåiæi¸ i¹ iº i» i¼ i½ i¾ i¿ iÀ iÁ i ià iÄ iÅ iÆ iÇ iÈ iÉ iÊ iË iÌ iÍ iÎ iÏ iÐ iÑ iÒ iÓ iÔ iÕ iÖ i× iØ iÙ iÚ iÛ iÜ iÝ iÞ iß ià iá iâ iã iä iå iæ iç iè ié iê ië iì ií iî iï ið iñ iò ió iô iõ iö i÷ iø iù iú iû iü iý iþ iÿ i i i i i i i i i i i i i i i i i i i i i i¡i$i%iˆi‰iŠi‹iŒi�iŽi�i�i‘i’i“i”i•i–i—i˜i™iši›iœi�ižiŸi i¡i¢i£i¤i¥i¦i§i¨i©iªi«i¬i­ipiqirisitiXiŸ†éii ii ii@i€iiiii@r r (‚r2Útypesrr&rrrrrrrrr0r7r:rXr�r’r`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ÿrrrrrrrr r r r rrrrrrrrrrrrrrrr r!r"r#r$r%r&r'r(r)r*r,r-r.r/r0r1r2r3r4r5r6r7r8r9r=r>r?r@rArBrCrDrErFrHrIrJrKrLrMrNrOrPrQrRrSrTrUrWrXrYr\r]r^r_r`rarcrdrfrgrhrjrlrnrprqrrrsrtrurvrwrxryrzr|r}rr€r�r‚rƒr„r…r†rˆrŠr‹rŒr�rŽr�r�r‘r’r”r•r–r—r™ršrœr�ržrŸr r¡r¢r£r¤r¥r¦r§r¨r©rªr«r­r®r°r±r²r³r´r¶r¸r¹rºr»r¼r½r¾rÀrÁrÂrÃrÅrÆrÈrÉrËrÌrÍrÎrÏrÐrÑrÒrÓrÕrÖr×rØrÙrÚrÛrÜrÝrÞrßràrárârãrärårçrèrérêrërìrírîrïrðrñròrórôrõrör÷rørùrúrûrürýrþrÿrrrrrrrrrr r r r r rrrrrrrrrrrrrrrrrrr r!r"r#r$r%r&r'r(r)r*r+r,r-r.r/r0r1r2r3r4r5r6r7r8r9r:r;r<r=r>r?r@rArBrCrDrErFrGrHrIrJrKrLrMrNrOrPrQrRrSrTrUrVrWrXrYrZr[r\r]r^r_r`rarbrcrdrerfrgrhrirjrkrlrmrnrorprqrrrsrtr§rtrÛrir©r r«r¨rªr¬r�rmrkrµr{rrr·r'r,rÉr¯rÔr›r r˜ZXLINK_SHOW_NONEZXLINK_SHOW_NEWZXLINK_SHOW_EMBEDZXLINK_SHOW_REPLACEZXML_RELAXNGP_NONEZXML_RELAXNGP_FREE_DOCZXML_RELAXNGP_CRNGZXML_BUFFER_ALLOC_DOUBLEITZXML_BUFFER_ALLOC_EXACTZXML_BUFFER_ALLOC_IMMUTABLEZXML_BUFFER_ALLOC_IOZXML_BUFFER_ALLOC_HYBRIDZXML_BUFFER_ALLOC_BOUNDEDZ$XML_PARSER_SEVERITY_VALIDITY_WARNINGZ"XML_PARSER_SEVERITY_VALIDITY_ERRORZXML_PARSER_SEVERITY_WARNINGZXML_PARSER_SEVERITY_ERRORZXML_ATTRIBUTE_NONEZXML_ATTRIBUTE_REQUIREDZXML_ATTRIBUTE_IMPLIEDZXML_ATTRIBUTE_FIXEDZXML_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_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_INTERNAL_GENERAL_ENTITYZ"XML_EXTERNAL_GENERAL_PARSED_ENTITYZ$XML_EXTERNAL_GENERAL_UNPARSED_ENTITYZXML_INTERNAL_PARAMETER_ENTITYZXML_EXTERNAL_PARAMETER_ENTITYZXML_INTERNAL_PREDEFINED_ENTITYZXML_SAVE_FORMATZXML_SAVE_NO_DECLZXML_SAVE_NO_EMPTYZXML_SAVE_NO_XHTMLZXML_SAVE_XHTMLZXML_SAVE_AS_XMLZXML_SAVE_AS_HTMLZXML_SAVE_WSNONSIGZXML_PATTERN_DEFAULTZXML_PATTERN_XPATHZXML_PATTERN_XSSELZXML_PATTERN_XSFIELDZ 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_EAGAINZ XML_IO_EBADFZXML_IO_EBADMSGZ XML_IO_EBUSYZXML_IO_ECANCELEDZ XML_IO_ECHILDZXML_IO_EDEADLKZ XML_IO_EDOMZ XML_IO_EEXISTZ XML_IO_EFAULTZ XML_IO_EFBIGZXML_IO_EINPROGRESSZ XML_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_ENOTTYZ XML_IO_ENXIOZ XML_IO_EPERMZ XML_IO_EPIPEZ XML_IO_ERANGEZ XML_IO_EROFSZ XML_IO_ESPIPEZ XML_IO_ESRCHZXML_IO_ETIMEDOUTZ XML_IO_EXDEVZXML_IO_NETWORK_ATTEMPTZXML_IO_ENCODERZ XML_IO_FLUSHZ XML_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_OVERFLOWZ XML_EXP_EMPTYZXML_EXP_FORBIDZ XML_EXP_ATOMZ XML_EXP_SEQZ XML_EXP_ORZ XML_EXP_COUNTZXML_ELEMENT_CONTENT_PCDATAZXML_ELEMENT_CONTENT_ELEMENTZXML_ELEMENT_CONTENT_SEQZXML_ELEMENT_CONTENT_ORZXML_PARSER_LOADDTDZXML_PARSER_DEFAULTATTRSZXML_PARSER_VALIDATEZXML_PARSER_SUBST_ENTITIESZXML_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_CATA_PREFER_NONEZXML_CATA_PREFER_PUBLICZXML_CATA_PREFER_SYSTEMZXML_ELEMENT_NODEZXML_ATTRIBUTE_NODEZ XML_TEXT_NODEZXML_CDATA_SECTION_NODEZXML_ENTITY_REF_NODEZXML_ENTITY_NODEZ XML_PI_NODEZXML_COMMENT_NODEZXML_DOCUMENT_NODEZXML_DOCUMENT_TYPE_NODEZXML_DOCUMENT_FRAG_NODEZXML_NOTATION_NODEZXML_HTML_DOCUMENT_NODEZ XML_DTD_NODEZXML_ELEMENT_DECLZXML_ATTRIBUTE_DECLZXML_ENTITY_DECLZXML_NAMESPACE_DECLZXML_XINCLUDE_STARTZXML_XINCLUDE_ENDZXML_DOCB_DOCUMENT_NODEZXLINK_ACTUATE_NONEZXLINK_ACTUATE_AUTOZXLINK_ACTUATE_ONREQUESTZXML_WITH_THREADZ XML_WITH_TREEZXML_WITH_OUTPUTZ XML_WITH_PUSHZXML_WITH_READERZXML_WITH_PATTERNZXML_WITH_WRITERZ XML_WITH_SAX1Z XML_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_ZLIBZ XML_WITH_ICUZ XML_WITH_LZMAZ XML_WITH_NONEZXML_ELEMENT_CONTENT_ONCEZXML_ELEMENT_CONTENT_OPTZXML_ELEMENT_CONTENT_MULTZXML_ELEMENT_CONTENT_PLUSZXPATH_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_ERRORZXML_TEXTREADER_MODE_INITIALZXML_TEXTREADER_MODE_INTERACTIVEZXML_TEXTREADER_MODE_ERRORZXML_TEXTREADER_MODE_EOFZXML_TEXTREADER_MODE_CLOSEDZXML_TEXTREADER_MODE_READINGZ XML_ERR_NONEZXML_ERR_WARNINGZ XML_ERR_ERRORZ XML_ERR_FATALZXML_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_ASCIIZ XML_FROM_NONEZXML_FROM_PARSERZ XML_FROM_TREEZXML_FROM_NAMESPACEZ XML_FROM_DTDZ XML_FROM_HTMLZXML_FROM_MEMORYZXML_FROM_OUTPUTZ XML_FROM_IOZ XML_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_BUFFERZ XML_FROM_URIZHTML_NAZ HTML_INVALIDZHTML_DEPRECATEDZ HTML_VALIDZ HTML_REQUIREDZXML_SCHEMA_VAL_VC_I_CREATEZXML_SCHEMA_WHITESPACE_UNKNOWNZXML_SCHEMA_WHITESPACE_PRESERVEZXML_SCHEMA_WHITESPACE_REPLACEZXML_SCHEMA_WHITESPACE_COLLAPSEZHTML_PARSE_RECOVERZHTML_PARSE_NODEFDTDZHTML_PARSE_NOERRORZHTML_PARSE_NOWARNINGZHTML_PARSE_PEDANTICZHTML_PARSE_NOBLANKSZHTML_PARSE_NONETZHTML_PARSE_NOIMPLIEDZHTML_PARSE_COMPACTZHTML_PARSE_IGNORE_ENCZXML_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_CATA_ALLOW_NONEZXML_CATA_ALLOW_GLOBALZXML_CATA_ALLOW_DOCUMENTZXML_CATA_ALLOW_ALLZXML_ATTRIBUTE_CDATAZXML_ATTRIBUTE_IDZXML_ATTRIBUTE_IDREFZXML_ATTRIBUTE_IDREFSZXML_ATTRIBUTE_ENTITYZXML_ATTRIBUTE_ENTITIESZXML_ATTRIBUTE_NMTOKENZXML_ATTRIBUTE_NMTOKENSZXML_ATTRIBUTE_ENUMERATIONZXML_ATTRIBUTE_NOTATIONZXML_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_MODULE_LAZYZXML_MODULE_LOCALZXML_PARSE_UNKNOWNZ XML_PARSE_DOMZ XML_PARSE_SAXZXML_PARSE_PUSH_DOMZXML_PARSE_PUSH_SAXZXML_PARSE_READERZ XML_C14N_1_0ZXML_C14N_EXCLUSIVE_1_0Z XML_C14N_1_1ZXML_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_ELEMENT_TYPE_UNDEFINEDZXML_ELEMENT_TYPE_EMPTYZXML_ELEMENT_TYPE_ANYZXML_ELEMENT_TYPE_MIXEDZXML_ELEMENT_TYPE_ELEMENTZXML_DOC_WELLFORMEDZXML_DOC_NSVALIDZ XML_DOC_OLD10ZXML_DOC_DTDVALIDZXML_DOC_XINCLUDEZXML_DOC_USERBUILTZXML_DOC_INTERNALZ XML_DOC_HTMLZXLINK_TYPE_NONEZXLINK_TYPE_SIMPLEZXLINK_TYPE_EXTENDEDZXLINK_TYPE_EXTENDED_SETZXPATH_UNDEFINEDZ XPATH_NODESETZ XPATH_BOOLEANZ XPATH_NUMBERZ XPATH_STRINGZ XPATH_POINTZ XPATH_RANGEZXPATH_LOCATIONSETZ XPATH_USERSZXPATH_XSLT_TREEZXML_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_XXXrrrrÚs>   +/i   #                "                                                                                                       95N <B 3-b:.F*M;z0%E