Class ContentModel
public class ContentModel
{
// Methods
public void save(Name ns, XMLOutputStream o) throws IOException;
public String toString();
}
This class represents the content model definition for a given XML element. 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.
public void save(Name ns, XMLOutputStream o) throws IOException;
Saves the content model out to the specified stream.
Return Value:
No return value.
Parameter | Description |
ns
| The current name space context.
|
o
| The output stream to write to.
|
Exceptions:
IOException
if there was a problem writing to the output stream.
public String toString();
Retrieves a string representation of the content type.
Return Value:
Returns a String.