Posted: Fri Mar 25, 2005 10:04 am Post subject: convert xmlns to xml
Disciple
Joined: 10 Feb 2004 Posts: 160
Hi,
My incoming message is in xmlns. Can someone suggest how I can convert this to xml messgage.
Nyzam. _________________ Nyzam
IBM Cert. Solution Designer - WBIMB V5
IBM Cert. Administrator - WBIMB V5
IBM Cert. Administrator - WebSphere MQ V5.3
Oh my God!
I always search and then post the question, but these days I cannot click on the search results and go to the page. It says page not found. Could be some security here in my organization.
Sorry guys. I think I have to wait till I go home to search.
Nyzam _________________ Nyzam
IBM Cert. Solution Designer - WBIMB V5
IBM Cert. Administrator - WBIMB V5
IBM Cert. Administrator - WebSphere MQ V5.3
Joined: 27 Jan 2005 Posts: 397 Location: Philadelphia, PA
private void stripNameSpaces(Element element) {
/****Need to test why this does not work.
Namespace ns = element.getNamespace();
ns.detach();
*********/
logger.debug("Stripping of namespaces");
element.setQName(new QName(element.getName()));
logger.debug("Stripping namespace from "+element.getName());
Iterator elementIterator = element.elementIterator();
while (elementIterator.hasNext()) {
element = (Element) elementIterator.next();
logger.debug("Stripping namespace from "+element.getName());
stripNameSpaces(element);
}
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