[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: SAX an working of the Parser
- From: Boris Kolpackov <boris@codesynthesis.com>
- To: xml-dev@lists.xml.org
- Date: Thu, 20 Sep 2007 13:10:33 +0000 (UTC)
Hi Jan,
"Zmitko, Jan" <Jan.Zmitko@ADBag.de> writes:
> can someone explain me how a parser works internally under the usage of =
> SAX. How can the parser detect, that the document is not well formed or =
> not valid. After each event respectively callback the parser doesn=B4t =
> know more about the element. How it=B4s possible to check that some =
> elements later the document is not closed correctly (for example)? Use a =
> parser temporaly an internal cache for a range of nodes, or the like?
A SAX parser normally uses a stack to keep track of elements that
have been opened but haven't been closed yet.
Boris
--
Boris Kolpackov
Code Synthesis Tools CC
http://www.codesynthesis.com
Open-Source, Cross-Platform C++ XML Data Binding
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]