Class E4XXML

java.lang.Object
org.fife.rsta.ac.js.ecma.api.e4x.E4XXML
All Implemented Interfaces:
E4XXMLFunctions, JSObjectFunctions

public abstract class E4XXML extends Object implements E4XXMLFunctions
Object XML
Since:
Standard ECMA-357 2nd. Edition
  • Field Details

    • protype

      public E4XXML protype
      property prototype
      Since:
      Standard ECMA-357 2nd. Edition, Level 3 Document Object Model Core Definition.
      See Also:
    • constructor

      protected JSFunction constructor
      property constructor
      Since:
      Standard ECMA-357 2nd. Edition, Level 3 Document Object Model Core Definition.
      See Also:
    • ignoringComments

      public static JSBoolean 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

      public static JSBoolean 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

      public static JSBoolean 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

      public static JSBoolean 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

      public static JSNumber 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

      public E4XXML(JSObject xml)
      Object XML(xml)
      Parameters:
      xml - The XML definition
      Since:
      Standard ECMA-357 2nd. Edition, Level 3 Document Object Model Core Definition.
  • Method Details

    • settings

      public 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.

      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

      public 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.
      Since:
      Standard ECMA-357 2nd. Edition, Level 3 Document Object Model Core Definition.
      See Also:
    • defaultSettings

      public 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.
      Since:
      Standard ECMA-357 2nd. Edition, Level 3 Document Object Model Core Definition.
      See Also: