Entering content frame

Background documentation  Elements and Attributes Locate the document in its SAP Library structure

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.

<myElem>
  <f1>
Value of f1 </f1>
  <f2> Value of f2 </f2>
</myElem>

Attribute

Add attributes to elements. Attributes cannot usually have subnodes.

<myElem myAttr="AttributeValue">
  
Element Value
</myElem>

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).

 

 

 

 

Leaving content frame