Share via


DictionaryXMLTransforms.GenerateXMLForDictionaryUsingSchema Method (PIA)

Use this method to extract an XML instance from the specified Dictionary object that conforms to the specified schema.

Definition

[Visual Basic .NET]

Imports Microsoft.CommerceServer.Interop
…
Public Function GenerateXMLForDictionaryUsingSchema(Dictionary As IDictionary,
  xmlSchema As IXMLDOMObject) As Object

[C#]

using Microsoft.CommerceServer.Interop;
using MSXMLLib;                        //For IXMLDOMNode & IXMLDOMDocument
…
public IXMLDOMNode GenerateXMLForDictionaryUsingSchema(IDictionaryDictionary,
  IXMLDOMDocumentxmlSchema);

Parameters

[Visual Basic .NET]

  • Dictionary
    Interface to a Dictionary object that contains the data to be converted.
  • xmlSchema
    An XMLDOMDocument object that contains the XML schema.

[C#]

  • Dictionary
    An IDictionary interface to a Dictionary object that contains the information to be converted.
  • xmlSchema
    An IXMLDOMDocument interface to an XMLDOMDocument object that contains the XML schema.

Return Values

[Visual Basic .NET] If this method completes successfully, it returns an XMLDOMDocument object that contains the XML schema.

[C#] This method returns an IXMLDOMNode interface to an XMLDOMNode object that contains the XML instance.

Exceptions

This method may throw one of many mapped exceptions or an exception of type COMException. See Standard COM Errors for additional details.

[Visual Basic .NET]

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)

Requirements

Namespace: Microsoft.CommerceServer.Interop

Platforms: Windows 2000, Windows Server 2003

Assembly: cs_dictxmlxfrms (in cs_dictxmlxfrms.dll)

See Also

DictionaryXMLTransforms Class

Copyright © 2005 Microsoft Corporation.
All rights reserved.