1. A method of performing serialization of at least a portion of an object model comprising at least one namespace, comprising: 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.