| Package | mx.rpc.xml |
| Interface | public interface IXMLEncoder |
| Property | Defined By | ||
|---|---|---|---|
| strictNillability : Boolean
When true, null values
are encoded according to XML Schema rules (requires nillable=true
to be set in the definition). | IXMLEncoder | ||
| xmlSpecialCharsFilter : Function
The function to be used to escape XML special characters before encoding
any simple content. | IXMLEncoder | ||
| Method | Defined By | ||
|---|---|---|---|
Encodes an ActionScript value as XML. | IXMLEncoder | ||
Resets the encoder to its initial state, including resetting any
Schema scope to the top level. | IXMLEncoder | ||
| strictNillability | property |
strictNillability:Boolean
When true, null values
are encoded according to XML Schema rules (requires nillable=true
to be set in the definition).
When false, null values are always encoded with the
xsi:nil="true" attribute.
The default value is false.
public function get strictNillability():Boolean public function set strictNillability(value:Boolean):void| xmlSpecialCharsFilter | property |
xmlSpecialCharsFilter:FunctionThe function to be used to escape XML special characters before encoding any simple content.
public function get xmlSpecialCharsFilter():Function public function set xmlSpecialCharsFilter(value:Function):void| encode | () | method |
public function encode(value:*, name:QName = null, type:QName = null, definition:XML = null):XMLListEncodes an ActionScript value as XML.
Parameters
value:* — The ActionScript value to encode as XML.
| |
name:QName (default = null) — The QName of an XML Schema element that
describes how to encode the value, or the name to be used for the
encoded XML node when a type parameter is also specified.
| |
type:QName (default = null) — The QName of an XML Schema simpleType or
complexType definition that describes how to encode the
value.
| |
definition:XML (default = null) — If neither a top-level element nor type exists in the
schema to describe how to encode this value, a custom element definition
can be provided.
|
XMLList — Returns an XML encoding of the given ActionScript value.
|
| reset | () | method |
public function reset():voidResets the encoder to its initial state, including resetting any Schema scope to the top level.