From: Ian B. <id...@oe...> - 2005-09-20 14:49:43
|
Hi, I'm trying to get the hang of [xml::parser -final 0] for incremental parsing, with little luck :-(. Has anyone used this with the pure Tcl parser (3.0)? I'm getting parse errors with incremental, but no errors without. Incremental: ==== package require xml set parser [xml::parser -final 0 -errorcommand xerror] proc xerror args { puts "xerror: $args" } $parser parse {<one x="5">hello world</one>} $parser configure -final 1 $parser parse \n ==== gives: xerror: unexpectedtext {unexpected text " x="5"" in document prolog around line 0} while setting "-final 1" instead and ==== $parser parse {<one x="5">hello world</one> } ==== works as expected. Thanks, Ian Braithwaite |