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. Checking for valid xml file.

Checking for valid xml file.

Scheduled Pinned Locked Moved XML / XSL
xmldatabase
3 Posts 2 Posters 8 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
    Mark F
    wrote on last edited by
    #1

    Before you read on, this is not about checking for valid XML syntax or schema. I would like to be able to check if the user is opening an XML file that has data for my application only. If they try to open any other XML file the application should warn them. The XML file data is serialized via XmlSerializer.

    Thanks, Mark

    B 1 Reply Last reply
    0
    • M Mark F

      Before you read on, this is not about checking for valid XML syntax or schema. I would like to be able to check if the user is opening an XML file that has data for my application only. If they try to open any other XML file the application should warn them. The XML file data is serialized via XmlSerializer.

      Thanks, Mark

      B Offline
      B Offline
      Bernhard Hiller
      wrote on last edited by
      #2

      Add some kind of identifier for your application, perhaps also including a version number.

      M 1 Reply Last reply
      0
      • B Bernhard Hiller

        Add some kind of identifier for your application, perhaps also including a version number.

        M Offline
        M Offline
        Mark F
        wrote on last edited by
        #3

        Does such a thing require adding a new namespace?

        Mark

        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