aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvineeth-11316 <vineeth.ks@zohocorp.com>2023-08-19 09:54:01 +0530
committervineeth-11316 <vineeth.ks@zohocorp.com>2023-08-19 09:54:01 +0530
commit068aa22b1a82da8dc50dbe639cb3e576f81ff520 (patch)
tree69803cfc66a2812f7908906f32d1f51a6a78ea98
parente15adbe7043f1c6c180960bb4e808d9ce04e9628 (diff)
downloadpugixml-068aa22b1a82da8dc50dbe639cb3e576f81ff520.zip
pugixml-068aa22b1a82da8dc50dbe639cb3e576f81ff520.tar.gz
pugixml-068aa22b1a82da8dc50dbe639cb3e576f81ff520.tar.bz2
documentation Change
-rw-r--r--docs/manual.adoc3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/manual.adoc b/docs/manual.adoc
index 6464950..b9ed8b4 100644
--- a/docs/manual.adoc
+++ b/docs/manual.adoc
@@ -749,6 +749,8 @@ These flags control the resulting tree contents:
* [[parse_embed_pcdata]]`parse_embed_pcdata` determines if PCDATA contents is to be saved as element values. Normally element nodes have names but not values; this flag forces the parser to store the contents as a value if PCDATA is the first child of the element node (otherwise PCDATA node is created as usual). This can significantly reduce the memory required for documents with many PCDATA nodes. To retrieve the data you can use `xml_node::value()` on the element nodes or any of the higher-level functions like `child_value` or `text`. This flag is *off* by default.
Since this flag significantly changes the DOM structure it is only recommended for parsing documents with many PCDATA nodes in memory-constrained environments. This flag is *off* by default.
+* [[parse_merge_pcdata]]`parse_merge_pcdata` determines if PCDATA contents is to be merged with the previous PCDATA node, if no intermediary nodes are present between them.If the PCDATA contains CDATA sections , PI nodes , comments in between and either of the flags <<parse_cdata,parse_cdata>> ,<<parse_pi,parse_pi>> ,<<parse_comments,parse_comments>> is not set means, the contents of PCDATA will be merged with the previous one.Since this flag significantly changes the DOM structure it is only recommended for parsing documents with PCDATA nodes in memory-constrained environments. This flag is *off* by default.
+
* [[parse_fragment]]`parse_fragment` determines if document should be treated as a fragment of a valid XML. Parsing document as a fragment leads to top-level PCDATA content (i.e. text that is not located inside a node) to be added to a tree, and additionally treats documents without element nodes as valid and permits multiple top-level element nodes (currently multiple top-level element nodes are also permitted when the flag is off, but that behavior should not be relied on). This flag is *off* by default.
CAUTION: Using in-place parsing (<<xml_document::load_buffer_inplace,load_buffer_inplace>>) with `parse_fragment` flag may result in the loss of the last character of the buffer if it is a part of PCDATA. Since PCDATA values are null-terminated strings, the only way to resolve this is to provide a null-terminated buffer as an input to `load_buffer_inplace` - i.e. `doc.load_buffer_inplace("test\0", 5, pugi::parse_default | pugi::parse_fragment)`.
@@ -2799,6 +2801,7 @@ const unsigned int +++<a href="#parse_trim_pcdata">parse_trim_pcdata</a>+++
const unsigned int +++<a href="#parse_ws_pcdata">parse_ws_pcdata</a>+++
const unsigned int +++<a href="#parse_ws_pcdata_single">parse_ws_pcdata_single</a>+++
const unsigned int +++<a href="#parse_embed_pcdata">parse_embed_pcdata</a>+++
+const unsigned int +++<a href="#parse_merge_pcdata">parse_merge_pcdata</a>+++
const unsigned int +++<a href="#parse_wconv_attribute">parse_wconv_attribute</a>+++
const unsigned int +++<a href="#parse_wnorm_attribute">parse_wnorm_attribute</a>+++
----