[Home] [By Thread] [By Date] [Recent Entries]

  • From: Boris Kolpackov <boris@c...>
  • To: xml-dev@l...
  • Date: Thu, 20 Sep 2007 13:10:33 +0000 (UTC)

Hi Jan,

"Zmitko, Jan" <Jan.Zmitko@A...> 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]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member