Magendran:
I appreciate your response bit I think there is something missing still.  This EQSL produced the following:
 
<?xml version="1.0"?>
<people>
  <person>fred<person location="London"/>
</people>
 


>>> [EMAIL PROTECTED] 4/19/2004 7:53:47 AM >>>
SET OutputRoot = InputRoot;
SET OutputRoot.XML.people.person.(XML.Attribute)location = 'London';
 
Regards
Magendran Govender
-----Original Message-----
From: Daniel Graper [mailto:[EMAIL PROTECTED]
Sent: 19 April 2004 01:26
To: [EMAIL PROTECTED]
Subject: MQSI - How to add attributes to input XML

I am having some difficulty trying to add xml attributes to opening tags that are input to one of our message flows.  Basically, I need to find out how to take an input document like this:
 
<?xml version="1.0"?>
<people>
  <person>fred</person>
</people>
 
and change it to something like this:
 
<?xml version="1.0"?>
<people>
  <person location="London">fred</person>
</people>
 
Does anyone have an example of this in a v2.1 compute node?
 
thanks,
Sebastian
 

Please click on the following link to read the Old Mutual legal notice:
<
http://www.oldmutual.co.za/e-mail_legal_notice>
Alternatively, send a "blank" e-mail to <
mailto:[EMAIL PROTECTED]>

 

Reply via email to