View source code
Display the source code in std/xml.d from which this page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone.

Function std.xml.check

Check an entire XML document for well-formedness

void check (
  string s
) pure @safe;

Parameters

NameDescription
s 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.

Authors

Janice Caron

License

Boost License 1.0.