remove ?xml from generated xml serialization

G

Guest

when serialize an object in the top of xml this line is added
<?xml version="1.0" encoding="utf-16"?>

is it possible to prevent serializer from generating it?
 
A

Angel J. Hernández M.

Hi there... Remember that it is an XML file so it must start with that line,

Regards,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top