The ContentModel class of the com.ms.xml.parser package represents the content model definition for a given XML element.
public class ContentModel { // Fields public static final byte EMPTY; public static final byte ANY; public static final byte ELEMENTS; // Methods public byte getType(); public void save(Atom ns, XMLOutputStream o) throws IOException; public Element toSchema(); public String toString(); }
The content model is defined in the element declaration in the Document Type Definition (DTD); for example, (a,(b|c)*,d). The content model is stored in an expression tree of Node objects for use by the XML parser during validation.