XSD datatype
xs:long
A signed 64-bit integer from −9,223,372,036,854,775,808 to 9,223,372,036,854,775,807.
xs:long is the bounded 64-bit member of the integer family. It catches values that an arbitrary-precision xs:integer would accept but a typical database BIGINT or language integer cannot store.
- Lexical space
- Optional sign and digits within the signed 64-bit range.
- Derives from
xs:integer- Category
- Numeric types
- Facets
- minInclusive, maxInclusive, minExclusive, maxExclusive, pattern, enumeration, whiteSpace, totalDigits, fractionDigits
The schema used
This is the exact schema the literals above are validated against. Paste it into the validator with one of them to see the result yourself.
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="v" type="xs:long"/>
</xs:schema>Related
- xs:integerA whole number of unlimited size. It derives from xs:decimal, not from a machine int — so it has no range at all.
- xs:intA signed 32-bit integer: −2,147,483,648 to 2,147,483,647. The bounded type most schemas should use and most do not.
- xs:decimalAn exact decimal number with arbitrary precision — and no exponent notation, which is the usual reason a value is rejected.
Get started
Bring order to the XML your team can't afford to ignore.
Create a free account and get a private workspace to search, validate, diff, and monitor your XML feeds, sitemaps, schemas, and vendor integrations.