Asn1XmlAnyElem Class Reference

Inheritance diagram for Asn1XmlAnyElem:
Asn1UTF8String Asn1CharString Asn1Type Asn1TypeIF

List of all members.

Classes

class  XsdAnySaxHandler

Public Member Functions

 Asn1XmlAnyElem (System.String data)
 Asn1XmlAnyElem ()
override void Encode (Asn1XmlEncoder buffer, string elemName, string nsPrefix)
virtual Asn1XerSaxHandler GetSaxHandler ()

Detailed Description

This is a container class for holding the components of an XSD any element wildcard (xsd:any) type. The string contained within this object must be a well-formed XML fragment.


Constructor & Destructor Documentation

Asn1XmlAnyElem (  ) 

The default constructor initializes the underlying UTF-8 string object.

Asn1XmlAnyElem ( System.String  data  ) 

This constructor sets the underlying XML string value. It must contain well-formed XML text unless encoding is to be done using an explicit element name.

Parameters:
value String containing well-formed XML text.

Member Function Documentation

override void Encode ( Asn1XmlEncoder  buffer,
string  elemName,
string  nsPrefix 
)

This method encodes the string in XML format. It does a basic well-formedness check on the content to make sure the string contains a valid XML fragment. It then copies the text to the output buffer or stream.

Parameters:
buffer XML encode buffer or stream object.
elemName Local name of the element (if any).
nsPrefix Namespace prefix (if any).
virtual Asn1XerSaxHandler GetSaxHandler (  )  [virtual]

This method returns the Asn1XerOpenType.SaxHandler class instance used for ASN.1 XER encoding.

Returns:
Asn1XerOpenType.SaxHandler object