Class XmlParser.Node

    • Method Detail

      • getTag

        public String getTag()
        Deprecated.
      • getPath

        public String getPath()
        Deprecated.
      • getAttributes

        public XmlParser.Attribute[] getAttributes()
        Deprecated.
        Get an array of element attributes.
        Returns:
        the attributes
      • getAttribute

        public String getAttribute​(String name)
        Deprecated.
        Get an element attribute.
        Parameters:
        name - the name of the attribute
        Returns:
        attribute or null.
      • getAttribute

        public String getAttribute​(String name,
                                   String dft)
        Deprecated.
        Get an element attribute.
        Parameters:
        name - the name of the element
        dft - the default value
        Returns:
        attribute or null.
      • get

        public Object get​(int i)
        Deprecated.
        Get the ith child node or content.
        Specified by:
        get in interface List<Object>
        Specified by:
        get in class AbstractList<Object>
        Returns:
        Node or String.
      • get

        public XmlParser.Node get​(String tag)
        Deprecated.
        Get the first child node with the tag.
        Parameters:
        tag - the name of the tag
        Returns:
        Node or null.
      • getString

        public String getString​(String tag,
                                boolean tags,
                                boolean trim)
        Deprecated.
        Get a tag as a string.
        Parameters:
        tag - The tag to get
        tags - IF true, tags are included in the value.
        trim - If true, trim the value.
        Returns:
        results of get(tag).toString(tags).
      • toString

        public String toString​(boolean tag)
        Deprecated.
        Convert to a string.
        Parameters:
        tag - If false, only _content is shown.
        Returns:
        the string value
      • toString

        public String toString​(boolean tag,
                               boolean trim)
        Deprecated.
        Convert to a string.
        Parameters:
        tag - If false, only _content is shown.
        trim - true to trim the content
        Returns:
        the trimmed content
      • iterator

        public Iterator<XmlParser.Node> iterator​(String tag)
        Deprecated.
        Iterator over named child nodes.
        Parameters:
        tag - The tag of the nodes.
        Returns:
        Iterator over all child nodes with the specified tag.