Search code examples
xmlxsdxsd.exedtd

Are XSD always generated using third-party tools?


I am a beginner with XML. I can do DTD fairly well.

While learning about XSD and how to generate it, I found that all the tutorials available on Google and those on YouTube create XSD using third-party tools. For Windows they use either VB or xsd.exe tool.

Although handy, from a learner's point-of-view they are not good as I should know how to do it manually and later move on to automated schema generation.

My question is:

  • Are XSDs and DTDs always generated using third party tools ?
  • If they are handwritten, where can I find a good source of knowledge for it?
  • I am on a Windows machine, by the way :)


    Solution

  • 1: You can write it by hand and test it against your file with xmllint

    2: Take a look here w3c doc-1 and here w3c doc-2 but they are the full documentation/specification. But I think the best is here xsd-tutorial