View source code Display the source code in std/xml.d from which this page was generated on github. Improve this page Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone. Page wiki View or edit the community-maintained wiki page associated with this page.

Class std.xml.Tag

Class representing an XML tag.

Inherits from

Constructors

Name Description
this Constructs an instance of Tag with a specified name and type

Fields

Name Type Description
attr string[string] Associative array of attributes
name string Tag name
type TagType Type of tag

Properties

Name Type Description
isEmpty [get] bool Returns true if the Tag is an empty tag
isEnd [get] bool Returns true if the Tag is an end tag
isStart [get] bool Returns true if the Tag is a start tag

Methods

Name Description
opCmp Compares two Tags
opEquals Compares two Tags for equality
toHash Returns the hash of a Tag
toString Returns the string representation of a Tag
factory Create instance of class specified by the fully qualified name classname. The class must either have no constructors or have a default constructor.
opCmp Compare with another Object obj.
opEquals Returns !=0 if this object does have the same contents as obj.
toHash Compute hash function for Object.
toString Convert Object to a human readable string.

Standards

XML 1.0

The class invariant guarantees

  • that type is a valid enum TagType value
  • that name consists of valid characters
  • that each attribute name consists of valid characters

Authors

Janice Caron

License

Boost License 1.0.

Comments