Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Html Editors Enhanced-html > Setting encodin...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 45 of 112
Post > Topic >>

Setting encoding type for parser Microsoft.XMLDOM

by "Lamberti Fabrizio" <lambu@[EMAIL PROTECTED] > Jun 23, 2004 at 06:59 PM

This is a multi-part message in MIME format.

------=_NextPart_000_00BA_01C45954.43411480
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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.

Regards
------=_NextPart_000_00BA_01C45954.43411480
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Hi all,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I've got this problem.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I must setting the encoding type for =
the parser=20
Microsoft.XMLDOM by JScript or VBScript coding before loading some datas =
xml=20
formatted.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I've tried to use method <FONT=20
face=3D"Courier New">createProcessingInstruction</FONT> that is perfect =
to set the=20
version of xml</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>Dim xmlList, objPI, objNode, =
objTop<BR>Set=20
xmlList =3D Server.CreateObject("Microsoft.XMLDOM")<BR>...<BR>Set objPI =
=3D=20
xmlList.createProcessingInstruction("xml",=20
"version=3D'1.0'")<BR>xmlList.insertBefore objPI,=20
xmlList.childNodes(0)</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>How can I do for setting the encoding =
type too=20
?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The encondig type I want to use is the =
<FONT=20
face=3D"Times New Roman" size=3D3>ISO-8859-1 one.</FONT></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Please help me.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Regards</FONT></DIV></BODY></HTML>

------=_NextPart_000_00BA_01C45954.43411480--




 1 Posts in Topic:
Setting encoding type for parser Microsoft.XMLDOM
"Lamberti Fabrizio&q  2004-06-23 18:59:51 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun May 11 22:15:02 CDT 2008.