How can I stop XmlSerializer transforming ê to ê in an attribute?

Posted by paul on Stack Overflow See other posts from Stack Overflow or by paul
Published on 2010-06-09T05:39:47Z Indexed on 2010/06/09 5:42 UTC
Read the original article Hit count: 199

I have the following DOM

    <row>
        <link href="B&#252;ro.txt" target="_blank">
            my link
        </link>
    </row>

When I serialize it to a file using XmlSerializer it comes out like this:

    <row>
        <link href="B&amp;#252;ro.txt" target="_blank">
            my link
        </link>
    </row>

Is there any way to control the way XmlSerializer handles escaping in attributes? Should I be doing this differently any way?

© Stack Overflow or respective owner

Related posts about attributes

Related posts about escaping