Chapter 3 Building XML Models
Attributes are used to give additional information about elements.
There are global and local attributes:
Global and local attributes in XDR files
In a model targeted with the XML-Data Reduced language, local attributes are first declared separately, like global attributes (with the <AttributeType> tag and a name attribute), then within their parent element (with the <attribute> tag and a type attribute).
Extract of an XDR file:
You can derive an attribute data type to extend or restrict its values. (Only with a model targeted with XSD)
For example:
Generated schema:
In a schema, attributes are declared with <attribute> tags.
Copyright (C) 2007. Sybase Inc. All rights reserved. |
![]() |