1
<?xml version="1.0" encoding="latin1" ?>
2
<!DOCTYPE erlref SYSTEM "erlref.dtd">
9
<holder>Ericsson AB, All Rights Reserved</holder>
12
The contents of this file are subject to the Erlang Public License,
13
Version 1.1, (the "License"); you may not use this file except in
14
compliance with the License. You should have received a copy of the
15
Erlang Public License along with this software. If not, it can be
16
retrieved online at http://www.erlang.org/.
18
Software distributed under the License is distributed on an "AS IS"
19
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
20
the License for the specific language governing rights and limitations
23
The Initial Developer of the Original Code is Ericsson AB.
26
<title>docgen_xml_check</title>
32
<module>docgen_xml_check</module>
33
<modulesummary>Validate XML documentation source code</modulesummary>
35
<p><c>docgen_xml_check</c> contains functions for validating XML
36
documentation source code.</p>
41
<name>validate(File) -> ok | error | {error, badfile}</name>
42
<fsummary>Validate XML source code.</fsummary>
44
<v>File = string()</v>
47
<p>Validates the XML documentation source code in <c>File</c>.
48
The <c>.xml</c> extension can be omitted.</p>
50
<p>Returns <c>ok</c> if successful, otherwise error information
51
is printed and the function returns <c>error</c>.
52
If <c>File</c> does not exist, <c>{error, badfile}</c> is