Keep track of the prefixes used while serialising @ignore
protected function addPrefix($qname) { list($prefix) = explode(':', $qname); $this->prefixes[$prefix] = true; }