---
name: "docb_xml_check"
section: "3erl"
platform: "linux"
package: "erlang-manpages"
version: "1:14.a-dfsg-3squeeze1"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/docb_xml_check"
---

# docb\_xml\_check(3erl)

Validate XML documentation source code

## NAME

docb\_xml\_check - Validate XML documentation source code

## DESCRIPTION

*docb\_xml\_check* contains functions for validating XML documentation source code.

## EXPORTS

**validate(File) -\> ok \| error \| {error, badfile}** \

- Types

  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.
