20072016Ericsson AB, All Rights Reserved
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
The Initial Developer of the Original Code is Ericsson AB.
docgen_xml_checkdocgen_xml_checkValidate XML documentation source code
docgen_xml_check contains functions for validating XML
documentation source code.
validate(File) -> ok | error | {error, badfile}Validate XML source code.File = string()
Validates the XML documentation source code in File.
The .xml extension can be omitted.
Returns ok if successful, otherwise error information
is printed and the function returns error.
If File does not exist, {error, badfile} is
returned.