get-id ( tag id -- elem ) (original) (raw)

get-id ( tag id -- elem )
Utilities for traversing XML

Prev: deep-tags-named ( tag name/string -- tags-seq )
Next: children>string ( tag -- string )

Vocabulary
xml.traversal

Inputs

tag an XML tag or document
id a string

Outputs

elem an XML element or f

Word description
Finds the XML tag with the specified id, ignoring the namespace.

Definition

IN: xml.traversal

: get-id ( tag id -- elem ) "id" deep-tag-with-attr ;