GetClassType
Returns a type of the ApiCustomXmlPart class.
Syntax
expression.GetClassType();
expression
- A variable that represents a ApiCustomXmlPart class.
Parameters
This method doesn't have any parameters.
Returns
"customXmlPart"
Example
This example shows how to update the value of an attribute in a custom XML node.
- Code
- Result
let doc = Api.GetDocument();
let xmlManager = doc.GetCustomXmlParts();
let xml = xmlManager.Add("<content xmlns='http://example' version='1.0'></content>");
let classType = xml.GetClassType();
let paragraph = Api.CreateParagraph();
paragraph.AddText("Class type: " + classType);
doc.Push(paragraph);