Skip to main content

Home > @jsplumbtoolkit/browser-ui > xml

xml class#

Signature:

export declare class xml 

Methods#

MethodModifiersDescription
createElement(name, attributes, text)staticCreates an XML element.
getChild(parent, name)staticGets the first instance of the child with the given tag name, null if none found.
getChildren(parent, name)staticGets children of the given node (only direct children), returning an array of nodes (an empty array if none found).
getNodeText(node)staticGets text from the given node.
setNodeText(node, text)staticSets a node's text value.
xmlToString(xmlNode)staticSerializes the given XML node to a string, throwing an Error if something goes bad.