Posted: Mon Jun 23, 2008 12:37 am Post subject: Message broker issue
Newbie
Joined: 22 Jun 2008 Posts: 1
I am trying to insert a Dom Object inside a MB element and i have written this method below.I am passing the DOM object and reference of MBElement as a parameter to this method.I am iterating the DOM object and trying to create the same structure but unfortunately all the tags are are coming in root node of the reference. Moreover some empty tags are showing up as well. <></>.The intent of the for loop at the end of this method is to recusively call this method till all the tags are read and similar MBelement structre has to be created.
Can someone suggest me where iam going wrong?.
private void addDOMtoMbElement(Node n, MbElement mbApplMsg) throws MbException {
break;
case Node.ENTITY_NODE:
break;
case Node.ENTITY_REFERENCE_NODE:
break;
case Node.NOTATION_NODE:
break;
case Node.PROCESSING_INSTRUCTION_NODE:
break;
case Node.TEXT_NODE:
break;
default:
break;
}
MbElement mbApplMsgChild =mbApplMsg.createElementAsLastChild(com.ibm.broker.plugin.MbXML.ELEMENT);
// Print children if any
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum