[−][src]Crate xdoc
xdoc
presents the primitives on an XML DOM.
For example Element
and Attribute
are concepts in this library.
It is written in support of the exile
crate, but kept separate from that crate due to dev-time
compilation dependencies.
Specifically, the xtest
crate uses xdoc
to generate tests for exile
.
The public concepts in xdoc
are re-exported by exile
.
Re-exports
pub use crate::error::Result; |
Modules
error | The public error type for this library. Macros are for internal use. |
Structs
Declaration | The XML declaration at the start of the XML Document. |
Document | Represents an XML Document. |
Element | Represents an Element in an XML Document. |
OrdMap | OrdMap implements some conveniences like Clone an PartialEq for maps so that we can compare XML Documents (and do other things). |
PI | Represents a Processing Instruction (PI) in an XML document. |
WriteOpts | Options for controlling how the XML Document is written when serialized. |
Enums
Encoding | The encoding of the XML Document, currently only UTF-8 is supported. |
Misc | Represents a "Misc" entry, which is a Processing Instruction (PI), Comment, or Whitespace |
Newline | The type of newline character to use when writing the XML Document |
Node | Represents a Node in an XML Document. The Document consists of a recursive nesting of these. |
Version | Represents the XML Version being used. |
Functions
contains_whitespace | contains |
is_whitespace | is the char one of |