Author |
Message
|
Nizam |
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 |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Mar 25, 2005 10:10 am Post subject: Re: convert xmlns to xml |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Nizam wrote: |
Can someone suggest how I can convert this to xml messgage. |
The search button can. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Michael Dag |
Posted: Fri Mar 25, 2005 10:37 am Post subject: Re: convert xmlns to xml |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
Nizam wrote: |
My incoming message is in xmlns. Can someone suggest how I can convert this to xml messgage. |
being lazy or have these certifications become real easy nowadays? _________________ Michael
MQSystems Facebook page |
|
Back to top |
|
 |
Nizam |
Posted: Fri Mar 25, 2005 11:23 am Post subject: |
|
|
Disciple
Joined: 10 Feb 2004 Posts: 160
|
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 |
|
Back to top |
|
 |
malammik |
Posted: Mon Mar 28, 2005 6:51 am Post subject: |
|
|
 Partisan
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);
}
Namespace ns = element.getNamespace();
if (ns != null) {
String elementName = element.getName();
element.setQName(new QName(elementName));
}
//return element;
} _________________ Mikhail Malamud
http://www.netflexity.com
http://groups.google.com/group/qflex |
|
Back to top |
|
 |
|