neco-xml-ast
necosystems series structured access layer for XML values.
Features
- Owned
XmlDocumentwrappingXmlValuefor cross-crate trait use - Borrowed
XmlNode<'a>carrying an optional field key parsere-export that turns&strintoXmlDocumentStructuredDocumentimpl exposing mapping fields as top-level nodesStructuredNodeimpl providingkind,identifier,attribute,children, andvalue
Usage
use ;
let doc = parse.unwrap;
let node = doc.nodes.remove;
assert_eq!;
API
| Item | Description |
|---|---|
parse(input: &str) -> Result<XmlDocument, ParseError> |
Parses input via neco-xml and wraps the value |
XmlDocument |
Owned wrapper around XmlValue |
XmlNode<'a> |
Borrowed view with an optional field key |
XmlDocument::from_value / as_value |
Constructs from or reads the inner XmlValue |
XmlNode::from_value / as_value |
Constructs a root view or reads the inner XmlValue |
impl StructuredDocument for XmlDocument |
nodes() yields mapping fields, or the root value |
impl StructuredNode for XmlNode<'_> |
Implements kind, identifier, attribute, children, and value |
License
MIT