std.xml

Undocumented in source.

Members

Classes

CData
class CData

Class representing a Character Data section

CDataException
class CDataException

Thrown during CData constructor

CheckException
class CheckException

Thrown during check()

Comment
class Comment

Class representing a comment

CommentException
class CommentException

Thrown during Comment constructor

DecodeException
class DecodeException

Thrown during decode()

Document
class Document

Class representing an XML document.

DocumentParser
class DocumentParser

Class for parsing an XML Document.

Element
class Element

Class representing an XML element.

ElementParser
class ElementParser

Class for parsing an XML element.

InvalidTypeException
class InvalidTypeException

Thrown if comparing with wrong type

Item
class Item

Abstract base class for XML items

PIException
class PIException

Thrown during ProcessingInstruction constructor

ProcessingInstruction
class ProcessingInstruction

Class representing a Processing Instruction section

Tag
class Tag

Class representing an XML tag.

TagException
class TagException

Thrown when parsing for Tags

Text
class Text

Class representing a text (aka Parsed Character Data) section

TextException
class TextException

Thrown during Text constructor

XIException
class XIException

Thrown during XMLInstruction constructor

XMLException
class XMLException

The base class for exceptions thrown by this module

XMLInstruction
class XMLInstruction

Class representing an XML Instruction section

Enums

DecodeMode
enum DecodeMode

Mode to use for decoding.

TagType
enum TagType

Tag types.

Functions

check
void check(string s)

Check an entire XML document for well-formedness

decode
string decode(string s, DecodeMode mode)

Decodes a string by unescaping all predefined XML entities.

encode
S encode(S s)

Encodes a string by replacing all characters which need to be escaped with appropriate predefined XML entities.

isBaseChar
bool isBaseChar(dchar c)

Returns true if the character is a base character according to the XML standard

isChar
bool isChar(dchar c)

Returns true if the character is a character according to the XML standard

isCombiningChar
bool isCombiningChar(dchar c)

Returns true if the character is a combining character according to the XML standard

isDigit
bool isDigit(dchar c)

Returns true if the character is a digit according to the XML standard

isExtender
bool isExtender(dchar c)

Returns true if the character is an extender according to the XML standard

isIdeographic
bool isIdeographic(dchar c)

Returns true if the character is an ideographic character according to the XML standard

isLetter
bool isLetter(dchar c)

Returns true if the character is a letter according to the XML standard

isSpace
bool isSpace(dchar c)

Returns true if the character is whitespace according to the XML standard

Meta

Suggestion Box / Bug Report