@ende/xml/types
ende add jsr:@ende/xmlVersion 2026.10.15 on JSR.
Type definitions for the XML parser and serializer.
Exports
BaseParseOptions— Base options shared by parsing functions.isCData— Type guard to check if a node is a CDATA node.isComment— Type guard to check if a node is a comment.isElement— Type guard to check if a node is an element.isText— Type guard to check if a node is a text node.ParseOptions— Options for parse.ParseStreamOptions— Options for parseXmlStream.StringifyOptions— Options for stringify.XmlAttributeIterator— Reusable attribute accessor that avoids allocating attribute object arrays.XmlCDataNode— A CDATA section node in the XML tree.XmlCommentNode— A comment node in the XML tree.XmlContentCallback— Callback for text, CDATA, or comment content with position.XmlDeclaration— The XML declaration of a document, exposed as XmlDocument.declaration.XmlDeclarationCallback— Callback for XML declarations.XmlDoctypeCallback— Callback for DOCTYPE declarations.XmlDocument— A parsed XML document.XmlElement— An element node in the XML tree.XmlEventCallbacks— Callbacks for event-level output - enables zero-allocation event emission.XmlName— A qualified XML name with optional namespace prefix and resolved URI.XmlNode— Discriminated union of all node types in an XML tree.XmlPosition— Position information for error reporting.XmlProcessingInstructionCallback— Callback for processing instructions.XmlSyntaxError— Error thrown when XML parsing fails.XmlTextNode— A text node in the XML tree.