1
0
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:
Daniel Veillard
2002-12-28 21:14:18 +00:00
parent 6943a4db3e
commit aba976d825
5 changed files with 113 additions and 106 deletions

View File

@ -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)