Eliminating superfluous namespace declarations and undeclaring default namespaces in XML serialization processing
First Claim
1. A method of performing serialization of at least a portion of an object model comprising at least one namespace, comprising:
- preprocessing a query to identify any implicit no default namespaces, wherein the object model is associated with the query;
searching for an ancestor namespace based on a current namespace, the ancestor namespace being associated with an ancestor prefix and an ancestor uniform resource identifier (URI), the current namespace being associated with a current prefix and current URI, such that the ancestor prefix matches the current prefix; and
when the current namespace is an implicit no default namespace and the ancestor namespace is an explicit default namespace based on, at least in part, the ancestor prefix, generating a serialized namespace declaration for the current namespace.
1 Assignment
0 Petitions
Accused Products
Abstract
In one embodiment, at least a portion of an object model having at least one namespace is serialized. An ancestor namespace is searched for based on a current namespace declaration. The ancestor namespace is associated with an ancestor prefix and an ancestor uniform resource indicator (URI). The current namespace is associated with a current prefix and current URI. The search is performed to find an ancestor prefix matches the current prefix. When the current namespace is an implicit no default namespace and the ancestor namespace is an explicit default namespace based on, at least in part, the ancestor prefix, a serialized namespace declaration is generated for the current namespace.
49 Citations
27 Claims
-
1. A method of performing serialization of at least a portion of an object model comprising at least one namespace, comprising:
- preprocessing a query to identify any implicit no default namespaces, wherein the object model is associated with the query;
searching for an ancestor namespace based on a current namespace, the ancestor namespace being associated with an ancestor prefix and an ancestor uniform resource identifier (URI), the current namespace being associated with a current prefix and current URI, such that the ancestor prefix matches the current prefix; and
when the current namespace is an implicit no default namespace and the ancestor namespace is an explicit default namespace based on, at least in part, the ancestor prefix, generating a serialized namespace declaration for the current namespace. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
- preprocessing a query to identify any implicit no default namespaces, wherein the object model is associated with the query;
-
10. A computer readable medium embodying one or more instructions executable by a computer for performing a method of serializing at least a portion of an object model comprising at least one namespace, the method comprising:
- preprocessing a query to identify any implicit no default namespaces, wherein the object model is associated with the query;
searching for an ancestor namespace based on a current namespace, the ancestor namespace being associated with an ancestor prefix and an ancestor uniform resource identifier (URI), the current namespace being associated with a current prefix and current URI, such that the ancestor prefix matches the current prefix; and
when the current namespace is an implicit no default namespace and the ancestor namespace is an explicit default namespace based on, at least in part, the ancestor prefix, generating a serialized namespace declaration for the current namespace. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18)
- preprocessing a query to identify any implicit no default namespaces, wherein the object model is associated with the query;
-
19. An apparatus for performing serialization of at least a portion of an object model comprising at least one namespace, comprising:
- a processor; and
a memory storing one or more instructions that cause the processor to;
preprocess a query to identify any implicit no default namespaces, wherein the object model is associated with the query;
search for an ancestor namespace based on a current namespace, the ancestor namespace being associated with an ancestor prefix and an ancestor uniform resource identifier (URI), the current namespace declaration being associated with a current prefix and current URI, such that the ancestor prefix matches the current prefix; and
when the current namespace is an implicit no default namespace and the ancestor namespace is an explicit default namespace based on, at least in part, the ancestor prefix, generate a serialized namespace declaration for the current namespace. - View Dependent Claims (20, 21, 22, 23, 24, 25, 26, 27)
- a processor; and
Specification