1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-20 16:43:05 +03:00

added a new API to split a QName without generating any memory allocation

* tree.c include/libxml/tree.h: added a new API to split a
  QName without generating any memory allocation
* valid.c: fixed another problem with namespaces on element
  in mixed content case
* python/tests/reader2.py: updated the testcase with
  Bjorn Reese fix to reader for unsignificant white space
* parser.c HTMLparser.c: cleanup.
Daniel
This commit is contained in:
Daniel Veillard
2003-08-04 01:06:15 +00:00
parent 5ee43b0600
commit 8d73bcb50f
7 changed files with 111 additions and 30 deletions

View File

@ -63,17 +63,17 @@ s = """
"""
expect="""10,test
1,test
3,#text
14,#text
1,x
1,c
3,#text
15,c
15,x
3,#text
14,#text
1,b
3,#text
15,b
3,#text
14,#text
15,test
"""
res=""
@ -113,11 +113,11 @@ s = """<!DOCTYPE test [
tst_ent = """<x>hello</x>"""
expect="""10 test
1 test
3 #text
14 #text
1 x
3 #text
15 x
3 #text
14 #text
15 test
"""
res=""
@ -165,19 +165,19 @@ s = """<!DOCTYPE test [
</test>"""
expect="""10 test 0
1 test 0
3 #text 1
14 #text 1
1 x 1
1 y 2
3 #text 3
15 y 2
15 x 1
3 #text 1
14 #text 1
1 x 1
1 y 2
3 #text 3
15 y 2
15 x 1
3 #text 1
14 #text 1
15 test 0
"""
res=""
@ -218,11 +218,11 @@ s = """<!DOCTYPE test [
</test>"""
expect="""10 test 0
1 test 0
3 #text 1
14 #text 1
5 x 1
3 #text 1
14 #text 1
5 x 1
3 #text 1
14 #text 1
15 test 0
"""
res=""