Next in thread →
Next in month →
Re: SAX an working of the Parser
Hi Jan, "Zmitko, Jan" <> 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
Next in thread →
Next in month →