Grammar generation for simple datatypes
First Claim
Patent Images
1. A method comprising:
- receiving an extensible markup language schema definition (XSD) including a first element having a first simple datatype and a second element having a second simple datatype different from the first simple datatype;
generating a grammar based on the XSD, the grammar associated with encoding and decoding an extensible markup language (XML) document based on the XSD to and from efficient XML interchange (EXI) streams, the grammar being associated with the first simple datatype and with the second simple datatype based on the first simple datatype and the second simple datatype both being simple datatypes, the grammar being associated with the first simple datatype and with the second simple datatype using fewer resources than having separate grammars for each of the first simple datatype and the second simple datatype;
generating a normalization associated with the XSD, the normalization including the grammar;
receiving the XML document based on the XSD, the XML document including;
first characters associated with the first element and the first simple datatype; and
second characters associated with the second element and the second simple datatype; and
encoding the XML document as an EXI stream, including;
encoding the first characters according to the grammar of the normalization in which the grammar of the normalization is associated with all simple datatypes of the XSD;
adding a first event type identifier to a stack of the EXI stream such that the first event type identifier is associated with the encoded first characters; and
encoding the second characters according to the grammar.
1 Assignment
0 Petitions
Accused Products
Abstract
A method may include receiving an extensible markup language schema definition (XSD) including a first element having a first simple datatype and a second element having a second simple datatype different from the first simple datatype. A grammar may be generated based on the XSD. The grammar may be associated with encoding and decoding an extensible markup language (XML) document based on the XSD to and from efficient XML interchange (EXI) streams. The grammar may be associated with the first simple datatype and with the second simple datatype.
64 Citations
9 Claims
-
1. A method comprising:
-
receiving an extensible markup language schema definition (XSD) including a first element having a first simple datatype and a second element having a second simple datatype different from the first simple datatype; generating a grammar based on the XSD, the grammar associated with encoding and decoding an extensible markup language (XML) document based on the XSD to and from efficient XML interchange (EXI) streams, the grammar being associated with the first simple datatype and with the second simple datatype based on the first simple datatype and the second simple datatype both being simple datatypes, the grammar being associated with the first simple datatype and with the second simple datatype using fewer resources than having separate grammars for each of the first simple datatype and the second simple datatype; generating a normalization associated with the XSD, the normalization including the grammar; receiving the XML document based on the XSD, the XML document including; first characters associated with the first element and the first simple datatype; and second characters associated with the second element and the second simple datatype; and encoding the XML document as an EXI stream, including; encoding the first characters according to the grammar of the normalization in which the grammar of the normalization is associated with all simple datatypes of the XSD; adding a first event type identifier to a stack of the EXI stream such that the first event type identifier is associated with the encoded first characters; and encoding the second characters according to the grammar. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
Specification