DictionaryXMLTransforms.GenerateXMLForDictionaryUsingSchema
Use this method to extract an XML instance from the specified Dictionary object that conforms to the specified schema.
Definition
Function GenerateXMLForDictionaryUsingSchema(Dictionary As Object,xmlSchema As Object) As Object
Parameters
Dictionary
A Dictionary object that contains the data to be converted.
xmlSchema
An XMLDOMDocument object that contains the XML schema.
Return Values
If this method completes successfully, it returns an XMLDOMDocument object that contains the XML schema.
Error Values
This method sets the Number property of the global Err object to S_OK (&H00000000) to indicate success and to standard COM error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object. In particular, the Description property may contain a text description of the error.
Remarks
For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.
Example
' oDictionaryXMLTransforms is a Commerce.DictionaryXMLTransforms object
' dDict is a Dictionary object
' oXMLDOMDocument is a XMLDOMDocument object
' oXMLDOMNode is a XMLDOMNode object
oXMLDOMNode = _
oDictionaryXMLTransforms.GenerateXMLForDictionaryUsingSchema(dDict, _
oXMLDOMDocument)