From 428cd1be420f99f8af5552bf1e75a1eb2474ae49 Mon Sep 17 00:00:00 2001 From: Lee Thomason Date: Tue, 21 Nov 2023 11:52:44 -0800 Subject: [PATCH] update readme --- readme.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index 5245ac4e..5cc158c4 100644 --- a/readme.md +++ b/readme.md @@ -93,7 +93,7 @@ by the Document. When the Document is deleted, so are all the nodes it contains. ### White Space -#### Whitespace Preservation (default) +#### Whitespace Preservation (default, PRESERVE_WHITESPACE) Microsoft has an excellent article on white space: http://msdn.microsoft.com/en-us/library/ms256097.aspx @@ -125,7 +125,7 @@ valuable. TinyXML-2 sees these as the same XML: 123 -#### Whitespace Collapse +#### Whitespace Collapse (COLLAPSE_WHITESPACE) For some applications, it is preferable to collapse whitespace. Collapsing whitespace gives you "HTML-like" behavior, which is sometimes more suitable @@ -143,7 +143,15 @@ However, you may also use COLLAPSE_WHITESPACE, which will: Note that (currently) there is a performance impact for using COLLAPSE_WHITESPACE. It essentially causes the XML to be parsed twice. -#### Error Reporting +#### Pedantic Whitespace (PEDANTIC_WHITESPACE) + +For applications that need to know about text nodes that are composed entirely of +whitespace, PEDANTIC_WHITESPACE is available. PEDANTIC_WHITESPACE maintains all the +whilespace between elements. + +PEDANTIC_WHITESPACE is a new mode and not as tested as the other whitespace modes. + +### 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,