Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extra XML encoding tag in HTML source code! Remove?

Status
Not open for further replies.

spydrlink

Programmer
Feb 21, 2008
2
US
I'm using ASP to do server-side translation of an XML file using XSL. Everything is great but looking at the resulting source code, you can see several lines of:

<?xml version="1.0" encoding="UTF-16"?>

any place that I've done the XSL transform. This is screwing up the code validation of the page. Is there anyway to remove this? Is it a MSXML2 parser issue...or something else?
 
To make prolog encoding setting effective, you should use transformNodeToObject method. Check out the ms documentation on the method for detail.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top