Class XmlElement

java.lang.Object
com._1c.g5.v8.dt.internal.compare.xml.XmlElement

public class XmlElement extends Object
Element parsing tag xml document.
  • Field Details

    • type

      public final XmlElement.TagType type
      Tag types, null if the item is not tagged.
    • tag

      public final String tag
      String tag name, null if the item is not tagged.
    • attributes

      public final Map<String,String> attributes
      Attributes of the xml document element, null if no attributes.
    • content

      public final String content
      The text content of the xml document element, null if the item is not text.
  • Method Details

    • isStartTag

      public boolean isStartTag(String tag)
      Check for opening tag with given name.
      Parameters:
      tag - tag name to check, not null
      Returns:
      true if the current element contains an opening tag with an input name, false otherwise.
    • isEndTag

      public boolean isEndTag(String tag)
      Check for closing tag with given name.
      Parameters:
      tag - tag name to check, not null
      Returns:
      true if the current element contains an closing tag with an input name, false otherwise.