tdom(3tcl)
okay so bestie, welcome to tdom(3tcl) β it's giving expat parser object extension, and it's here to build an in-memory DOM tree while parsing. No cap. π β¨
β¨ NAME β¨
tdom β it's an expat parser object extension to create an in-memory DOM tree from the input while parsing. That's the whole main character energy right there. ππ¦
π SYNOPSIS π
package require tdom
set parser [expat]
tdom $parser enable
πΈ DESCRIPTION πΈ
tdom 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 dom code for building the DOM tree. Periodt. π
Here's the subcommand lineup, bestie:
tdom parserObj enableβ 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. π₯tdom parserObj getdocβ Returns the DOM tree asdomDoc(see there) object. πtdom parserObj setStoreLineColumn ?boolean?β See the methodsetStoreLineColumnof thedomcommand. πtdom parserObj removeβ Removes the tdom C handler set from the parser object. π§Ήtdom parserObj keepEmptiesβ See the option-keepEmptiesof thedomcommand. πΈtdom parserObj setExternalEntityResolver scriptβ the original page doesn't describe this one, so I'm not gonna make anything up. It's just listed, exactly like this. ππ«Ά
π¦ SEE ALSO π¦
dom, expat
π KEYWORDS π
DOM, SAX, C handler set
And that's the footer tea: source is Tcl, manual is tdom(3tcl) β no date on this one, so I'm not inventing one. Byeeee, go parse something cute. πβ¨π
π¦ where this page comes from
- debian bookworm: tdom 0.9.3-1 Β· MPL-2.0
- debian trixie: tdom 0.9.5.1-3 Β· MPL-2.0
- ubuntu jammy: tdom 0.9.2-1 Β· MPL-2.0
- ubuntu noble: tdom 0.9.3-1build1 Β· MPL-2.0
- ubuntu questing: tdom 0.9.5.1-3
- ubuntu resolute: tdom 0.9.6-2 Β· MPL-2.0
- ubuntu stonking: tdom 0.9.6-3 Β· MPL-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms