1tdom(n)                                                                tdom(n)
2
3
4
5______________________________________________________________________________
6

NAME

8       tdom  - tdom is an expat parser object extension to create an in-memory
9       DOM tree from the input while parsing.
10

SYNOPSIS

12       package require tdom
13
14       set parser [expat]
15
16       tdom $parser enable
17_________________________________________________________________
18

DESCRIPTION

20       tdom adds the C handler set "tdom" to an tcl  expat  parser  obj.  This
21       handler  set  builds  an in-memory DOM tree out of the input, parsed by
22       the parser. A DOM tree created this way behave exactly like a DOM  tree
23       created by the "dom" command (see there). In fact, tdom is only another
24       interface to the same functionality; it uses the code  behind  the  dom
25       code for building the DOM tree.
26
27       tdom parserObj enable
28
29
30              Adds  the  tdom C handler set to a Tcl expat parser object. Next
31              time, the parser parses input, the tdom C handler functions cre‐
32              ate an in-memory DOM tree.
33
34       tdom parserObj getdoc
35
36
37              Returns the DOM tree as domDoc (see there) object.
38
39       tdom parserObj setResultEncoding
40
41
42              See the method setResultEncoding of the dom command.
43
44       tdom parserObj setStoreLineColumn ?boolean?
45
46
47              See the method setStoreLineColumn of the dom command.
48
49       tdom parserObj remove
50
51
52              Removes the tdom C handler set from the parser object.
53
54       tdom parserObj keepEmpties
55
56
57              See the option -keepEmpties of the dom command.
58
59       tdom parserObj setExternalEntityResolver script
60
61

SEE ALSO

63       dom, expat
64

KEYWORDS

66       DOM, SAX, C handler set
67
68
69
70Tcl                                                                    tdom(n)
Impressum