How to remove an specific xml attribute from org.w3c.dom.Document



I need to remove xmlns="" (emptys)


I have this xml (org.w3c.dom.Document):



<Body xmlns:wsu="http://mynamespace">
<Ticket xmlns="http://othernamespace">
<Customer xlmns="">Robert</Customer>
<Products xmlns="">
<Product>a product</>
</Products>
</Ticket>
<Delivered xmlns="" />
<Payment xlmns="">cash</Payment>
</Body>


Is it any way to do that?


Tiada ulasan:

Catat Ulasan