[an error occurred while processing this directive]
[an error occurred while processing this directive]

Validation

Validation is the process by which we check whether the encoding of a file matches the rules established in the schema that governs the file: whether all of the elements used are defined in the schema, whether they appear in legal places, and whether all required elements are present. There are several different validation tools available; the one we use by default is called xmllint.

It's much easier to fix one or two validation errors than to fix a large number, so we recommend that you validate early and often—validate every time you save. (And save often!) To validate your file, type Control-c Control-v and then type Return at the next two prompts. The first prompt asks you to choose the validation tool, with xmllint as the default; the second asks you to confirm the file being validated, with the current file as the default.

A few general pointers:

The lists below give common error messages and suggests how to fix the errors involved. Examples use the element <foo type="bar">.

Parser errors

Parser errors indicate that your file is ill-formed: it does not conform to the basic XML rules of nesting and delimitation. Errors in this class mean that the XML parser (the tool that reads the XML document and maps out its tree structure) could not parse the file because of ill-formedness errors. Examples of this kind of error are things like missing start- or end-tags, missing markup characters (like unmatched quotation marks around attribute values, or missing angle brackets), or overlapping elements.

Validity errors

Validity errors indicate that your file does not conform to the WWP DTD: either because you've used an element that doesn't exist, or you've put an element in the wrong place, or you've omitted some required element.

[an error occurred while processing this directive]