public class OMAttributeTest extends TestCase {
public void testAttribNamespace() {
//create a documentType
AdviceReqDocument doc = AdviceReqDocument.Factory.newInstance();
ConfirmationAdviceReq req = ConfirmationAdviceReq.Factory.newInstance();
MsgID msgID = req.addNewAdviceReqMsgID();
msgID.setUniqueNumber(11);
req.addNewClientID();
doc.setAdviceReq(req);
//get the pull parser and construct the OMElement
StAXOMBuilder builder = new StAXOMBuilder(
OMAbstractFactory.getOMFactory(),
new StreamWrapper(doc.newXMLStreamReader())
);
OMElement elt = builder.getDocumentElement();
//traverse the element and look at the namespace of the attribute
OMAttribute att =