diff --git a/ChangeLog b/ChangeLog index 092a4da8..42920f2d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Fri Dec 20 11:27:49 CET 2002 Daniel Veillard + + * doc/libxml2-api.xml python/tests/reader.py: one really need + to provide the base URI information when creating a reader parser + from an input stream. Updated the API and the example using it. + Fri Dec 20 01:11:30 CET 2002 Daniel Veillard * testReader.c xmlreader.c valid.c include/libxml/tree.h diff --git a/doc/libxml2-api.xml b/doc/libxml2-api.xml index dbbf3475..d92e9ea4 100644 --- a/doc/libxml2-api.xml +++ b/doc/libxml2-api.xml @@ -909,6 +909,9 @@ + + + @@ -2669,6 +2672,8 @@ actually an xmlCharEncoding'/> + + @@ -2843,6 +2848,8 @@ actually an xmlCharEncoding'/> + + @@ -6493,6 +6500,7 @@ actually an xmlCharEncoding'/> Create an xmlTextReader structure fed with @input + Create an xmlTextReader structure fed with the resource at @URI @@ -7276,7 +7284,7 @@ actually an xmlCharEncoding'/> Push one input token in the execution context - + @@ -8985,6 +8993,29 @@ actually an xmlCharEncoding'/> + + Pop the element end from the validation stack. + + + + + + + + check the CData parsed for validation in the current stack + + + + + + + Push a new element start on the validation stack. + + + + + + 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 diff --git a/python/tests/reader.py b/python/tests/reader.py index b6efa489..be81cc24 100755 --- a/python/tests/reader.py +++ b/python/tests/reader.py @@ -8,7 +8,7 @@ libxml2.debugMemory(1) f = StringIO.StringIO("""content of c""") input = libxml2.inputBuffer(f) -reader = input.newTextReader() +reader = input.newTextReader("test1") ret = reader.read() if ret != 1: print "Error reading to first element" @@ -68,7 +68,7 @@ if ret != 0: # f = StringIO.StringIO("""""") input = libxml2.inputBuffer(f) -reader = input.newTextReader() +reader = input.newTextReader("test2") ret = reader.read() if ret != 1: @@ -90,7 +90,7 @@ f = StringIO.StringIO(""" """) input = libxml2.inputBuffer(f) -reader = input.newTextReader() +reader = input.newTextReader("test3") ret = reader.read() while ret == 1: @@ -109,7 +109,7 @@ if ret != 1: # f = StringIO.StringIO("""""") input = libxml2.inputBuffer(f) -reader = input.newTextReader() +reader = input.newTextReader("test4") ret = reader.read() if ret != 1: print "Error reading the testattr element"