check

Check an entire XML document for well-formedness

@safe pure
void
check
(
string s
)

Parameters

s string

the document to be checked, passed as a string

Throws

CheckException if the document is not well formed

CheckException's toString() method will yield the complete hierarchy of parse failure (the XML equivalent of a stack trace), giving the line and column number of every failure at every level.

Meta