XML Handling Types Types

The following types and the associated methods are used to read and write XML files in EKL.

Note: To view an example, import the XMLInEKLSample.3dxml file located in the <your install>\win_b64\startup\Knowledgeware\EKL Samples\Sample3 directory.

This page discusses:

XMLCDATA

A section of element content marked for the XML parser to parse as only character data, not markup.

Inheritance Path

ObjectType
 Feature
  XMLNode
   XMLCDATA

Attributes

NameTypeComment
TextString-

Example

new("XMLCDATA",currentRef.V_description,xmlCurrentNode)

XMLComment

XML comments.

Inheritance Path

ObjectType
 Feature
  XMLNode
   XMLComment

Attributes

NameTypeComment
TextStringComment text.

Example

new("XMLComment","InstanceOf",xmlCurrentNode)

XMLDocument

An XML document.

Inheritance Path

ObjectType
 Feature
  XMLDocument

Attributes

NameTypeComment
FilePathStringPath of the file saved on disk.
PLMDocumentFeatureA PLMDMTDocument.
RootXMLNodeThe root node.

Example

/* XML Document creation */
/* NULL owner means file-based XML Document */
xmlDoc = new("XMLDocument","ProductDescription",NULL)

Methods

The following method is associated with this type:

XMLElement

A markup.

Inheritance Path

ObjectType
 Feature
  XMLNode
   XMLElement

Example

xmlCurrentNode = new("XMLElement",currentRef.Name,refsToAnalyzeFatherNodes[1])

XMLNode

A single node in an XML document.

Inheritance Path

ObjectType
 Feature
  XMLNode

Methods

The following method is associated with this type:

XMLText

A Markup content.

Inheritance Path

ObjectType
 Feature
  XMLNode
   XMLText

Attributes

NameTypeComment
TextStringTo access the content, use the text attribute.

Example

new("XMLText","Owner: "+currentRef.V_user,xmlCurrentNode)