public abstract class E4XXML extends java.lang.Object implements E4XXMLFunctions
hasOwnProperty| Modifier and Type | Field and Description |
|---|---|
protected JSFunction |
constructor
property constructor
|
static JSBoolean |
ignoreProcessingInstructions
property ignoreProcessingInstructions The initial value of the ignoreProcessingInstructions property is true.
|
static JSBoolean |
ignoreWhitespace
property ignoreWhitespace The initial value of the ignoreWhitespace property is true.
|
static JSBoolean |
ignoringComments
property ignoringComments The initial value of the ignoreComments property is true.
|
static JSNumber |
prettyIndent
property prettyIndent The initial value of the prettyIndent property is 2.
|
static JSBoolean |
prettyPrinting
property prettyPrinting The initial value of the prettyPrinting property is true.
|
E4XXML |
protype
property prototype
|
| Modifier and Type | Method and Description |
|---|---|
static JSObject |
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.
|
static void |
setSettings(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 JSObject |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddNamespace, 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, toXMLStringhasOwnProperty, isPrototypeOf, propertyIsEnumerable, toLocaleString, toString, valueOfpublic E4XXML protype
XMLprotected JSFunction constructor
XMLpublic static JSBoolean ignoringComments
XMLpublic static JSBoolean ignoreProcessingInstructions
XMLpublic static JSBoolean ignoreWhitespace
XMLpublic static JSBoolean prettyPrinting
XMLpublic static JSNumber prettyIndent
XMLpublic E4XXML(JSObject xml)
xml - The XML definitionpublic static JSObject settings()
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;
}
XMLpublic static void setSettings(JSObject settings)
XMLpublic static JSObject defaultSettings()
XML