# Summary of ECMAScript Language Extensions

This topic lists the operators, functions, and keywords you can use within ECMAScript files in WebLogic Workshop projects.

## Operators and Keywords

Operator | Description
--- | ---
@ | Provides access to any one of the attributes belonging to the element on the left side of the operator. See Accessing Attributes With the @ Operator.
@* | Provides access to all attributes belonging to the element on the left side of the operator. See Accessing Attributes With the @ Operator.
[] | Provides access to an element child using an index corresponding to its position in document order. See Accessing Element Children Through Their Index.
:: | Used with a namespace variable, :: can be used to access elements within a specified namespace. See Filtering By Namespace.
{} | Provides a way to specify an ECMAScript expression with which to substitute for values in XML. See Resolving XML Dynamically with Embedded Expressions.
. | Provides access to any one of immediate child elements contained by the element on left side of the operator. See Accessing Element Children With the . Operator.
.* | Provides access to all immediate child elements contained by the element on left side of the operator. See Accessing Element Children With the . Operator.
.. | Provides access to any child element contained by the element on the left of the operator. See Accessing Element Descendants With the .. Operator.
< | Specifies that what follows should be interpreted as XML when assigned to an XML variable. See Creating and Using XML Variables.
.() | Filters a list of element children using a specified value. See Filtering Multiple Children With Predicates.
+ | Combines XML to create a new XMLList or to add new values to existing XML. See Combining XML With the + Operator.
+= | Inserts an XML element after another element. See Inserting Elements With the += Operator.
<> and </> | Enclose XML that has no root, making it possible to assign the enclosed XML to a variable even though it is not well-formed. See Creating and Using XML Variables.
delete | Removes elements and attributes from XML. See Removing Elements and Attributes With the delete Operator.
import | Imports Java classes for used in ECMAScript. See Importing Java Classes to ECMAScript with the import Statement.
namespace | DEPRECATED: Use the Namespace type instead. See Filtering By Namespace.
thisXML | Specifies the current XML, such as XML returned from a nested expression. See Specifying the Current XML with the thisXML Keyword.

## Member Functions

Note: For more complete descriptions and examples, see Functions for Manipulating XML.

Function | Description | Applies To
--- | --- | ---
xml.appendChild(newChild) | Inserts a new child node after the existing children of the XML value. | XML, XMLList
xml.attribute(attributeName) | Returns the value of the specified attribute as an XMLAttribute. | XML, XMLList
xml.attributes() | Returns a list of attributes for the specified element as an XMLAttribute array. | XML, XMLList
xml.child(childIndex) | Returns the XML at the 0-based ordinal position specified by childIndex. | XML, XMLList
xml.childIndex() | Returns the 0-based ordinal position of the XML value within its parent. | XML, XMLList
xml.children() | Returns a list of the element's children. | XML, XMLList
xml.comments([booleanToLookDeep]) | Returns a list of comments from xml's point in the document. | XML, XMLList
xml.copy() | Returns a copy of the specified element. | XML, XMLList
xml.cursor() | Returns an XmlCursor instance for the current element. | XML, XMLList
xml.document() | Returns xml as a document. | XML, XMLList
xml.getName() | Return the local name for xml. | XML, XMLAttribute
xml.getValue() | Returns the value (content) of xml. | XML, XMLList, XMLAttribute
xml.innerXML(newContent) | Replaces the entire contents of the XML value with new content. | XML, XMLList
xml.isComment() | Returns true if xml is an XML comment. | XML, XMLList
xml.isDocument() | Returns true if xml represents the XML document; otherwise, false. | XML, XMLList
xml.isProcessingInstruction() | Returns true if xml is an XML processing instruction. | XML, XMLList
xml.length | Returns the length of a list XML elements. | XML, XMLList
xml.namespaceURI() | Returns a string representing the namespace URI associated with xml. | XML, XMLList, XMLAttribute, Namespace
xml.namespaces() | Returns an array of Namespace objects that represents any xmlns attribute (with or without a prefix) declared in the entire XML document. | XML, XMLList
xml.parent() | Returns the parent of the element. | XML, XMLList, XMLAttribute
xml.prependChild(newChild) | Inserts a new child node before the existing children of the XML value. | XML, XMLList
xml.processingInstructions([booleanToLookDeep]) | Returns a list of all the XML processing instructions (PIs) from this element's point in the document. | XML, XMLList
xml.setValue(newValue) | Sets the value (content) of xml to newValue. | XML, XMLList
xml.tagName() | Returns the name of the element tag. | XML, XMLList
xml.text() | Returns a string containing the value of all XML properties of xml that are of type string. | XML, XMLList
xml.thisXML | Specifies the current XML, such as XML returned from an expression. | XML, XMLList
xml.toString() | Returns the element and its content as a string. | XML, XMLList, XMLAttribute, Namespace
xml.toXMLString() | Returns an XML encoded string representation of xml. | XML, XMLList
xml.xpath(xPathExpression) | Evaluates the XPath expression using the XML value as the context node. | XML, XMLList

Related Topics

Handling XML with ECMAScript Extensions