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. .NET (Core and Framework)
  4. Validating a xml file

Validating a xml file

Scheduled Pinned Locked Moved .NET (Core and Framework)
xmltutorial
3 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.
  • C Offline
    C Offline
    chito
    wrote on last edited by
    #1

    Hello, How to validate a xml document against a dtd when no dtd reference is actually in the xml document. Thanks, Chito

    S P 2 Replies Last reply
    0
    • C chito

      Hello, How to validate a xml document against a dtd when no dtd reference is actually in the xml document. Thanks, Chito

      S Offline
      S Offline
      Stephane Rodriguez
      wrote on last edited by
      #2

      <sarcasm> Post of the week. </sarcasm> ;)

      1 Reply Last reply
      0
      • C chito

        Hello, How to validate a xml document against a dtd when no dtd reference is actually in the xml document. Thanks, Chito

        P Offline
        P Offline
        Paul Watson
        wrote on last edited by
        #3

        I will let you find out the details but very simply you use the XML classes in the .NET Framework. Load up your XML document and there is a property/method to assign a DTD/XSD to the XML file and then you can validate it. Go through those classes. They have virtually everything you will need and all very self explanatory.

        Paul Watson
        Bluegrass
        Cape Town, South Africa

        Macbeth muttered: I am in blood / Stepped in so far, that should I wade no more, / Returning were as tedious as go o'er DavidW wrote: You are totally mad. Nice.

        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