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 » Java PlugIn-Node: getAllElementsByPath

Post new topic  Reply to topic
 Java PlugIn-Node: getAllElementsByPath « View previous topic :: View next topic » 
Author Message
RAIQ
PostPosted: Mon Sep 13, 2004 5:54 am    Post subject: Java PlugIn-Node: getAllElementsByPath Reply with quote

Novice

Joined: 06 Feb 2003
Posts: 23
Location: Switzerland

hi all

i like to get/parse my xml-message in the java plug-in node with the methode getAllElementsByPath, but no result reached.

Code:

MbElement [] devisenElements =   rootElement.getAllElementsByPath("//ERELATIONS/*");

for(int i=0; i<devisenElements.length; i++) {
      traceWriter.println("Element-Name: |" + devisenElements[i].getName() + "| Value: |"+ (String)devisenElements[i].getValue() + "|");
}      

the xml-message:
Quote:

<?xml version="1.0" encoding="ISO-8859-1"?>
<ITIP_MESSAGE xmlns:rb="http://www.raiffeisen.ch/xml">
<ITIP_HEADER>
</ITIP_HEADER>
<ITIP_DATA>
<FremdtransNr>OTMSDEV900390</FremdtransNr>
<ERELATIONS>
<Source>OTMS</Source>
<OriginalID>900390</OriginalID>
<TraderID>74</TraderID>
<TradeDate>2004-09-08-09.50.34.000000</TradeDate>
<CCY1>USD</CCY1>
<CCY2>CHF</CCY2>
<QuoteDirection>0</QuoteDirection>
<Valuta>2004-09-10-00.00.00.000000</Valuta>
<Market1>FOREX</Market1>
<Market2>FOREX</Market2>
<Counterparty>BANANA-STIFTUNG, VADUZ</Counterparty>
<CounterpartyLIMIT>BANANA-STIFTUNG, VADUZ</CounterpartyLIMIT>
<CounterpartyID>74</CounterpartyID>
<TradingAreaID>FORX</TradingAreaID>
<AccountingAreaID>TRAD</AccountingAreaID>
<AccountingGroupID>SVRB</AccountingGroupID>
<LimitCheckTimeout>0</LimitCheckTimeout>
<TargetDB>0</TargetDB>
<FirstPayDateCCY1>2004-09-10</FirstPayDateCCY1>
<FirstPayDateCCY2>2004-09-10</FirstPayDateCCY2>
<SecondPayDateCCY1>2004-09-10</SecondPayDateCCY1>
<SecondPayDateCCY2>2004-09-10</SecondPayDateCCY2>
<Zeitstempel>2004-09-08-11.11.15.000000</Zeitstempel>
<KeyBenutzerID>1</KeyBenutzerID>
<Ausnutzung>-1</Ausnutzung>
<FXInfo>TEST1</FXInfo>
<GegenwertCHF>6167.5</GegenwertCHF>
<AKTIV>1</AKTIV>
<Status_BOSS>2</Status_BOSS>
<Kurs1>1.2335</Kurs1>
<Kurs2>1</Kurs2>
<KaufVerkauf>1</KaufVerkauf>
<DealLog_ID>900390</DealLog_ID>
<EntryCode>0</EntryCode>
<Kassageschaeft>1</Kassageschaeft>
<KeyFirmendatenID>74</KeyFirmendatenID>
<KeyLimitenfirmaID>74</KeyLimitenfirmaID>
<Brokerdeal>0</Brokerdeal>
<AgressorSVRB>0</AgressorSVRB>
</ERELATIONS>
</ITIP_DATA>
</ITIP_MESSAGE>


i like to get all childs of ERELATIONS in the array "DevisenElements"

ideas? experience with "/*"-qualifier
thanx for feedback
Back to top
View user's profile Send private message Visit poster's website
RAIQ
PostPosted: Mon Sep 13, 2004 7:38 am    Post subject: Solved... Reply with quote

Novice

Joined: 06 Feb 2003
Posts: 23
Location: Switzerland

hi
the method cann't handle CR/LF and Tab's correctly. i formatted the xml-message without this special characters....
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Java PlugIn-Node: getAllElementsByPath
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.