Поделиться через


ProfileXmlFormat Enumeration

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Specifies the format of an XML string representing a Profile instance.

Namespace:  Microsoft.CommerceServer.Runtime.Profiles
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Public Enumeration ProfileXmlFormat
'Usage
Dim instance As ProfileXmlFormat
public enum ProfileXmlFormat
public enum class ProfileXmlFormat
public enum ProfileXmlFormat

Members

Member name Description
ElementCentric Element centric format.
AttributeCentric Attribute centric format.

Remarks

The enumeration value specified in which format the XML data is returned. Allows the user to format the returned XML data.

Examples

The following is an attribute centric document. The elements contain attributes instead of nested elements.

<root>
  <Customer firstname="Jerry" lastname="Larson">
    <Order OrderID="Ord-12345">
      <OrderDetail Quantity="1301" UnitPrice="$3000" ProductName="Computer" />
    </Order>
  </Customer>
</root>

The following XML is using an element-centric document. The elements contain no attributes.

<root>
  <Customer>
    <firstname>Jerry</firstname>
    <lastname>Larson</lastname>
    <Order>
      <OrderID>Ord-12345</OrderID>
        <OrderDetail>
          <Quantity>1301</Quantity>
          <UnitPrice>$3000</UnitPrice>
          <ProductName>Computer</ProductName>
        </OrderDetail>
    </Order>
  </Customer>
</root>

See Also

Reference

Microsoft.CommerceServer.Runtime.Profiles Namespace