PureXML/Sources/PureXML.swift
Mihaela Mihaljevic cfba3ed7d2 feat(html): lenient HTML parser and serializer
Add the PureXML.HTML namespace: a lenient tokenizer for tag-soup input
(case-insensitive tags; quoted, unquoted, and boolean attributes; comments;
doctype; character references), a tree builder handling void elements,
optional end tags (li, p, table rows and cells), raw-text elements (script,
style), and unmatched end tags, and a serializer that writes void elements
unclosed and raw-text content unescaped.

Closes #36
Closes #37
Closes #38
Closes #39
Closes #20
2026-06-08 07:12:42 +02:00

55 lines
1.3 KiB
Swift

/// Root namespace for the PureXML package.
public enum PureXML {
/// XML document model types.
public enum Model {}
/// XML parsing types.
public enum Parsing {}
/// XML emitting types.
public enum Emitting {}
/// XML typed decoding types.
public enum Decoding {}
/// XML typed encoding types.
public enum Encoding {}
/// XML validation types.
public enum Validation {}
/// XML stream types.
public enum Stream {}
/// XPath query types.
public enum XPath {}
/// Streaming pattern types (the libxml2 `pattern.h` XPath subset).
public enum Pattern {}
/// XPointer fragment-identifier types (the `element()` and `xpointer()`
/// schemes over XPath).
public enum XPointer {}
/// OASIS XML Catalog types (resolving public/system identifiers to URIs).
public enum Catalog {}
/// XInclude processing, URI reference resolution, and `xml:base`.
public enum XInclude {}
/// Canonical XML (C14N) serialization types.
public enum Canonical {}
/// Regular-expression types (the XML Schema regex flavor).
public enum Regex {}
/// XML Schema (XSD) and RELAX NG validation types.
public enum Schema {}
/// XSLT 1.0 transformation types.
public enum XSLT {}
/// Lenient HTML parsing and serialization types.
public enum HTML {}
}