Specifying HTML in XML - commoncriteria/pp-template GitHub Wiki

23 January 2024

In order to use HTML in one of the XML documents, you must reference a namespace for HTML elements. There are two such namespaces used in NIAP XML documents.

If your top-level document element (e.g. <PP>, <Module>, or <Package>) contains the attribute:

    xmlns:h="http://www.w3.org/1999/xhtml"

then you are using the "h" namespace. To use HTML in the XML document, simply precede every HTML element with h:.

So for example, to insert a paragraph break, use <h:p/> or <h:p>...</h:p>.

If your top-level document element contains the attribute:

    xmlns:htm="http://www.w3.org/1999/xhtml"

then you are using the "htm" namespace. To use HTML in the XML document, simply precede every HTML element with htm:.

And yes, they are exactly the same except for the name of the namespace. So use the shorter one.

⚠️ **GitHub.com Fallback** ⚠️