Generated from tdomcmd.xml

BEGIN man.macros
.nr ^l \n(.l . ie !"\\$2"" .TP \\n()Cu . el .TP 15 .\} \\$1 \\\$2\ (\\$3) .b
.\}

\\$1 \\\$2\ .\} \\\$1\ .\} .\} .. .nr )A 10n .nr )B \\n()Au+15n
.nr )C \\n()Bu+\\w'(in/out)'u+2n .. .AS Tcl_Interp Tcl_CreateInterp in/out

^y .nr ^b 1u ..

^t Draw four-sided box normally, but don't draw top of
box if the box started on an earlier page.
\h'-1.5n'\L'|\\n(^yu-1v'\l'\\n(^lu+3n\(ul'\L'\\n(^tu+1v-\\n(^yu'\l'|0u-1.5n\(ul' .\} \h'-1.5n'\L'|\\n(^yu-1v'\h'\\n(^lu+3n'\L'\\n(^tu+1v-\\n(^yu'\l'|0u-1.5n\(ul' .\} .\}

.nr ^b 0 ..

^Y .. .ev 2

^t \h'|\\n(^lu+3n'\L'|\\n(^Yu-1v\(bv'\v'\\n(^tu+1v-\\n(^Yu'\h'-|\\n(^lu+3n'

.ev .\} .nr ^v 0 .. .ev 2 'ti 0 'nf

^t Draw three-sided box if this is the box's first page,
draw two sides but no top otherwise.
.\} .nr ^x \\n(^tu+1v-\\n(^Yu \kx\h'-\\nxu'\h'|\\n(^lu+3n'\ky\L'-\\n(^xu'\v'\\n(^xu'\h'|0u'\c .\} .bp 'fi .ev

^y .nr ^b 2 .\}

^Y .\} ..

..
..
"STANDARD OPTIONS"

..

See the \options\ manual entry for details on the standard options. ..

Command-Line Name: \\\$1\
Database Name: \\\$2\
Database Class: \\\$3\
..

..
.. \\$1\l'|0\(ul'\\$2 .. END man.macros
tdom n "" Tcl ""
S
NAME
tdom - tdom is an expat parser object extension to create an in-memory DOM tree from the input while parsing.
SYNOPSIS
package require tdom

set parser [expat]

tdom $parser enable
E
DESCRIPTION

\fItdom adds the C handler set "tdom" to an tcl expat parser obj. This handler set builds an in-memory DOM tree out of the input, parsed by the parser. A DOM tree created this way behave exactly like a DOM tree created by the "dom" command (see there). In fact, tdom is only another interface to the same functionality; it uses the code behind the \fBdom code for building the DOM tree.

\fBtdom parserObj enable \fR

Adds the tdom C handler set to a Tcl expat parser object. Next time, the parser parses input, the tdom C handler functions create an in-memory DOM tree.

\fBtdom parserObj getdoc \fR

Returns the DOM tree as domDoc (see there) object.

\fBtdom parserObj setResultEncoding \fR

See the method setResultEncoding of the \fBdom command.

\fBtdom parserObj setStoreLineColumn ?boolean? \fR

See the method setStoreLineColumn of the \fBdom command.

\fBtdom parserObj remove \fR

Removes the tdom C handler set from the parser object.

\fBtdom parserObj keepEmpties \fR

See the option -keepEmpties of the dom command.

\fBtdom parserObj setExternalEntityResolver script \fR

"SEE ALSO"
dom, expat
KEYWORDS
DOM, SAX, C handler set