I have two XML objects that I believe describe the same entity, one uses namespace prefixes, and one uses inline namespace declarations. I want to diff them, but the different ways of representing the namespace make that all but impossible.
How can I take the first xml snippet below and change it to match the second snippet?
<!--I want to take data that looks like this-->
<Foo xmlns:e="http://schemas.cch.com/FooBar/MDS/2007/12/04/Foo">
<e:Description></e:Description>
<e:Name i:nil="true"></e:Name>
<e:DisplaySeqNo>0</e:DisplaySeqNo>
</Foo>
<!--I want to make that data that looks like this-->
<Foo>
<Description xmlns="http://schemas.cch.com/FooBar/MDS/2007/12/04/Foo"></Description>
<Name i:nil="true" xmlns="http://schemas.cch.com/FooBar/MDS/2007/12/04/Foo"></Name>
<DisplaySeqNo xmlns="http://schemas.cch.com/FooBar/MDS/2007/12/04/Foo">0</DisplaySeqNo>
</Foo>
The requirement to diff them is part of a manual debugging process process, so I'd be happy with a web tool, script, or whatever. I don't plan on doing this regularly but am ripping my hair out trying to figure out how xml sample A is different than xml sample B.