Class E4XXML
java.lang.Object
org.fife.rsta.ac.js.ecma.api.e4x.E4XXML
- All Implemented Interfaces:
E4XXMLFunctions, JSObjectFunctions
Object XML
- Since:
- Standard ECMA-357 2nd. Edition
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JSFunctionproperty constructorstatic JSBooleanproperty ignoreProcessingInstructions The initial value of the ignoreProcessingInstructions property is true.static JSBooleanproperty ignoreWhitespace The initial value of the ignoreWhitespace property is true.static JSBooleanproperty ignoringComments The initial value of the ignoreComments property is true.static JSNumberproperty prettyIndent The initial value of the prettyIndent property is 2.static JSBooleanproperty prettyPrinting The initial value of the prettyPrinting property is true.property prototype -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JSObjectfunction defaultSettings() The defaultSettings method is a convenience method for managing the collection of global XML settings stored as properties of the XML constructor.static voidsetSettings(JSObject settings) function setSetting(settings) The setSettings method is a convenience method for managing the collection of global XML settings stored as properties of the XML constructor.static JSObjectsettings()function settings() The settings method is a convenience method for managing the collection of global XML settings stored as properties of the XML constructor.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface E4XXMLFunctions
addNamespace, appendChild, attribute, attributes, child, child, childIndex, children, comments, contains, contains, copy, descendants, elements, hasComplexContent, hasSimpleContent, inScopeNamespaces, insertChildAfter, insertChildBefore, length, localName, name, namespace, namespaceDeclarations, nodeKind, normalize, parent, prependChild, processingInstructions, removeNamespace, replace, replace, setChildren, setChildren, setLocalName, setName, setNamespace, text, toXMLStringMethods inherited from interface JSObjectFunctions
hasOwnProperty, isPrototypeOf, propertyIsEnumerable, toLocaleString, toString, valueOf
-
Field Details
-
protype
property prototype- Since:
- Standard ECMA-357 2nd. Edition, Level 3 Document Object Model Core Definition.
- See Also:
-
constructor
property constructor- Since:
- Standard ECMA-357 2nd. Edition, Level 3 Document Object Model Core Definition.
- See Also:
-
ignoringComments
property ignoringComments The initial value of the ignoreComments property is true. If ignoreComments is true, XML comments are ignored when constructing new XML objects.- Since:
- Standard ECMA-357 2nd. Edition, Level 3 Document Object Model Core Definition.
- See Also:
-
ignoreProcessingInstructions
property ignoreProcessingInstructions The initial value of the ignoreProcessingInstructions property is true. If ignoreProcessingInstructions is true, XML processing instructions are ignored when constructing new XML objects.- Since:
- Standard ECMA-357 2nd. Edition, Level 3 Document Object Model Core Definition.
- See Also:
-
ignoreWhitespace
property ignoreWhitespace The initial value of the ignoreWhitespace property is true. If ignoreWhitespace is true, insignificant whitespace characters are ignored when processing constructing new XML objects.- Since:
- Standard ECMA-357 2nd. Edition, Level 3 Document Object Model Core Definition.
- See Also:
-
prettyPrinting
property prettyPrinting The initial value of the prettyPrinting property is true. If prettyPrinting is true, the ToString and ToXMLString operators will normalize whitespace characters between certain tags to achieve a uniform and aesthetic appearance.- Since:
- Standard ECMA-357 2nd. Edition, Level 3 Document Object Model Core Definition.
- See Also:
-
prettyIndent
property prettyIndent The initial value of the prettyIndent property is 2. If the prettyPrinting property of the XML constructor is true, the ToString and ToXMLString operators will normalize whitespace characters between certain tags to achieve a uniform and aesthetic appearance. Certain child nodes will be indented relative to their parent node by the number of spaces specified by prettyIndent.- Since:
- Standard ECMA-357 2nd. Edition, Level 3 Document Object Model Core Definition.
- See Also:
-
-
Constructor Details
-
E4XXML
Object XML(xml)- Parameters:
xml- The XML definition- Since:
- Standard ECMA-357 2nd. Edition, Level 3 Document Object Model Core Definition.
-
-
Method Details
-
settings
function settings() The settings method is a convenience method for managing the collection of global XML settings stored as properties of the XML constructor.Example
// Create a general purpose function that may need to save and restore XML settings function getXMLCommentsFromString(xmlString) { // save previous XML settings and make sure comments are not ignored var settings = XML.settings(); XML.ignoreComments = false; var comments = XML(xmlString).comment(); // restore settings and return result XML.setSettings(settings); return comments; }- Returns:
- an object containing the properties of the XML constructor used for storing XML settings.
- Since:
- Standard ECMA-357 2nd. Edition, Level 3 Document Object Model Core Definition.
- See Also:
-
setSettings
function setSetting(settings) The setSettings method is a convenience method for managing the collection of global XML settings stored as properties of the XML constructor.- Since:
- Standard ECMA-357 2nd. Edition, Level 3 Document Object Model Core Definition.
- See Also:
-
defaultSettings
function defaultSettings() The defaultSettings method is a convenience method for managing the collection of global XML settings stored as properties of the XML constructor.- Since:
- Standard ECMA-357 2nd. Edition, Level 3 Document Object Model Core Definition.
- See Also:
-