Setting encoding type for parser Microsoft.XMLDOM

L

Lamberti Fabrizio

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 = Server.CreateObject("Microsoft.XMLDOM")
....
Set objPI = xmlList.createProcessingInstruction("xml", "version='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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top