D
davisjoseph
Hi,
I'm using Xerces C++ API for XML operations. I need to remove the XML
namespace attribute from this type of XML doc,
<?xml version="1.0" encoding="UTF-8"?>
<root xmlns="http://skies.net/schema/sky"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://skies.net/schema/sky
http://http://skies.net/schema/Schema.xsd">
............
</root>
need to be
<?xml version="1.0" encoding="UTF-8"?>
<root >
.........
</root>
I tried to use removeAttributeNS() & removeAttribute()functions ; but
I'm not able to remove the attribute fully. I think I'm missing
something.Can any one provide me a small code snippet that can do this
opeartion. I'm newbie to this Xerces API.
Thanks & Regards
I'm using Xerces C++ API for XML operations. I need to remove the XML
namespace attribute from this type of XML doc,
<?xml version="1.0" encoding="UTF-8"?>
<root xmlns="http://skies.net/schema/sky"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://skies.net/schema/sky
http://http://skies.net/schema/Schema.xsd">
............
</root>
need to be
<?xml version="1.0" encoding="UTF-8"?>
<root >
.........
</root>
I tried to use removeAttributeNS() & removeAttribute()functions ; but
I'm not able to remove the attribute fully. I think I'm missing
something.Can any one provide me a small code snippet that can do this
opeartion. I'm newbie to this Xerces API.
Thanks & Regards