Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


[xml-dev] The meaning of the "string" datatype?

From: "Costello, Roger L." <costello@-----.--->
To: "xml-dev@-----.---.---" <-------@-----.---.--->
Date: 4/15/2009 11:39:00 AM
Hi Folks,

Consider this XML Schema declaration:

   <element name="Author" type="string" />

I want to reconfirm my understanding of what the declaration means:

In an instance document:

    <Author>__________</Author>
                ^
                |
                |
The content of <Author> can be characters from any language - English, Chinese, Arabic, Italian, Greek, German, Spanish, Russian, etc - plus punctuation symbols plus math symbols. If I did my arithmetic correctly [1], the total number of different characters is: 1,112,000.

Furthermore, the length of the content of <Author> is unconstrained: it would be perfectly valid to place a billion characters between the start tag and end tag.

Do you agree?

/Roger

[1] The allowable characters for the string datatype is any character in these hex ranges:

Char    ::=    #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF] 
_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@l...
subscribe: xml-dev-subscribe@l...
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent