Home > Ask the SOA Experts > Questions & Answers > How do XML schema validators work?
Ask The SOA Expert: Questions & Answers
EMAIL THIS

How do XML schema validators work?

Sean McGrath EXPERT RESPONSE FROM: Sean McGrath

Pose a Question
Other SOA Categories
Meet all SOA Experts
Become an Expert for this site
>
QUESTION POSED ON: 05 January 2004
How XML schema validators work? If you know the architecture of any of them, can you describe it briefly? Do DOM parsers depend on SAX?

>
Schema validators work by using the schema to build an internal representation of the grammar described in the schema. Typically, a state machine is created from the grammer and then the document is tested against the state machine.

One way to think of it is that it is a bit like a generalized programming language. Programming languages are typically described formally by grammars. Tools such as YACC allow programmers to describe grammers and then generate code to validate programs against the grammar. An XML validator is a bit like that except that the YACC part of the process happens "on the fly".

The best place to look if you are interested in XML validators is the branch of computer science that deals with parsing. The classic text is the "dragon book" by Aho and Ullman (http://www.jargon.net/jargonfile/d/DragonBook.html).


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



SOA Governance White Papers - BPM, EDA, IT Governance
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2001 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts