mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-17 18:21:05 +03:00
seriously changed the way data are pushed to the underlying parser, go by
* xmlreader.c: seriously changed the way data are pushed to the underlying parser, go by block of 512 bytes instead of tryng to detect tag boundaries at that level. Changed the way empty element are detected and tagged. * python/tests/reader.py python/tests/reader2.py python/tests/reader3.py: small changes mostly due to context reporting being different and DTD node being reported. Some errors previously undetected are now caught and fixed. * doc/xmlreader.html: flagged last section as TODO Daniel
This commit is contained in:
@ -14,13 +14,13 @@ libxml2.debugMemory(1)
|
||||
err=""
|
||||
expect="""../../test/valid/rss.xml:172: validity error: Element rss does not carry attribute version
|
||||
</rss>
|
||||
^
|
||||
^
|
||||
../../test/valid/xlink.xml:450: validity error: ID dt-arc already defined
|
||||
<p><termdef id="dt-arc" term="Arc">
|
||||
<p><termdef id="dt-arc" term="Arc">An <term>arc</term> is contained within an
|
||||
^
|
||||
../../test/valid/xlink.xml:529: validity error: attribute def line 199 references an unknown ID "dt-xlg"
|
||||
<?Pub *0000052575?>
|
||||
^
|
||||
../../test/valid/xlink.xml:530: validity error: attribute def line 199 references an unknown ID "dt-xlg"
|
||||
|
||||
^
|
||||
"""
|
||||
def callback(ctx, str):
|
||||
global err
|
||||
@ -61,7 +61,8 @@ s = """
|
||||
<b>bbb</b>
|
||||
</test>
|
||||
"""
|
||||
expect="""1,test
|
||||
expect="""10,test
|
||||
1,test
|
||||
3,#text
|
||||
1,x
|
||||
1,c
|
||||
@ -110,7 +111,8 @@ s = """<!DOCTYPE test [
|
||||
</test>
|
||||
"""
|
||||
tst_ent = """<x>hello</x>"""
|
||||
expect="""1 test
|
||||
expect="""10 test
|
||||
1 test
|
||||
3 #text
|
||||
1 x
|
||||
3 #text
|
||||
@ -161,7 +163,8 @@ s = """<!DOCTYPE test [
|
||||
&x;
|
||||
&x;
|
||||
</test>"""
|
||||
expect="""1 test 0
|
||||
expect="""10 test 0
|
||||
1 test 0
|
||||
3 #text 1
|
||||
1 x 1
|
||||
1 y 2
|
||||
@ -213,7 +216,8 @@ s = """<!DOCTYPE test [
|
||||
&x;
|
||||
&x;
|
||||
</test>"""
|
||||
expect="""1 test 0
|
||||
expect="""10 test 0
|
||||
1 test 0
|
||||
3 #text 1
|
||||
5 x 1
|
||||
3 #text 1
|
||||
|
Reference in New Issue
Block a user