Add the PureXML.XPointer namespace resolving the shorthand bare-name form (id), the element() scheme (child-element positions from an id or the document root), and the xpointer() scheme (a full XPath expression). Scheme parts chain with the XPointer fallback rule: the first non-empty selection wins. element() data is translated to the equivalent XPath and evaluated by PureXML.XPath, so no separate evaluator is needed. Closes #46 Closes #47 Closes #23
34 lines
767 B
Swift
34 lines
767 B
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 {}
|
|
}
|