View source code
Display the source code in std/xml.d from which this
page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a
Bugzilla issue.
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.
Class std.xml.Tag
Class representing an XML tag.
class Tag
;
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
|
Test whether this is equal to o .
The default implementation only compares by identity (using the is operator).
Generally, overrides for opEquals should attempt to compare objects by their contents.
|
toHash
|
Compute hash function for Object. |
toString
|
Convert Object to a human readable string. |
Standards
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
Copyright © 1999-2022 by the D Language Foundation | Page generated by ddox.