Author |
Message
|
adrao45 |
Posted: Tue May 17, 2005 10:14 am Post subject: XML Null tags |
|
|
Novice
Joined: 29 Nov 2004 Posts: 12
|
Hi All,
I have write the following ESQL code for creating XML Null tag
SET OutputRoot.XML.File.Name=NULL;
But the the XML parser does't create the "Name" field tag .
If i write following code,it will have created the "Name" field tag .
SET OutputRoot.XML.File.Name='';
I appreciate if you could share your valuable comments...
Thank you! |
|
Back to top |
|
 |
maha20 |
Posted: Tue May 17, 2005 10:23 am Post subject: |
|
|
 Voyager
Joined: 23 Sep 2003 Posts: 79
|
SET OutputRoot.XML.File.Name=NULL;
Will nullify the field 'Name'. If you don't want to give any value to the field you can use
CREATE FIELD OutputRoot.XML.File.Name; _________________ IBM Certified System Administrator -WMQ V5.3
SCJP 1.4 |
|
Back to top |
|
 |
adrao45 |
Posted: Tue May 17, 2005 10:36 am Post subject: |
|
|
Novice
Joined: 29 Nov 2004 Posts: 12
|
Hi ,
Thanks for u r reply.
My requirement is like create XML empty tag using the following ESQL code
SET OutputRoot.XML.File.Name=NULL;
Can we do this or not?
Thank you! |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue May 17, 2005 11:34 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Yes.
This can be done.
maha20 already told you one way.
The documentation tells you another. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
adrao45 |
Posted: Tue May 17, 2005 12:25 pm Post subject: |
|
|
Novice
Joined: 29 Nov 2004 Posts: 12
|
Hi,
I did't find any documentation,Can u send it to me.
Thank You! |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue May 17, 2005 12:54 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
adrao45 wrote: |
I did't find any documentation,Can u send it to me. |
I am not here to do your job for you.
If you didn't find ANY documentation for WBIMB, you didn't look very hard.
If you didn't find the documentation that tells you how to use ESQL to create XML, you didn't look in the right place in the documentation.
This is an XML/XMLNS Domain question. You need to find the section of the documentation that talks about elements and values in the XML/XMLNS Domain, and read it.
Or, you know, use the Search button at the top of this page to find all the other times this same question has been asked and answered. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
adrao45 |
Posted: Tue May 17, 2005 1:15 pm Post subject: |
|
|
Novice
Joined: 29 Nov 2004 Posts: 12
|
Hi,
Sorry, I am in my work tension.
Thanks for u r help. |
|
Back to top |
|
 |
|