Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. XML Encoding Stripped when Loaded

XML Encoding Stripped when Loaded

Scheduled Pinned Locked Moved XML / XSL
htmlwcfxmlhelp
1 Posts 1 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mtone
    wrote on last edited by
    #1

    I am using vbscript to execute web services. Normally we can leave encoding out of the declaration line but we need it for chinese characters. When I load the xml from a stream (.LoadXML(...)) the encoding attribute gets stripped from the page declaration. If I try to load the file into the DOM it errors with no reason. Even If I try to set the declaration after loading it still does not showup in the XML Text. InputFolderXML = XMLTEXT from a file Set XmlInputDoc = CreateObject("Msxml2.FreeThreadedDOMDocument.4.0") LoadXmlResult = XmlInputDoc.loadXml(InputFolderXML) XmlInputDoc.CreateXmlDeclaration "1.0", "gb2312", Nothing Any Help will be greatly appreciated Thanks Joe

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups