XML Refactoring introduces unwanted attributes in child nodes
Posted: Fri Jun 23, 2017 1:18 am
I'm trying XML Refactoring with the operation "Wrap Contents of Tag". However, unwanted attributes are introduced in child nodes that are contained in the content of the tag that is being selected.
Suppose my XPath picks out some element <parent> and wraps its content with <inserted_tag> such that
<parent>
some text
<child>text</child>
</parent>
On previewing I get
<parent>
<inserted_tag>some text
<child
xmlns="zzz" xmlns:zz="zzz" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xlink="http://www.w3.org/1999/xlink">
text</child>
</parent>
where the attributes in red are unwanted attributes. Any idea why these are introduced and how I can avoid that?
Thanks for the help.
Karan.
Suppose my XPath picks out some element <parent> and wraps its content with <inserted_tag> such that
<parent>
some text
<child>text</child>
</parent>
On previewing I get
<parent>
<inserted_tag>some text
<child
xmlns="zzz" xmlns:zz="zzz" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xlink="http://www.w3.org/1999/xlink">
text</child>
</parent>
where the attributes in red are unwanted attributes. Any idea why these are introduced and how I can avoid that?
Thanks for the help.
Karan.