You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both functions try to set the name/value to the specified string, and return the operation result. The operation fails if the node can not have name or value (for instance, when trying to call `set_name` on a <<node_pcdata,node_pcdata>> node), if the node handle is null, or if there is insufficient memory to handle the request. The provided string is copied into document managed memory and can be destroyed after the function returns (for example, you can safely pass stack-allocated buffers to these functions). The name/value content is not verified, so take care to use only valid XML names, or the document may become malformed.
@@ -1275,6 +1276,7 @@ All attributes have name and value, both of which are strings (value may be empt
Both functions try to set the name/value to the specified string, and return the operation result. The operation fails if the attribute handle is null, or if there is insufficient memory to handle the request. The provided string is copied into document managed memory and can be destroyed after the function returns (for example, you can safely pass stack-allocated buffers to these functions). The name/value content is not verified, so take care to use only valid XML names, or the document may become malformed.
@@ -1428,6 +1430,7 @@ Once you have an `xml_text` object, you can set the text contents using the foll
This function tries to set the contents to the specified string, and returns the operation result. The operation fails if the text object was retrieved from a node that can not have a value and is not an element node (i.e. it is a <<node_declaration,node_declaration>> node), if the text object is empty, or if there is insufficient memory to handle the request. The provided string is copied into document managed memory and can be destroyed after the function returns (for example, you can safely pass stack-allocated buffers to this function). Note that if the text object was retrieved from an element node, this function creates the PCDATA child node if necessary (i.e. if the element node does not have a PCDATA/CDATA child already).
@@ -2138,6 +2141,23 @@ Because of the differences in document object models, performance considerations
2138
2141
2139
2142
:!numbered:
2140
2143
2144
+
[[v1.13]]
2145
+
=== v1.13 ^2022-11-01^
2146
+
2147
+
Maintenance release. Changes:
2148
+
2149
+
* Improvements:
2150
+
. `xml_attribute::set_value`, `xml_node::set_value` and `xml_text::set` now have overloads that accept pointer to non-null-terminated string and size
2151
+
. Improve performance of tree traversal when using compact mode (`PUGIXML_COMPACT`)
2152
+
2153
+
* Bug fixes:
2154
+
. Fix error handling in `xml_document::save_file` that could result in the function succeeding while running out of disk space
2155
+
. Fix memory leak during error handling of some out-of-memory conditions during `xml_document::load`
2156
+
2157
+
* Compatibility improvements:
2158
+
. Fix exported symbols in CMake DLL builds when using CMake
2159
+
. Fix exported symbols in CMake shared object builds when using -fvisibility=hidden
2160
+
2141
2161
[[v1.12]]
2142
2162
=== v1.12 ^2022-02-09^
2143
2163
@@ -2798,6 +2818,7 @@ const unsigned int +++<a href="#parse_wnorm_attribute">parse_wnorm_attribute</a>
0 commit comments