World Library  
Flag as Inappropriate
Email this Article

XML validation

Article Id: WHEBN0008093260
Reproduction Date:

Title: XML validation  
Author: World Heritage Encyclopedia
Language: English
Subject: XML, Simple API for XML, Reference desk/Archives/Computing/2007 October 2
Collection:
Publisher: World Heritage Encyclopedia
Publication
Date:
 

XML validation

XML validation is the process of checking a document written in XML (eXtensible Markup Language) to confirm that it is both well-formed and also "valid" in that it follows a defined structure. A well-formed document follows the basic syntactic rules of XML, which are the same for all XML documents.[1] A valid document also respects the rules dictated by a particular DTD or XML schema, according to the application-specific choices for those particular .[2]

In addition, extended tools are available such as OASIS CAM standard specification that provide contextual validation of content and structure that is more flexible than basic schema validations.

xmllint is a command line XML tool that can perform XML validation. It can be found in UNIX / Linux environments. An example with the use of this program for validation of a file called example.xml is

xmllint --valid --noout example.xml

References

  1. ^ "Well-Formed XML Documents". Extensible Markup Language (XML) 1.1.  
  2. ^ "Constraints and Validation Rules". XML Schema Part 1: Structures Second Edition.  

External links

XML toolkit
  • The XML C parser and toolkit of Gnome – libxml includes xmllint
Online validators for XML files
  • http://www.xmldation.com Leading XML Validation Service
  • http://xmlvalidation.com/
Articles discussing XML validation
  • DEVX March, 2009 - Taking XML Validation to the Next Level: Introducing CAM
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and USA.gov, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for USA.gov and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
 
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
 
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.
 



Copyright © World Library Foundation. All rights reserved. eBooks from World eBook Library are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.