Packages
 In this topic

*Methods

 

Packages   PreviousThis PackageNext
Package com.ms.xml.parser   Previous This
Package
Next

 


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.

Methods

save

public void save(Name ns, XMLOutputStream o) throws IOException;

Saves the content model out to the specified stream.

Return Value:

No return value.

ParameterDescription
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.

toString

public String toString();

Retrieves a string representation of the content type.

Return Value:

Returns a String.

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.