xmlpatch-0----Page:9
1  2  3  4  5  6  7  8  9  10  11 

Whitespace handling
Not all whitespace is insignificant -> preserve the given whitespace nodes that exist within the “body” of the request
XPath data model requires that a text node cannot have another text node as a sibling node.
Thus text node contents must be combined together:
if e.g. an element is removed between two text nodes
when adding a text node when there’s an existing text node (as a sibling).
Maintains easily “pretty printing” style (if so desired):
during the removal of e.g. elements, the following or preceding sibling whitespace node may need to be removed.
the model allows adding several sibling nodes at the same time, e.g. element + whitespace node.
PPT Version