Hi Stefan,
sorry about the delay in response, the work network isn't G friendly,
your probably is correct:
http://stackoverflow.com/questions/3312390/xml-default-namespaces-for-unqualified-attribute-names
has a nice example with reasoning on it. Basically an unprefixed
attribute has no namespace (conceptually its only relevant for the
element anyway).
So to query it you need to have:
scala> val noNSAttr = "attr"l
noNSAttr: scales.xml.NoNamespaceQName = {}attr
scala> doc \* myElem *@ noNSAttr size
res13: Int = 1
to match. Or just inlined:
scala> doc \* myElem *@ "attr" size
res14: Int = 1
Cheers,
Chris
> --
> You received this message because you are subscribed to the Google Groups
> "scales-xml" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
scales-xml+...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>