4


XML Schema

Overview

This chapter contains the XML schema that defines the information passed to and from the data access layer of Product Catalog.

In this chapter

Topic

See Page

Overview

149

XML standards

149

Product Catalog XML schema

150

 




XML schema

Overview

XML is used by Commerce Co, Inc. applications to pass information to and from the data access layer via Click’s Integration Agent. This structure provides the following benefits:

•    Eliminates the passing of object references between components.

•    Enhances reusability of application components and ASP code.

•    Provides consistent data structures that are independent of back-end data structures.

•    Provides an abstract layer between applications and the data access.

•    Provides a more open and scalable architecture.

XML standards

All Commerce Co, Inc. applications use XML and adhere to the CommerceOne XML standards, where possible. Additionally, Click Commerce applications use Microsoft schemas to define and enforce our XML structures. For more information regarding the Microsoft XML schema standards, refer to the XML Schema Reference in the Microsoft Library at the following URL:

<http://www.msdn.microsoft.com/library/>.

For information regarding XML, refer to the current industry specification, which is located on the World Wide Web Consortium web site:

<http://www.w3.org>.

For more information regarding industry support for the CommerceOne XML standard, refer to the CommerceOne Standards and Industry Consortia documents located on the CommerceOne web site:

<http://www.commerceone.com>.


Product Catalog XML schema

The following is XML schema for Commerce Co, Inc. Product Catalog:

-<Schema>

                -<ElementType name="Documents" Content="eltOnly">

                - <ElementType name="Document" Content="eltOnly">

        <ElementType name="DocumentNum" />

        <ElementType name="Description" />

-          <ElementType name="Property">

                <AttributeType name="id" type="string" />

                <AttributeType name="nam" type="string" />

                <AttributeType name="typ" type="string" />

                <AttributeType name="validation" type="string" />

        </ElementType>

        <AttributeType name="id" type="string" />

        <AttributeType name="nam" type="string" />

        <AttributeType name="restricted" type="string" />

        <AttributeType name="restricteduid" type="string" />

        <AttributeType name="active" type="string" />

        <AttributeType name="doctype" type="string" />

        <AttributeType name="doctypeid" type="string" />

                </ElementType>

  </ElementType>

-           <ElementType name="DocumentTypes" Content="eltOnly">

-       <ElementType name="DocumentType" Content="eltOnly">

-                <ElementType name="Property">

        <AttributeType name="id" type="string" />

        <AttributeType name="nam" type="string" />

        <AttributeType name="priority" type="string" />

        <AttributeType name="retrievelevel" type="string" />

        <AttributeType name="meta" type="string" />

        <AttributeType name="validation" type="string" />

</ElementType>

<AttributeType name="id" type="string" />

<AttributeType name="nam" type="string" />

  </ElementType>

       </ElementType>

                - <ElementType name="Groups" Content="eltOnly">

-      <ElementType name="Group" Content="eltOnly">

                <ElementType name="Description" />

                <ElementType name="RestrictedUID" />

                <ElementType name="AssociationID" />

                <ElementType name="Meta" />

                <AttributeType name="id" type="string" />

                <AttributeType name="nam" type="string" />

                <AttributeType name="grouptypeid" type="string" />

                <AttributeType name="parentid" type="string" />

  </ElementType>

       </ElementType>

                - <ElementType name="DocLinkTypes" Content="eltOnly">

-       <ElementType name="DocLinkType">

                <AttributeType name="id" type="string" />

                <AttributeType name="nam" type="string" />

   </ElementType>

         </ElementType>

                - <ElementType name="GroupFilters" Content="eltOnly">

-       <ElementType name="GroupFilter" Content="eltOnly">

   - <ElementType name="Property">

         <AttributeType name="id" type="string" />

         <AttributeType name="nam" type="string" />

         <AttributeType name="priority" type="string" />

</ElementType>

<AttributeType name="id" type="string" />

<AttributeType name="groupid" type="string" />

<AttributeType name="nam" type="string" />

  </ElementType>

         </ElementType>

                - <ElementType name="PropertyDefs" Content="eltOnly">

-       <ElementType name="PropertyDef">

                <AttributeType name="id" type="string" />

                <AttributeType name="nam" type="string" />

                <AttributeType name="typ" type="string" />

                <AttributeType name="title" type="string" />

                <AttributeType name="class" type="string" />

                <AttributeType name="datatype" type="string" />

                <AttributeType name="description" type="string" />

                <AttributeType name="multiple" type="string" />

                <AttributeType name="mandatory" type="string" />

                <AttributeType name="hidden" type="string" />

                <AttributeType name="readOnly" type="string" />

                <AttributeType name="displayControl" type="string" />

                <AttributeType name="displayHeight" type="string" />

                <AttributeType name="displayWidth" type="string" />

                <AttributeType name="minLength" type="string" />

                <AttributeType name="maxLength" type="string" />

                <AttributeType name="min" type="string" />

                <AttributeType name="max" type="string" />

                <AttributeType name="enumValues" type="string" />

                <AttributeType name="enumDisplay" type="string" />

                <AttributeType name="enumAllowNew" type="string" />

                <AttributeType name="default" type="string" />

  </ElementType>

         </ElementType>

-           <ElementType name="RestrictedProperties" Content="eltOnly">

   <AttributeType name="id" type="string" />

   <AttributeType name="nam" type="string" />

   <AttributeType name="propertyid" type="string" />

   <AttributeType name="value" type="string" />

        </ElementType>

-          <ElementType name="GroupTypes" Content="eltOnly">

-       <ElementType name="GroupType" Content="eltOnly">

-           <ElementType name="Property">

        <AttributeType name="id" type="string" />

        <AttributeType name="nam" type="string" />

        <AttributeType name="priority" type="string" />

        <AttributeType name="meta" type="string" />

</ElementType>

       <AttributeType name="id" type="string" />

        <AttributeType name="nam" type="string" />

</ElementType>

   </ElementType>

        </Schema>