View source code
Display the source code in std/xml.d from which this page was generated on
github.
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.
Page wiki
View or edit the community-maintained wiki page associated with this page.
Function std.xml.check
Check an entire XML document for well-formedness
Prototype
void check( string s );
Parameters
Name | Description |
---|---|
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