$ xmllint - -:2: namespace error : Namespace prefix contact on type is not defined <contact:type>Firma</contact:type> ^ -:3: namespace error : Namespace prefix contact on name is not defined <contact:name>Supidipi GmbH</contact:name> ^ ...
Ansonsten hätte ich gesagt: nimm XML::LibXML, aber wenn hier tatsächlich Namespaces vorkommen, dann wird es damit etwas haariger.