CS3 JS: XML
From CS3 JavaScript
XML
QuickLinks
addNamespace, appendChild, attribute, attributes, child, childIndex, children, comments, contains, copy, defaultSettings, descendants, elements, hasComplexContent, hasOwnProperty, hasSimpleContent, inScopeNamespaces, insertChildAfter, insertChildBefore, length, localName, name, namespace, namespaceDeclarations, nodeKind, normalize, parent, prependChild, processingInstructions, propertyIsEnumerable, removeNamespace, replace, setChildren, setLocalName, setName, setNamespace, setSettings, settings, text, toString, toXMLString, xpathProperties
| Property | Type | Access | Description |
|---|---|---|---|
| ignoreComments | bool | r/w | |
| ignoreProcessingInstructions | bool | r/w | |
| ignoreWhitespace | bool | r/w | |
| prettyIndent | number | r/w | |
| prettyPrinting | bool | r/w |
Methods
void addNamespace (namespace:Namespace)
| Parameter | Type | Description |
|---|---|---|
| namespace | Namespace |
XML appendChild (child:XML)
| Parameter | Type | Description |
|---|---|---|
| child | XML |
| Parameter | Type | Description |
|---|---|---|
| name | string |
| Parameter | Type | Description |
|---|---|---|
| name | string |
bool contains (xml:XML)
| Parameter | Type | Description |
|---|---|---|
| xml | XML |
Object defaultSettings ()
| Parameter | Type | Description |
|---|---|---|
| name | string |
| Parameter | Type | Description |
|---|---|---|
| name | string |
bool hasComplexContent (name:string)
| Parameter | Type | Description |
|---|---|---|
| name | string |
XML hasOwnProperty (name:string)
| Parameter | Type | Description |
|---|---|---|
| name | string |
Array inScopeNamespaces ()
void insertChildAfter (child1:XML, child2:XML)
| Parameter | Type | Description |
|---|---|---|
| child1 | XML | |
| child2 | XML |
void insertChildBefore (child1:XML, child2:XML)
| Parameter | Type | Description |
|---|---|---|
| child1 | XML | |
| child2 | XML |
QName name ()
Namespace namespace ()
Array namespaceDeclarations ()
XML prependChild (value:XML)
| Parameter | Type | Description |
|---|---|---|
| value | XML |
XML processingInstructions (name:string)
| Parameter | Type | Description |
|---|---|---|
| name | string |
bool propertyIsEnumerable (name:string)
| Parameter | Type | Description |
|---|---|---|
| name | string |
XML removeNamespace (namespace:Namespace)
| Parameter | Type | Description |
|---|---|---|
| namespace | Namespace |
XML replace (name:string, value:XML)
| Parameter | Type | Description |
|---|---|---|
| name | string | |
| value | XML |
XML setChildren (children:XML)
| Parameter | Type | Description |
|---|---|---|
| children | XML |
void setLocalName (name:string)
| Parameter | Type | Description |
|---|---|---|
| name | string |
void setName (name:QName)
| Parameter | Type | Description |
|---|---|---|
| name | QName |
void setNamespace (namespace:Namespace)
| Parameter | Type | Description |
|---|---|---|
| namespace | Namespace |
Object settings ()
| Parameter | Type | Description |
|---|---|---|
| expr | string |
Used in
XML.appendChild (child:XML)
XML.contains (xml:XML)
XML.insertChildAfter (child1:XML, child2:XML)
XML.insertChildAfter (child1:XML, child2:XML)
XML.insertChildBefore (child1:XML, child2:XML)
XML.insertChildBefore (child1:XML, child2:XML)
XML.prependChild (value:XML)
XML.replace (name:string, value:XML)
XML.setChildren (children:XML)
Return
XML Dictionary.toXML (prefix:string)
XML Reflection.toXML ()
XML XML.appendChild (child:XML)
XML XML.attribute (name:string)
XML XML.attributes ()
XML XML.child (name:string)
XML XML.children ()
XML XML.comments ()
XML XML.copy ()
XML XML.descendants (name:string)
XML XML.elements (name:string)
XML XML.hasOwnProperty (name:string)
XML XML.normalize ()
XML XML.parent ()
XML XML.prependChild (value:XML)
XML XML.processingInstructions (name:string)
XML XML.removeNamespace (namespace:Namespace)
XML XML.replace (name:string, value:XML)
XML XML.setChildren (children:XML)
XML XML.text ()
XML XML.xpath (expr:string)