Groups | Blog | Home
all groups > dotnet windows forms databinding > june 2004 >

dotnet windows forms databinding : Setting encoding type for parser Microsoft.XMLDOM



Lamberti Fabrizio
6/23/2004 7:00:54 PM
Hi all,
I've got this problem.

I must setting the encoding type for the parser Microsoft.XMLDOM by =
JScript or VBScript coding before loading some datas xml formatted.

I've tried to use method createProcessingInstruction that is perfect to =
set the version of xml

Dim xmlList, objPI, objNode, objTop
Set xmlList =3D Server.CreateObject("Microsoft.XMLDOM")
....
Set objPI =3D xmlList.createProcessingInstruction("xml", =
"version=3D'1.0'")
xmlList.insertBefore objPI, xmlList.childNodes(0)

How can I do for setting the encoding type too ?

The encondig type I want to use is the ISO-8859-1 one.

Please help me.

Andrey Skvortsov
6/27/2004 5:32:02 AM
Try using something like
Set objPI = xmlList.createProcessingInstruction("xml", "encoding='ISO-8859-1' version='1.0'")
AddThis Social Bookmark Button