mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-17 18:21:05 +03:00
changed the generator to provide casing for the XmlTextReader similar to
* python/generator.py python/libxml2class.txt python/tests/reader.py python/tests/reader2.py: changed the generator to provide casing for the XmlTextReader similar to C# so that examples and documentation are more directly transposable. Fixed the couple of tests in the suite. Daniel
This commit is contained in:
@ -32,10 +32,10 @@ for file in valid_files:
|
||||
continue
|
||||
reader = libxml2.newTextReaderFilename(file)
|
||||
#print "%s:" % (file)
|
||||
reader.setParserProp(libxml2.PARSER_VALIDATE, 1)
|
||||
ret = reader.read()
|
||||
reader.SetParserProp(libxml2.PARSER_VALIDATE, 1)
|
||||
ret = reader.Read()
|
||||
while ret == 1:
|
||||
ret = reader.read()
|
||||
ret = reader.Read()
|
||||
if ret != 0:
|
||||
print "Error parsing and validating %s" % (file)
|
||||
#sys.exit(1)
|
||||
|
Reference in New Issue
Block a user