XML Schema freind or foe

547 Words3 Pages
Validating XML is important in ensuring information contained within a document contains program compatible vocabulary and structure according to Fawcett et al (2012). As one of the methods of validating an XML document, DTD or document type definition provides a basic method of checking and defining the internal structure. This method has been noted as overly basic as it does not use XML language and is therefore very limited in syntax. As a viable successor to DTD Schemas can provide a wealth of benefits, but are argued by many as overly complex. Is the Schema the best solution for validation or could the DTD be improved in order to provide a simpler, even less verbose way to define XML structure and document validation. Examining the strengths and weaknesses of DTDs can provide the necessary information to further this discussion DTD A Document Type Definition becomes necessary when validating structure of the document according to w3Schools (2000), as this enables a comparison of structural elements with the document tags. This defining allows an easier interpretation of structure from other developers and further characterizes the format of the document in an application independent format notes Refsnes, (2003). Benefits include; (Fawcett et al, 2012), (Kakkar,2012) • Precision in language description • Standards based • Simple declaration structure • Some structural control of quantity, cardinality, etc. • Define substitutions or default structure These benefits allow for a document that can substitute required information, in order to simplify some user input. Also simple validation of tagging structure helps ensure application errors can be mitigated prior to production release. However this simple structure co... ... middle of paper ... ...apolis, IN: John Wiley & Sons, Inc. Kakkar, B., 2012. XML DTDVs. XML Schema. [Online] Available at: http://technodivine.com/home/?page_id=10&file_url=http%3A%2F%2Ftechnodivine.com%2Fdownloads%2FArticles-and-White-Papers%2FMiscellaneous%2F08-XML-DTDs-Vs-XML-Schema.pdf [Accessed 28 March 2014]. Kawaguchi, K., 2002. W3C XML Schema: DOs and DON'Ts. [Online] Available at: http://www.kohsuke.org/xmlschema/XMLSchemaDOsAndDONTs.html [Accessed 29 March 2014]. Moller, A. & Schwartzbach, M.I., 2003. Problems with XML Schema. [Online] Available at: http://cs.au.dk/~amoeller/XML/schemas/xmlschema-problems.html [Accessed 29 March 2014]. N/A, 2000. XML DTD. [Online] Available at: http://www.w3schools.com/xml/xml_dtd.asp [Accessed 28 March 2014]. Refsnes, J.E., 2003. Introduction to DTD. [Online] Available at: http://www.xmlfiles.com/dtd/dtd_intro.asp [Accessed 29 March 2014].

    More about XML Schema freind or foe

      Open Document