Powered By

Free XML Skins for Blogger

Powered by Blogger

Wednesday, August 6, 2008

Elements and Attributes XSD Editor Developing Message Interfaces

You create complex data types using elements and attributes in the XSD editor:

Node Type

Use

Example Instance

Element

Create structured data types. Elements that have a type cannot contain subelements.


Value of f1
Value of f2

Attribute

Add attributes to elements. Attributes cannot usually have subnodes.

myAttr="AttributeValue">
Element Value

You can flag an attribute as optional or required in the Occurrence column. These values mean the same for elements with an occurrence of 0..1 or 1. The only difference between elements and attributes is that attributes cannot have subnodes and that the same attribute cannot be used more than once in an element.

Frequently Occurring Elements

XML schema does not recognize tables but permits instead the definition of elements that can occur frequently in a schema (maxOccurs=”unbounded”). Depending on the target language, proxy generation generates either a table type with a structure for the line type (ABAP example), or class for accessing using a list (Java example).

No comments:

Archives