Following this session workshop participants will understand the
purpose of mp and cns, and will be able to interpret error messages
and warnings generated by these programs.
Topics of discussion
Motivation (from GD strategy): purpose of parsers
Confirm document structure conforms to standard
Check element values that can be checked
Re-express information in other useful formats
How parsers work (not too long, I promise! ;-)
Parsers expect format conventions to be observed
But they cannot rely on correct input data
Recognize element names
Keep track of element hierarchy (e.g. through indentation)
Build a parse tree
Traverse the parse tree, checking parents and children
This page is <URL:http://geology.usgs.gov/usgs/gdinfo/nsdi/training/2.html>
Maintained by Peter Schweitzer
Last updated Thursday, 10-May-2012 16:01:28 EDT