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 » Getting the namespace

Post new topic  Reply to topic
 Getting the namespace « View previous topic :: View next topic » 
Author Message
4integration
PostPosted: Fri Sep 26, 2008 4:16 am    Post subject: Getting the namespace Reply with quote

Disciple

Joined: 04 Sep 2006
Posts: 197
Location: Gothenburg, Sweden

Hello,

I have a "simple" problem....I need to get hand on the namespace with Java ComputeNode from the following XML....but don't get it right (feeling so stupid)

Code:
<?xml version="1.0" encoding="utf-8" ?>
<TransferReport xmlns="http://domain/Services/Feedback/Transfer/V2">
   <ReportType>GeneralReport</ReportType>
   <CreateDate>2008-09-19T10:57:10.1875+02:00</CreateDate>    
   <ToolName>MyTool</ToolName>
   <ClientId>11111</ClientId>
</TransferReport>


Shouldn't this work:

Code:
String inNS2 = assembly.getMessage().getRootElement().getLastChild().getNamespace();


EDIT:

Found it...this works:

Code:
String inNS = assembly.getMessage().getRootElement().getLastChild().getLastChild().getNamespace();

_________________
Best regards
4 Integration
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Getting the namespace
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.