views:

449

answers:

1

I've instantiated a class that is serializable, and I'm serializing it to a file, but it is always putting the following attributes in my root element:

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"

How can I stop that?

A: 

This was alreayd asked on Stack Overflow

http://stackoverflow.com/questions/616328/remove-empty-xmlns-after-xml-serialization

Timur Fanshteyn