ISerializerFactory::DeserializerForElement Method

HRESULT DeserializerForElement([in] BSTR elementName, [in] BSTR elementNamespace, [in] VARIANT_BOOL IsArray, [out, retval] ISoapDeSerializer ** s);

For a particular element (identified by its NamespaceURI/Localname pair) find a suitable de-serializer. This uses the element name to type mappings setup via calls to ElementMapping



BSTR, [in]: the element name
BSTR, [in]: the namespace of the element
VARIANT_BOOL, [in]: If set to VARIANT_FALSE, then this will find a deserializer suitable for a single instance of the element, otherwise it returns a deserializer suitable for handling an array..
ISoapDeSerializer **, [out, retval]: The matching serializer, if the serializer also implements ITypesInit, then the serializer factory will of already called ITypesInit::Initialize(...)


Return Values

A suitable de-serializer for that element, or E_NO_DESERIALIZER if there is no suitable match


Sample Code

///todo: write some sample code


See Also

The ISerializerFactory Interface | 




Copyright © Simon Fell, 2000-2004. All rights reserved.