Root Swift package mirroring PureYAML's structure, rules, and verification gates. Includes the XML node model (Node, Element, Attribute, QualifiedName), a working emitter (Serializer) with escaping and pretty/compact options, and structural validation. The parser surface is stable; parse() raises notImplemented until the scanner lands, pinned by a test. - dependency-free, namespaced under PureXML - portability and style gates carried over (style, namespacing, forbidden patterns, swiftformat, swiftlint, linux, wasm, windows CI) - 11 tests passing
638 B
638 B
PureXML Rules
Load these rules before changing code:
code-style.mdnamespacing.mdcross-platform.mdtesting.mdverification.mdcommits.md
Project-specific overrides:
- PureXML uses a root
Package.swift. - Sources live directly under
Sources. - Tests live in
Tests(test targetPureXMLTests). Package.swiftmust keepdependencies: [].- Public API must live under the
PureXMLnamespace tree. - The package must build on macOS, Linux, Windows, and WASI.
The broader rule files are retained for detailed guidance. When they include generic examples, apply the PureXML-specific overrides above.