comet.CXMLNode

class comet.CXMLNode

Methods

CXMLNode.getName()

Get the name of this node.

Returns:

The name of this node

Return type:

str

Available:

InDesign® comet_pdf® Illustrator®

CScript:

xmlnode::name

CXMLNode.getType()

Get the type of this node.

Returns:

The type of this node

Return type:

int

Available:

InDesign® comet_pdf® Illustrator®

CScript:

xmlnode::type

CXMLNode.getPath()

Get the path to this node.

Returns:

The path of this node

Return type:

int

Available:

InDesign® comet_pdf® Illustrator®

CScript:

xmlnode::path

CXMLNode.getContent()

Get the content of this node.

Returns:

The text content of this node

Return type:

int

Available:

InDesign® comet_pdf® Illustrator®

CScript:

xmlnode::content

CXMLNode.getChildren()

Get the child nodes of this node.

Returns:

The children of this node

Return type:

list[CXMLNode]

Available:

InDesign® comet_pdf® Illustrator®

CScript:
CXMLNode.isAttribute()

Get whether this node is defined as an attribute.

Returns:

Whether this node is an attribute

Return type:

bool

Available:

InDesign® comet_pdf® Illustrator®

CScript:

xmlnode::is_attribute

Special methods

CXMLNode.__repr__()

String representation.

Returns:

<CXMLNode> Name: Name | Content: Content

Path: Path

Example
<CXMLNode> Name: note | Content:
Path: note

Return type:

str