Posted: Sun Sep 28, 2008 9:39 pm Post subject: creating XML attributes in ESQL
Apprentice
Joined: 02 Apr 2008 Posts: 26 Location: Sweden
Im developing a XML message in ESQL for deployment to an older Websphere machine. Since Im kind of green on ESQL I have to ask about XML attributes.
Ive done this
Code:
DECLARE j INTEGER 1;
DECLARE countmsg INTEGER CARDINALITY(InputRoot.XML.Invoice.InvoiceMessage[]);
WHILE (j <= countmsg) do
SET OutputRoot.XML.InvoiceDocument.InvoiceMessage[j].(XML.Attribute)MessageNumber = InputRoot.XML.Invoice.InvoiceMessage[j].MessageNumber;
SET OutputRoot.XML.InvoiceDocument.InvoiceMessage[j].MessageNumber = InputRoot.XML.Invoice.InvoiceMessage[j].MessageNumber;
I thought that would give me a XML attribute with a proper attribute and then the element in a row by itself. Instead I get nothing, it simply ignores these two and keep going with the other elements.
Am I doing something wrong when trying to create the attribute?
Thanks for answering, yes I'm at version6 but it will be deployed to a version 5 machine...
Maybe it will be working on that one, better fire up my vpn
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