Documentation Language: Swift

Property

xmlMemoryParser

In-memory XML parser.

let xmlMemoryParser: (UnsafePointer<CChar>?, Int32, UnsafePointer<CChar>?, UnsafePointer<CChar>?, Int32) -> xmlDocPtr?

Discussion

Wraps xmlReadMemory with a stable Int32 options type across all platforms. libxml2 2.12 changed the options parameter from int to unsigned int; numericCast bridges the two safely for the positive-only flag values that XML parser options use.

See Also

Parsing Documents

C
XMLDocument

A Swift wrapper around a libxml2 document.

V
htmlMemoryParser

In-memory HTML parser.