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. C#
  4. Invalid Character in XmlDocument

Invalid Character in XmlDocument

Scheduled Pinned Locked Moved C#
helpxml
2 Posts 2 Posters 0 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
    malikjhangirahmed hotmail com
    wrote on last edited by
    #1

    Hi, I have a web service and a web service consumer. Whenever i call the function of the web service, i get exception System.Xml.XmlException with message Character 0x12 is not valid in XmlDocument. I know that characters whose code are under 0x20 are not allowed in XML Documents. Actually i am sending encrypted data to the web service that's why when i encrypt, characters under 0x20 also appear in the XML Document. I have searched the net but could not get the work around. Please help me to solve this problem. Wasif Ehsan.

    N 1 Reply Last reply
    0
    • M malikjhangirahmed hotmail com

      Hi, I have a web service and a web service consumer. Whenever i call the function of the web service, i get exception System.Xml.XmlException with message Character 0x12 is not valid in XmlDocument. I know that characters whose code are under 0x20 are not allowed in XML Documents. Actually i am sending encrypted data to the web service that's why when i encrypt, characters under 0x20 also appear in the XML Document. I have searched the net but could not get the work around. Please help me to solve this problem. Wasif Ehsan.

      N Offline
      N Offline
      NaNg15241
      wrote on last edited by
      #2

      Try after all the encrypting (or even do just that) a Base64 encrypter. It mainly changes all chars to a-z, A-Z, 0-9, =, [And another one I don't remember], so that you can use that anywhere. Try it.

      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