Add encoding tag to xml root element

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I am serializing a class to xml and it is outputing <span style="white-space:pre <?xml version="1.0"?>. How do I modify my class to include the encoding attribute, as such?
<span style="white-space:pre <span style="font-family:Segoe UI,Verdana,Arial; font-size:13px; white-space:normal
<pre><?xml version="1.0" encoding="UTF-8" ?>[/code]
<pre>Thank you[/code]
<pre><br/>[/code]
<pre><br/>[/code]



View the full article
 
Back
Top