N
Nadav
Hello,
When I create an XML header using this code:
XmlDeclaration header = doc.CreateXmlDeclaration("1.0", "UTF-8", null);
XmlElement rootElement = doc.DocumentElement;
doc.InsertBefore(header, rootElement);
It adds some invalid characters before the header itself, only viewable with
a text editor (IE opens the XML ok). This causes some perl code I got, which
reads from the XML, to fail.
This is the header:
?»¿<?xml version="1.0" encoding="UTF-8"?>
How can I fix this ?
Thanks.
Nadav.
When I create an XML header using this code:
XmlDeclaration header = doc.CreateXmlDeclaration("1.0", "UTF-8", null);
XmlElement rootElement = doc.DocumentElement;
doc.InsertBefore(header, rootElement);
It adds some invalid characters before the header itself, only viewable with
a text editor (IE opens the XML ok). This causes some perl code I got, which
reads from the XML, to fail.
This is the header:
?»¿<?xml version="1.0" encoding="UTF-8"?>
How can I fix this ?
Thanks.
Nadav.