Eran Chinthaka wrote:
Hmm,
I like to name this method as getTextAsQName().
Actually I was initialy confused what you need to do, but after the code
snippet from Steve I understood the real requirement.
I can't understand why you are passing a String to the resolveQName
method if this methid is *in* the OMElement. I think the requirement is
to get the text in an OMElement as a QName. So, IMHO,
OMElement.getTextAsQName() is much better.
But I also need to: resolve attributes or elements in a list. So
getTextAsQName() is a helper for the specific need to get the text as a
qname.