1) Does SAX parser parse the XML file exactly following the syntax, i.e. by the order of the xml file's syntax strictly ?
If a user makes a mistake that he is supposed to put a data value between a tag but he accidentally put another tag name there, will the SAX parser still parse the tag instead of the "expected" value field ?
SAX parsers just read a single pass through the characters - if there is a tag start you WILL get a call to startElement().
2) if I have a xml tag looks like
<dept>
Chemical Enginnering
<head> Dr. Kidds </head>
</dept>
1) The characters method will get "
Chemical Engineering
"
(not necessarily in a single call, there may be multiple calls to characters()
2) The startElement method will get the <head> information
3) The characters method will get " Dr Kidds "
etc.
Why would you expect anything else?
Bill