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 / C++ / MFC
  4. syntax error '<'

syntax error '<'

Scheduled Pinned Locked Moved C / C++ / MFC
helpxmlquestionannouncement
6 Posts 3 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.
  • G Offline
    G Offline
    gr8coaster329
    wrote on last edited by
    #1

    i was not sure whether to post this in this forum or the xml page but i hope someone can help me. my problem is that when i try to include an xml file to my code i get a syntax error '<' from the line "< ?xml version="1.0" encoding="utf-8" ? >" but that code has to be there just like that doesnt it? i cannot figure out why it is giving me this error. any help would be greatly appreciated. Thank You - Kyle -- modified at 1:40 Sunday 30th October, 2005

    G D 2 Replies Last reply
    0
    • G gr8coaster329

      i was not sure whether to post this in this forum or the xml page but i hope someone can help me. my problem is that when i try to include an xml file to my code i get a syntax error '<' from the line "< ?xml version="1.0" encoding="utf-8" ? >" but that code has to be there just like that doesnt it? i cannot figure out why it is giving me this error. any help would be greatly appreciated. Thank You - Kyle -- modified at 1:40 Sunday 30th October, 2005

      G Offline
      G Offline
      Ghasrfakhri
      wrote on last edited by
      #2

      gr8coaster329 wrote:

      ?xml version="1.0" encoding="utf-8" ? >

      Hi :) I think you most change "< ?" to "<?" , you have an space between < and ? , ? and > <? xml version="1.0" encoding="utf-8" ?> Iman Ghasrfakhri -- modified at 1:26 Sunday 30th October, 2005

      G 1 Reply Last reply
      0
      • G Ghasrfakhri

        gr8coaster329 wrote:

        ?xml version="1.0" encoding="utf-8" ? >

        Hi :) I think you most change "< ?" to "<?" , you have an space between < and ? , ? and > <? xml version="1.0" encoding="utf-8" ?> Iman Ghasrfakhri -- modified at 1:26 Sunday 30th October, 2005

        G Offline
        G Offline
        gr8coaster329
        wrote on last edited by
        #3

        I do have it like that. i just posted it wrong. sorry about that. - Kyle -- modified at 13:13 Sunday 30th October, 2005

        1 Reply Last reply
        0
        • G gr8coaster329

          i was not sure whether to post this in this forum or the xml page but i hope someone can help me. my problem is that when i try to include an xml file to my code i get a syntax error '<' from the line "< ?xml version="1.0" encoding="utf-8" ? >" but that code has to be there just like that doesnt it? i cannot figure out why it is giving me this error. any help would be greatly appreciated. Thank You - Kyle -- modified at 1:40 Sunday 30th October, 2005

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          How and where are you including this XML file?


          "Take only what you need and leave the land as you found it." - Native American Proverb

          G 1 Reply Last reply
          0
          • D David Crow

            How and where are you including this XML file?


            "Take only what you need and leave the land as you found it." - Native American Proverb

            G Offline
            G Offline
            gr8coaster329
            wrote on last edited by
            #5

            DavidCrow wrote:

            How and where are you including this XML file?

            i am including it with #include "file.xml" at the top of my code. is that wrong? - Kyle

            D 1 Reply Last reply
            0
            • G gr8coaster329

              DavidCrow wrote:

              How and where are you including this XML file?

              i am including it with #include "file.xml" at the top of my code. is that wrong? - Kyle

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #6

              gr8coaster329 wrote:

              is that wrong?

              Very much so. You can, however, include it as a resource in the project's .rc file.


              "Take only what you need and leave the land as you found it." - Native American Proverb

              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