Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: xsl output encoding type being ignored >Thread Next - Re: xsl output encoding type being ignored Re: xsl output encoding type being ignoredTo: NULL Date: 10/10/2007 7:28:00 AM
On 9 Oct, 16:56, "Julian F. Reschke" <julian.resc...@nospam-
greenbytes.de> wrote:
> robsto...@gmail.com wrote:
> > I'm using ASP to process this XML file and am using
> > MSXML2.FreeThreadedDOMDocument.4.0 objects and the
> > transformNodeToObject method as I read that the TransformNode method
> > would convert to UTF-8 as it outputs to a string?
>
> > ASP:
> > oXMLsort.transformNodeToObject oTransform, oXML
>
> So how do you serialize the content of oXML then? Keep in mind that as
> long as the data resides in the DOM, there's really no encoding at all
> to talk about...
>
> Best regards, Julian
Thanks Julian, that might be where the problem is. Do you have a
suggestion as to how I could create the xml file whilst preserving the
encoding?
This line calls the following function: createFile (server.MapPath("../
IPSVrelationships.xml"), oXML.xml)
function createFile (strFileName, strContent)
dim fsObject, htmlFile
set fsObject = Server.CreateObject("Scripting.FileSystemObject")
'set htmlFile = fsObject.OpenTextFile(Server.MapPath("../tree.html"),
2,true)
set htmlFile = fsObject.OpenTextFile(strFileName,2,true)
htmlFile.WriteLine(strContent)
htmlFile.Close
set htmlFile=nothing
set fsObject=nothing
createFile = true
End function
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
