The CopyOfDirective works with nodes that contains namespace definitions.
Actual Behavior
Example:
var xml =
XDocument.Parse(
"<root xmlns=\"MyDefaultNamespaceUri\">" +
"<parent>content</parent>" +
"</root>"
);
new Xambler(
...
new CopyOfDirective(xml.FirstNode)
...
).Apply(xml);
Failes with Yaapii.Xambly.Error.ImpossibleModificationException : Exception at dir 1: XPATH /def:root (Invalid XPath expr '/def:root' (Namespacepräfix 'def' wurde nicht definiert.))
Expected Behavior
The
CopyOfDirective
works with nodes that contains namespace definitions.Actual Behavior
Example:
Failes with
Yaapii.Xambly.Error.ImpossibleModificationException : Exception at dir 1: XPATH /def:root (Invalid XPath expr '/def:root' (Namespacepräfix 'def' wurde nicht definiert.))
Steps to reproduce the behavior
The log given by the failure.
Mention any other details that might be useful