mirror of https://github.com/AxioDL/tinyxml2.git
Removed line numbering support as an advantage of TinyXML-1.
Added error reporting system that discusses the support for line number information.
This commit is contained in:
parent
ec6941503c
commit
a43ff7210e
14
readme.md
14
readme.md
|
@ -88,9 +88,8 @@ Advantages of TinyXML-2
|
||||||
|
|
||||||
Advantages of TinyXML-1
|
Advantages of TinyXML-1
|
||||||
|
|
||||||
1. Can report the location of parsing errors.
|
1. Support for some C++ STL conventions: streams and strings
|
||||||
2. Support for some C++ STL conventions: streams and strings
|
2. Very mature and well debugged code base.
|
||||||
3. Very mature and well debugged code base.
|
|
||||||
|
|
||||||
Features
|
Features
|
||||||
--------
|
--------
|
||||||
|
@ -157,6 +156,15 @@ However, you may also use COLLAPSE_WHITESPACE, which will:
|
||||||
Note that (currently) there is a performance impact for using COLLAPSE_WHITESPACE.
|
Note that (currently) there is a performance impact for using COLLAPSE_WHITESPACE.
|
||||||
It essentially causes the XML to be parsed twice.
|
It essentially causes the XML to be parsed twice.
|
||||||
|
|
||||||
|
#### Error Reporting
|
||||||
|
|
||||||
|
TinyXML-2 reports the line number of any errors in an XML document that
|
||||||
|
cannot be parsed correctly. In addition, all nodes (elements, declarations,
|
||||||
|
text, comments etc.) and attributes have a line number recorded as they are parsed.
|
||||||
|
This allows an application that performs additional validation of the parsed
|
||||||
|
XML document (e.g. application-implemented DTD validation) to report
|
||||||
|
line number information in it's errors.
|
||||||
|
|
||||||
### Entities
|
### Entities
|
||||||
|
|
||||||
TinyXML-2 recognizes the pre-defined "character entities", meaning special
|
TinyXML-2 recognizes the pre-defined "character entities", meaning special
|
||||||
|
|
Loading…
Reference in New Issue