diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2019-01-02 20:21:08 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2019-01-02 20:21:08 (GMT) |
commit | 8f5c6286538d2f0c762edeacf21f85eeeed1fe0b (patch) | |
tree | 658268b7e04eed42e7cecc6338f5ef7d18cb788a /tclxml/tcldom-libxml2.tcl | |
parent | 7a0b03ed0c0b01990f519655fdd6b18e790c5ecc (diff) | |
download | blt-8f5c6286538d2f0c762edeacf21f85eeeed1fe0b.zip blt-8f5c6286538d2f0c762edeacf21f85eeeed1fe0b.tar.gz blt-8f5c6286538d2f0c762edeacf21f85eeeed1fe0b.tar.bz2 |
update TEA 3.13
Diffstat (limited to 'tclxml/tcldom-libxml2.tcl')
-rw-r--r-- | tclxml/tcldom-libxml2.tcl | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/tclxml/tcldom-libxml2.tcl b/tclxml/tcldom-libxml2.tcl deleted file mode 100644 index d5ef415..0000000 --- a/tclxml/tcldom-libxml2.tcl +++ /dev/null @@ -1,37 +0,0 @@ -# impl.tcl -- -# -# Support script for libxml2 implementation. -# -# Std disclaimer -# -# $Id: tcldom-libxml2.tcl,v 1.1.1.1 2009/01/16 22:11:49 joye Exp $ - -namespace eval ::dom { - variable strictDOM 1 -} - -proc dom::libxml2::parse {xml args} { - - array set options { - -keep normal - -retainpath /* - } - array set options $args - - if {[catch {eval ::xml::parser -parser libxml2 [array get options]} parser]} { - return -code error "unable to create XML parser due to \"$parser\"" - } - - if {[catch {$parser parse $xml} msg]} { - return -code error $msg - } - - set doc [$parser get document] - set dom [dom::libxml2::adoptdocument $doc] - $parser free - - return $dom -} -proc dom::parse {xml args} { - return [eval ::dom::libxml2::parse [list $xml] $args] -} |