diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2016-01-14 07:52:40 -0800 |
---|---|---|
committer | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2016-01-14 07:52:40 -0800 |
commit | c388dbeba4f5de655ca74eb21d0a6d29c5eaaee2 (patch) | |
tree | 2e4f67bf33ac0f4b982831b4cc31f61d50cec836 /src/pugixml.hpp | |
parent | ad3b492c1a4b3bf3a3163aa2af1641f422dba33f (diff) | |
parent | 4f3be7616729cbf0c8768caf861331d710d457a8 (diff) |
Merge pull request #79 from zeux/embed-pcdata
Add parse_embed_pcdata flag
This flag determines if plain character data is be stored in the parent element's value. This significantly changes the structure of the document; this flag is only recommended for parsing documents with a lot of PCDATA nodes in a very memory-constrained environment.
Most high-level APIs continue to work; code that inspects DOM using first_child()/value() will have to be adapted.
Diffstat (limited to 'src/pugixml.hpp')
-rw-r--r-- | src/pugixml.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pugixml.hpp b/src/pugixml.hpp index 540e6ba..e561490 100644 --- a/src/pugixml.hpp +++ b/src/pugixml.hpp @@ -158,6 +158,11 @@ namespace pugi // is a valid document. This flag is off by default. const unsigned int parse_fragment = 0x1000; + // This flag determines if plain character data is be stored in the parent element's value. This significantly changes the structure of + // the document; this flag is only recommended for parsing documents with many PCDATA nodes in memory-constrained environments. + // This flag is off by default. + const unsigned int parse_embed_pcdata = 0x2000; + // The default parsing mode. // Elements, PCDATA and CDATA sections are added to the DOM tree, character/reference entities are expanded, // End-of-Line characters are normalized, attribute values are normalized using CDATA normalization rules. |