Edit online

In the following DocBook 4 document, the content of the <listitem> element does not match the rules of the DocBook 4 schema (docbookx.dtd).

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
    <title>Article Title</title>
      <title>Section1 Title</title>
          <link>a link here</link>

The Validate Document action will return the following error:

Unexpected element "link". The content of the parent element type must match 

This error message is a little more difficult to understand, so understanding of the syntax or processing rules for the DocBook XML DTD <listitem> element is recommended. However, the error message does offer a clue as to the source of the problem, indicating that The content of element type must match.

Fortunately, most standards-based DTDs, XML Schemas, and Relax NG schemas are supplied with reference documentation. This enables you to read about the element. In this case, you should learn about the child elements of <listitem> and their nesting rules. Once you have correctly inserted the required child element and nested it in accordance with the XML rules, the document will become valid.