Represents an abstract content model that could be a DTD, an XML Schema, or something else. It has both an internal and external subset.
Java binding:
package org.w3c.dom.abstractSchemas;
import org.w3c.dom.DOMException;
public interface ASModel extends ASNode {
public boolean getIsNamespaceAware();
public ASElementDeclaration getRootElementDecl();
public void setRootElementDecl(ASElementDeclaration rootElementDecl);
public String getSystemId();
public void setSystemId(String systemId);
public String getPublicId();
public void setPublicId(String publicId);
public ASNodeList getASNodes();
public boolean removeNode(ASNode node);
public boolean insertBefore(ASNode newNode, ASNode refNode);
public boolean validate();
public ASElementDeclaration createASElementDeclaration(String namespaceURI,
String qualifiedElementName) throws DOMException;
public ASAttributeDeclaration createASAttributeDeclaration(String namespaceURI,
String qualifiedName) throws DOMException;
public ASNotationDeclaration createASNotationDeclaration(String namespaceURI,
String qualifiedElementName, String systemIdentifier, String publicIdentifier)
throws DOMException;
public ASEntityDeclaration createASEntityDeclaration(String name)
throws DOMException;
public ASChildren createASChildren(int minOccurs, int maxOccurs,
short operator) throws DOMException;
}
IDL:
interface ASModel : ASNode {
readonly attribute boolean isNamespaceAware;
attribute ASElementDeclaration rootElementDecl;
attribute DOMString systemId;
attribute DOMString publicId;
ASNodeList getASNodes();
boolean removeNode(in ASNode node);
boolean insertBefore(in ASNode newNode in ASNode refNode);
boolean validate();
ASElementDeclaration createASElementDeclaration(inout DOMString namespaceURI,
in DOMString qualifiedElementName)
raises(DOMException);
ASAttributeDeclaration createASAttributeDeclaration(inout DOMString namespaceURI,
in DOMString qualifiedName)
raises(DOMException);
ASNotationDeclaration createASNotationDeclaration(inout DOMString namespaceURI,
in DOMString qualifiedElementName,
in DOMString systemIdentifier,
inout DOMString publicIdentifier)
raises(DOMException);
ASEntityDeclaration createASEntityDeclaration(in DOMString name)
raises(DOMException);
ASChildren createASChildren(in unsigned long minOccurs,
in unsigned long maxOccurs,
inout unsigned short operator)
raises(DOMException);
};