XBinder C# Runtime Library
2.6
|
Context for encoding/decoding. More...
Public Member Functions | |
virtual void | clearSchemaLocationAttrs () |
Clear the schemaLocation and noNamespaceSchemaLocation attributes. The document codecs will invoked this prior to decoding a document. More... | |
virtual void | decodeSchemaLocationAttrs (XmlTextReader reader) |
Decode the schemaLocation and noNamespaceSchemaLocation attributes on the current start element event. More... | |
virtual void | encodeSchemaLocationAttrs (XBXmlEncoder encoder) |
Encode the schemaLocation and noNamespaceSchemaLocation attributes, if they have values. More... | |
Properties | |
virtual System.String | NoNamespaceSchemaLocation [get, set] |
virtual IList< string > | SchemaLocation [get] |
Context for encoding/decoding.
Each encoding/decoding thread uses its own instance of the XBContext class. XBContext provides for handling of xsi attributes schemaLocation and noNamespaceSchemaLocation.
schemaLocation: During decoding, all xsi:schemaLocation attributes found are added to this property. At the start of each document decoding, the list should be cleared (the generated code typically does this). During encoding, whatever values are in the list are simply encoded. XBinder does not use or validate this information.
noNamespaceSchemaLocation: During decoding, the last occurrence of this attribute will be in effect. During encoding, the current value is simply encoded. XBinder does not use or validate schema location information.
|
virtual |
Clear the schemaLocation and noNamespaceSchemaLocation attributes. The document codecs will invoked this prior to decoding a document.
|
virtual |
Decode the schemaLocation and noNamespaceSchemaLocation attributes on the current start element event.
|
virtual |
Encode the schemaLocation and noNamespaceSchemaLocation attributes, if they have values.
encoder |