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: Special Character in- and output [modified]

XML: Special Character in- and output [modified]

Scheduled Pinned Locked Moved XML / XSL
helpcsharpdatabasexml
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.
  • Z Offline
    Z Offline
    Zaegra
    wrote on last edited by
    #1

    Hi all, I am trying to save a list of products in a XML database. But, when I try to read the xml file (outputting goes ok, using the XMLTextWriter) I get an error message telling me that there are illegal characters in a name and that the document can't be read. What can I do about this? I am trying to save the products as follows: (I am using Visual Basic.NET - VS2005)

    [Groupname]
          [Brandname]
                [Productname]
                            [Price]3,99[/Price] 
                            [ItemID]12345[/ItemID]
                            [Description]""[/Description]
                [/Productname]
          [/Brandname]
    [/Groupname]
    

    And it is no option to not let people type special characters, since there are loads of brand- and productnames containing special characters (like é, ä, @ etc) Please help me out, :) --Zaegra--

    Motivation is the key to software development.

    modified on Thursday, September 11, 2008 12:50 PM

    E 1 Reply Last reply
    0
    • Z Zaegra

      Hi all, I am trying to save a list of products in a XML database. But, when I try to read the xml file (outputting goes ok, using the XMLTextWriter) I get an error message telling me that there are illegal characters in a name and that the document can't be read. What can I do about this? I am trying to save the products as follows: (I am using Visual Basic.NET - VS2005)

      [Groupname]
            [Brandname]
                  [Productname]
                              [Price]3,99[/Price] 
                              [ItemID]12345[/ItemID]
                              [Description]""[/Description]
                  [/Productname]
            [/Brandname]
      [/Groupname]
      

      And it is no option to not let people type special characters, since there are loads of brand- and productnames containing special characters (like é, ä, @ etc) Please help me out, :) --Zaegra--

      Motivation is the key to software development.

      modified on Thursday, September 11, 2008 12:50 PM

      E Offline
      E Offline
      Erik Westermann
      wrote on last edited by
      #2

      Try this - check the comment written by Mark[^]

      Erik Westermann - wWorkflow.net - BizTalk Consulting Services
      SOA * ESB * BPI * SaaS ... forget the alphabet soup - get the main course with our consulting services!
      wWorkflow.net or +1 416-809-1453

      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