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

Namespace challenges
XPath location paths usually contain qualified elements
The “body” contains also usually qualified elements
-> define namespace declarations within the framing patch document:
xmlns="urn:foo"

The namespace URI of the element is thus “urn:foo” (==the default namespace declaration URI)
Unlike XPath 1.0, the “root” selection above means thus in XPath 1.0 semantics: ‘*[local-name()=”root”][namespace-uri()=”urn:foo”]’
The “urn:bar” declaration appears as is within the patched document after the patch has been applied.
PPT Version