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 » Modify the data in the xml file with namespace. Help!

Post new topic  Reply to topic
 Modify the data in the xml file with namespace. Help! « View previous topic :: View next topic » 
Author Message
trongbx
PostPosted: Thu Jan 08, 2009 12:54 am    Post subject: Modify the data in the xml file with namespace. Help! Reply with quote

Novice

Joined: 23 Nov 2008
Posts: 21

Hi All,

This is the xml example file:

/**

<SemiconductorProcessDataNotification......>
<ssdh:DocumentHeader>
<ssdh:DocumentInformation>
<ssdh:Receiver>
<uci:ContactInformation>
<uci:Contact>Hitachi Contact Person</uci:Contact>
<uci:Email>it_contact@hitachi.com</uci:Email>
<uci:Phone>Hitachi Contact Phone number here</uci:Phone>
</uci:ContactInformation>
<upi:PartnerIdentification>
<udt:DUNS>018198205</udt:DUNS>
</upi:PartnerIdentification>
</ssdh:Receiver>
</ssdh:DocumentInformation>
</ssdh:DocumentHeader>
</SemiconductorProcessDataNotification......>


*/

I am working on the project which change the data of the element in the xml file. Forexample: i need to change the data of the
<Contact>Hitachi Contact Person</uci:Contact> to <uci:Contact> New Contact Person </uci:Contact> and my esql code is below:

/**

DECLARE ssdh_ns NAMESPACE 'urn:rosettanet:specification:system:StandardDocumentHeader:xsd:schema:01.13';
DECLARE uci_ns NAMESPACE 'urn:rosettanet:specification:universal:ContactInformation:xsd:schema:01.03';

SET OutputRoot.XMLNS = InputRoot.XMLNS;
SET OutputRoot.XMLNS.SemiconductorProcessDataNotification.ssdh_ns:DocumentHeader.ssdh_ns:DocumentInformation.ssdh_ns:Receiver.uci_ns:ContactInformation. uci_ns:Contact = ' New Contact Person';

/*

However, the result is:

<SemiconductorProcessDataNotification......>
<ssdh:DocumentHeader>
<ssdh:DocumentInformation>
<ssdh:Receiver>
<uci:ContactInformation>
<uci:Contact>Hitachi Contact Person</uci:Contact>
</uci:ContactInformation>
</ssdh:Receiver>
</ssdh:DocumentInformation>
</ssdh:DocumentHeader>
</SemiconductorProcessDataNotification......>

Others element have gone. it seems that my program created the new message, not the modify the data in the input message.


I don't know why it created the new message and please give me the suggesstion about how i can modify the data of the element in the xml file with namespace.

Thanks.
Back to top
View user's profile Send private message
kimbert
PostPosted: Thu Jan 08, 2009 1:32 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Are you sure that your namespace constants are correct?
Have you tried stepping through your code using the flow debugger?

In this situation, I would
- Add Trace nodes before and after the Compute node
- Take a user trace
- Read the trace output carefully

User trace may be better than the debugger, because you can post the relevant parts of the trace if necessary.
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 » Modify the data in the xml file with namespace. Help!
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.