Auf XML-Attribute mit Namespaces zugreifen

Wie kann man mit Namespaces auf Attribute zugreifen? Meine XML-Daten sind in einer Form

val d = <z:Attachment rdf:about="#item_1"></z:Attachment>

, aber das Folgende stimmt nicht mit dem Attribut @ übere

(d \\ "Attachment" \ "@about").toString

Wenn ich die Namespace-Komponente aus dem Attributnamen entferne, funktioniert es.

val d = <z:Attachment about="#item_1"></z:Attachment>
(d \\ "Attachment" \ "@about").toString

Ich habe eine Idee, wie ich in Scala auf Attribute mit Namespaces zugreifen kann.

Antworten auf die Frage(4)

Ihre Antwort auf die Frage