DictionaryXMLTransformsFreeThreaded.GenerateSampleXMLInstanceFromDictionary (Dictionary, String, Boolean) Method (PIA)

Use this method to generate an XML Data Reduced (XDR) schema. This method produces an XML instance based on the specified Dictionary object. You can then import this XML instance into a tool (such as the BizTalk Editor) that can construct a schema based on a given instance.

Definition

[Visual Basic .NET]

Imports Microsoft.CommerceServer.Interop
…
Public Function GenerateSampleXMLInstanceFromDictionary(Dictionary As IDictionary,
  ElementName As String,
  bIgnoreUnderScore As Boolean) As Object

[C#]

using Microsoft.CommerceServer.Interop;
using MSXMLLib;                               //For IXMLDOMNode 
…
public IXMLDOMNode GenerateSampleXMLInstanceFromDictionary(IDictionaryDictionary,
  stringElementName,
  boolbIgnoreUnderScore);

Parameters

[Visual Basic .NET]

  • Dictionary
    Interface to an IDictionary object that contains the data to convert into XML.
  • ElementName
    A String that contains the element name.
  • bIgnoreUnderScore
    A Boolean that that specifies whether to ignore dictionary keys with leading underscores in the dictionary. This value should generally be set to True.

[C#]

  • oForm
    A Dictionary interface to an IDictionary object that contains the data to convert into XML.
  • ElementName
    A string that contains the element name.
  • bIgnoreUnderScore
    A bool that specifies whether to ignore dictionary keys with leading underscores in the dictionary. This value should generally be set to true.

Return Values

[Visual Basic .NET] If this method completes successfully, it returns an object reference used to return the XML instance.

[C#] This method returns an IXMLDOMNode interface of the newly created XMLDOMNode object containing the XML instance.

Exceptions

This method may throw one of many mapped exceptions or an exception of type CommerceException.

Requirements

Namespace: Microsoft.CommerceServer.Interop

Platforms: Windows 2000, Windows Server 2003

Assembly: Microsoft.CommerceServer.Runtime.DictionaryXMLTransform.dll

See Also

DictionaryXMLTransformsFreeThreaded class

Copyright © 2005 Microsoft Corporation.
All rights reserved.