StartDocument( documentVersion="1.0" ) Comment( text=" Simple legal case: prefix rebinding " ) StartElement( name="foo" namespaceUri="http://example.org/namespace" qualifiedName="a:foo" prefix="a" NamespaceDeclaration( prefix="a" namespaceUri="http://example.org/namespace" ) ) Characters( whitespace text=" " ) StartElement( name="foo" namespaceUri="http://example.org/other-namespace" qualifiedName="a:foo" prefix="a" NamespaceDeclaration( prefix="a" namespaceUri="http://example.org/other-namespace" ) ) EndElement( name="foo" namespaceUri="http://example.org/other-namespace" qualifiedName="a:foo" ) Characters( whitespace text=" " ) EndElement( name="foo" namespaceUri="http://example.org/namespace" qualifiedName="a:foo" ) EndDocument( )