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. '_Chairs' is an unexpected token. The expected token is '='. Line 1, position 545.

'_Chairs' is an unexpected token. The expected token is '='. Line 1, position 545.

Scheduled Pinned Locked Moved XML / XSL
csharpphpasp-netcom
3 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.
  • V Offline
    V Offline
    Vimalsoft Pty Ltd
    wrote on last edited by
    #1

    Good Day I have an XML attached in the following zipped file and i read it like this in C# http://www.vbforums.com/attachment.php?attachmentid=74357&d=1258368852[^] and i read it like this in C#

    DataSet ds1 = new DataSet();
            StringReader rdr = new StringReader(xmlstr.ToString());
            ds1.ReadXml(rdr);
    

    and i get the Following Error

    '_Chairs' is an unexpected token. The expected token is '='. Line 1, position 545.

    Thanks

    Vuyiswa Maseko, Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code. C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/

    L 1 Reply Last reply
    0
    • V Vimalsoft Pty Ltd

      Good Day I have an XML attached in the following zipped file and i read it like this in C# http://www.vbforums.com/attachment.php?attachmentid=74357&d=1258368852[^] and i read it like this in C#

      DataSet ds1 = new DataSet();
              StringReader rdr = new StringReader(xmlstr.ToString());
              ds1.ReadXml(rdr);
      

      and i get the Following Error

      '_Chairs' is an unexpected token. The expected token is '='. Line 1, position 545.

      Thanks

      Vuyiswa Maseko, Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code. C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Vuyiswa Maseko wrote:

      and i get the Following Error '_Chairs' is an unexpected token. The expected token is '='. Line 1, position 545.

      Well it took me less than twenty seconds to find this token, plainly showing the syntax error. Did you try the same?

      V 1 Reply Last reply
      0
      • L Lost User

        Vuyiswa Maseko wrote:

        and i get the Following Error '_Chairs' is an unexpected token. The expected token is '='. Line 1, position 545.

        Well it took me less than twenty seconds to find this token, plainly showing the syntax error. Did you try the same?

        V Offline
        V Offline
        Vimalsoft Pty Ltd
        wrote on last edited by
        #3

        i found the Problem. The name of the Attribute was Desks_&_Chairs Thanks

        Vuyiswa Maseko, Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code. C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/

        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