tailieunhanh - Lecture Introduction to XML: Additional Information for XML Schema

XML Schema is poised to play a central role in the future of XML processing, especially in Web services where it serves as one of the fundamental pillars that higher levels of abstraction are built upon. This unit describes how to use the XML Schema definition language in more detail. | Welcome to Additional Information for XML Schema Copyright IBM Corporation 2004 Course materials may not be reproduced in whole or in part without the prior written permission of IBM. Table 2. Simple Types Built In to XML Schema Simple Type Examples delimited by commas Notes string Confirm this is electric normalizedString Confirm this is electric see 3 token Confirm this is electric see 4 byte -1 126 see 2 unsignedByte 0 126 see 2 base64Binary GpM7 hexBinary 0Fb7 integer -126789 -1 0 1 126789 see 2 . Notes 1 To retain compatibility between XML Schema and XML DTDs the simple types ID IDREF IDREFS ENTITY ENTITIES NOTATION NMTOKEN NMTOKENS should only be used in attributes. 2 A value of this type can be represented by more than one lexical format . 100 and are both valid float formats representing one hundred . However rules have been established for this type that define a canonical lexical format see XML Schema Part 2. 3 Newline tab and carriage-return characters in a normalizedString type are converted to space characters before schema processing. 4 As normalizedString and adjacent space characters are collapsed to a single space character and leading and trailing spaces are removed. 5 The g prefix signals time periods in the Gregorian calender. otes 1 To retain compatibility between XML Schema and XML DTDs the simple types iD IDREF IDREFS entity entities notation NMTOKEN NMTOKENS should only be used in attributes. 2 A value of this type can be represented by more than one lexical format . 100 and are both valid float formats representing one hundred . However rules have been established for this type that define a canonical lexical format see XML Schema Part 2. 3 Newline tab and carriage-return characters in a normalizedString type are converted to space characters before schema processing. 4 As normalizedString and adjacent space characters are collapsed to a single space character and leading and trailing spaces are removed. 5 The

TỪ KHÓA LIÊN QUAN