XML serialization and deserialization
First Claim
1. In a computing device, a method comprising:
- storing annotated source code that includes a class, the class including a class name, and a data field that defines an attribute that is to be applied to the class when an instance of the class is serialized to XML formatted data, the attribute specifying a different name that is to be used as the name of an XML element that is to be included in the XML formatted data to represent the class,compiling the annotated source code;
in response to compiling, storing the different name into an assembly, the different name to be accessed when an instance of the class is serialized;
in response to serializing the instance of the class, storing the different name instead of the class name as the name of the XML element representing the class in a serialized representation of the instance.
2 Assignments
0 Petitions
Accused Products
Abstract
An object instance is serialized to a serial format, such as an eXtensible Markup Language (XML) document, based on a mapping between an arbitrary annotated source code file and a schema. The arbitrary annotated source code contains at least one programming type that describes a shape of an object instance and the schema describes a format of a document having a serial format. The mapping defines a correspondence between the shape of the object instance and the format of the document having the serial format. Subsequently, an object instance is converted to the serial format by converting public properties, public fields and method parameters of the object instance to a document having the serial format based on the mapping. Once the mapping is defined, an XML document can also be converted to an object instance based on the mapping.
-
Citations
10 Claims
-
1. In a computing device, a method comprising:
-
storing annotated source code that includes a class, the class including a class name, and a data field that defines an attribute that is to be applied to the class when an instance of the class is serialized to XML formatted data, the attribute specifying a different name that is to be used as the name of an XML element that is to be included in the XML formatted data to represent the class, compiling the annotated source code; in response to compiling, storing the different name into an assembly, the different name to be accessed when an instance of the class is serialized; in response to serializing the instance of the class, storing the different name instead of the class name as the name of the XML element representing the class in a serialized representation of the instance. - View Dependent Claims (2)
-
-
3. In a computing device, a method comprising:
-
storing annotated source code that includes a class, a member of the class, and a data field that defines an attribute that is to be applied to the member of the class when an instance of the class is serialized to XML formatted data; compiling the annotated source code; and storing the attribute into an assembly such that it is accessed when an instance of the class is serialized; upon serializing the instance of the class, accessing the attribute to determine how the member of the class is to be represented in the XML formatted data generated by the serialization. - View Dependent Claims (4, 5, 6, 7, 8, 9, 10)
-
Specification