ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » convert xmlns to xml

Post new topic  Reply to topic
 convert xmlns to xml « View previous topic :: View next topic » 
Author Message
Nizam
PostPosted: Fri Mar 25, 2005 10:04 am    Post subject: convert xmlns to xml Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Fri Mar 25, 2005 10:10 am    Post subject: Re: convert xmlns to xml Reply with quote

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
View user's profile Send private message
Michael Dag
PostPosted: Fri Mar 25, 2005 10:37 am    Post subject: Re: convert xmlns to xml Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
Nizam
PostPosted: Fri Mar 25, 2005 11:23 am    Post subject: Reply with quote

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
View user's profile Send private message
malammik
PostPosted: Mon Mar 28, 2005 6:51 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » convert xmlns to xml
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.