2

I'm bit confused on which scenario is best to use DTD vs XSD and vice versa. I have a requirement to validate cXML Purchase Order file. If anyone could please help, will be appreciated.

Community
  • 1
  • 1
Nil Pun
  • 17,035
  • 39
  • 172
  • 294

1 Answers1

3

XSD has for all practical purposes superseded DTD and should be used for any new development. DTD has many limitations (e.g. no real support for data types or XML namespaces).

bobbymcr
  • 23,769
  • 3
  • 56
  • 67
  • Thanks @bobbymc, does cXML Supports XSD? I can't find any XSD for PO and Invoice cXML on http://www.cxml.org/. – Nil Pun Jun 19 '11 at 03:22
  • @flybyte - Possibly check http://www.modhul.com/schema-repository-cxml/ or see http://stackoverflow.com/questions/1510126/free-dtd-to-xsd-conversion-utility – TrueWill Jun 19 '11 at 04:16