In: |
temp/light/node.rb
|
Parent: | Object |
Represents a tagged XML element. Elements are characterized by having children, attributes, and names, and can themselves be children.
NAMESPLIT | = | /^(?:(#{XMLTokens::NCNAME_STR}):)?(#{XMLTokens::NCNAME_STR})/u |
PARENTS | = | [ :element, :document, :doctype ] |
Append a child to this element, optionally under a provided namespace. The namespace argument is ignored if the element argument is an Element object. Otherwise, the element argument is a string, the namespace (if provided) is the namespace the element is created in.