ok

Mini Shell

Direktori : /opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/
Upload File :
Current File : //opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/reader.pyo

�
[��ec"@sZddlZddlZddlZyddlZejZWnddlZejZnXejd�ed�Zeje�Z	e	j
d�Zej�Z
e
dkr�dGHejd�nej�dksej�dksej�dksej�dkrdGHejd�nej�Z
e
dkrJd	GHejd�nej�d
ks�ej�dks�ej�dks�ej�dkr�dGHejd�nej�Z
e
dkr�dGHejd�nej�d
ksej�dksej�dksej�dkr1dGHejd�nej�Z
e
dkr^dGHejd�nej�dks�ej�dks�ej�dks�ej�dks�ej�dkr�dGHejd�nej�Z
e
dkr�dGHejd�nej�d
ksBej�dksBej�dksBej�dkrWdGHejd�nej�Z
e
dkr�dGHejd�nej�dks�ej�dks�ej�dks�ej�dkr�dGHejd�nej�Z
e
dkrdGHejd�ned�Zeje�Z	e	j
d�Zej�Z
e
dkredGHejd�nejd�dks�ejd�dks�ejdd�dks�ejd �dkr�d!GHejd�ned"�Zeje�Z	e	j
d#�Zej�Z
x\e
dkreej�d$krVejd�d%krRd&GHejd�nPnej�Z
q
We
dkr�d'GHejd�ned(�Zeje�Z	e	j
d)�Zej�Z
e
dkr�d*GHejd�nejd�dkrd+GHejd�nej�d,kr/d-GHejd�nej�d.krVd/GHejd�nejd�dkr�d0GHejd�nej�d1kr�d2GHejd�nej�d3kr�d4GHejd�nejd5�dkr�d6GHejd�nej�d
krd7GHejd�nej�d
krFd8GHejd�nejd�dkrpd9GHejd�nej�d:kr�d;GHejd�nej�d:kr�d<GHejd�nejd.�dkr�d=GHejd�nej�d,krd>GHejd�nejd3�dkr9d=GHejd�nej�d1kr`d?GHejd�nejd
�dkr�d@GHejd�nej�d
kr�dAGHejd�nejd:�dkr�dBGHejd�nej�d:kr	dCGHejd�nejd
d1�dkr/	dDGHejd�nej�d:krV	dEGHejd�nej�dkr}	dFGHejd�nej�dkr�	dGGHejd�nej�d,kr�	d-GHejd�nej�d.kr�	d/GHejd�nej�dkr
dHGHejd�nej�d1kr@
d2GHejd�nej�d3krg
d4GHejd�nej�dkr�
dHGHejd�nej�d
kr�
d7GHejd�nej�d
kr�
d8GHejd�nej�dkrdHGHejd�nej�d:kr*d;GHejd�nej�d:krQd<GHejd�nej�dkrxdIGHejd�nedJ�Zeje�Z	e	j
dK�Zej�Z
e
dkr�dLGHejd�nej�Z
e
dkr�dMGHejd�nej�dNksVej�d.ksVej�d.ksVej�dOksVej�d5krkdPGHejd�nedQ�Zeje�Z	e	j
dR�Zej�Z
e
dkr�dSGHejd�nej�Z
e
dkr�dTGHejd�nej�dNksI
ej�dUksI
ej�dVksI
ej�dOksI
ej�d5kr^
dWGHejd�nedX�Zeje�Z	e	j
dY�Zej�Z
e
dkr�
dZGHejd�nej�dks�
ej�dkr�
d[GHejd�nej�Z
e
dkrd\GHejd�nd]�Z dZ!d^Z"e e!�Z#e#e"krbd_GHe#GHejd�nd`Z!daZ"e e!�Z#e#e"kr�dbGHe#GHejd�ndcZ!ddZ"e e!�Z#e#e"kr�deGHe#GHejd�ndfZ!dgZ"e e!�Z#e#e"krdhGHe#GHejd�ndiZ!djZ"e e!�Z#e#e"krZdkGHe#GHejd�ndlZ!dmZ"e e!�Z#e#e"kr�dnGHe#GHejd�ndoZ!dpZ"e e!�Z#e#e"kr�dqGHe#GHejd�ndrZ!dsZ"e e!�Z#e#e"krdtGHe#GHejd�n[[	[ej$�ejd�dkrDduGHndvejd�GHdS(wi����Nis&<a><b b1="b1"/><c>content of c</c></a>ttest1s%test1: Error reading to first elementtais&test1: Error reading the first elements&test1: Error reading to second elementtbs'test1: Error reading the second elements%test1: Error reading to third elementtcs&test1: Error reading the third elements!test1: Error reading to text nodes#textiscontent of cs"test1: Error reading the text nodes,test1: Error reading to end of third elementis-test1: Error reading the end of third elements,test1: Error reading to end of first elements-test1: Error reading the end of first elements'test1: Error reading to end of documents.<test xmlns:dt="urn:datatypes" dt:type="int"/>ttest2sError reading test elements
urn:datatypestintttypesdt:typeserror reading test attributessA<root xmlns:a="urn:456">
<item>
<ref href="a:b"/>
</item>
</root>ttest3trefsurn:456s error resolving namespace prefixsError finding the ref elements9<testattr xmlns="urn:1" xmlns:a="urn:2" b="b" a:b="a:b"/>ttest4s"Error reading the testattr elementsFailed moveToAttribute(0)surn:1sFailed to read attribute(0)txmlnss Failed to read attribute(0) namesFailed moveToAttribute(1)surn:2sFailed to read attribute(1)sxmlns:as Failed to read attribute(1) nameisFailed moveToAttribute(2)sFailed to read attribute(2)s Failed to read attribute(2) namesFailed moveToAttribute(3)sa:bsFailed to read attribute(3)s Failed to read attribute(3) namesFailed moveToAttribute('xmlns')s!Failed to read attribute('xmlns')s#Failed to read attribute('xmlns:a')sFailed moveToAttribute('b')sFailed to read attribute('b')sFailed moveToAttribute('a:b')sFailed to read attribute('a:b')s$Failed moveToAttribute('b', 'urn:2')s&Failed to read attribute('b', 'urn:2')sFailed to move back to elements!Failed to move to first attributes Failed to move to next attributesFailed to detect last attributes#<a xmlns="http://example.com/foo"/>ttest6stest6: failed to Read()s'test6: failed to MoveToFirstAttribute()shttp://www.w3.org/2000/xmlns/shttp://example.com/foos(test6: failed to read the namespace nodes*<a xmlns:prefix="http://example.com/foo"/>ttest7stest7: failed to Read()s'test7: failed to MoveToFirstAttribute()tprefixsxmlns:prefixs(test7: failed to read the namespace nodes<a/>ttest8stest8: failed to read the nodes!test8: failed to analyze the nodestest8: failed to detect the EOFcCs�t|�}tj|�}|jd�}d}x�|j�r�|d|j�|j�|j�|j�|j	�f}|j�dkr3xN|j
�r�|d|j�|j�|j�|j�|j	�f}q�Wq3q3W|S(Nttstts%s (%s) [%s] %d %d
is-- %s (%s) [%s] %d %d
(tstr_iotlibxml2tinputBuffert
newTextReadertReadtNodeTypetNametValuetIsEmptyElementtDepthtMoveToNextAttribute(tstftinputtreadertres((sB/opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/reader.pyt
tst_reader0s%s�1 (a) [None] 0 0
1 (b) [None] 1 1
-- 2 (b1) [b1] 0 2
1 (c) [None] 0 1
3 (#text) [content of c] 0 2
15 (c) [None] 0 1
15 (a) [None] 0 0
stest5 faileds<test><b/><c/></test>sK1 (test) [None] 0 0
1 (b) [None] 1 1
1 (c) [None] 1 1
15 (test) [None] 0 0
stest9 faileds<a><b>bbb</b><c>ccc</c></a>s�1 (a) [None] 0 0
1 (b) [None] 0 1
3 (#text) [bbb] 0 2
15 (b) [None] 0 1
1 (c) [None] 0 1
3 (#text) [ccc] 0 2
15 (c) [None] 0 1
15 (a) [None] 0 0
s
test10 faileds
<test a="a"/>s%1 (test) [None] 1 0
-- 2 (a) [a] 0 1
s
test11 faileds<test><a>aaa</a><b/></test>sq1 (test) [None] 0 0
1 (a) [None] 0 1
3 (#text) [aaa] 0 2
15 (a) [None] 0 1
1 (b) [None] 1 1
15 (test) [None] 0 0
s
test12 faileds<test><p></p></test>sL1 (test) [None] 0 0
1 (p) [None] 0 1
15 (p) [None] 0 1
15 (test) [None] 0 0
s
test13 faileds<p></p>s#1 (p) [None] 0 0
15 (p) [None] 0 0
s
test14 faileds<?xml version="1.0" standalone="no"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
]>

<article>
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
</article>
s�10 (article) [None] 0 0
1 (article) [None] 0 0
3 (#text) [
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
] 0 1
15 (article) [None] 0 0
s
test15 failedtOKsMemory leak %d bytes(%t
setup_testRtsystStringIORtiotdebugMemoryRRRRRRtrettexitRRRt
HasAttributesRtGetAttributeNotGetAttributeNstGetAttributetLookupNamespacetMoveToAttributeNotMoveToAttributetMoveToAttributeNst
MoveToElementtMoveToFirstAttributeRtNamespaceUrit	LocalNameR!tdoctexpectR t
cleanupParser(((sB/opt/cpanel/ea-libxml2/share/doc/libxml2/python/examples/reader.pyt<module>s|


$$$$$$$$$$$$	$$$$$		



Zerion Mini Shell 1.0