Author |
Message
|
christopher j |
Posted: Sun Feb 13, 2011 9:04 pm Post subject: Adding comments (<!-- -->) inside the xml by using ESQ |
|
|
Novice
Joined: 01 Jan 2010 Posts: 20
|
Hi,
,
Could you please help me to add comments inside the xml (<!-- -->) by using ESQL.
I observed that '<' got converted into '<' .Is there any way to avoid this? |
|
Back to top |
|
 |
fjb_saper |
Posted: Sun Feb 13, 2011 10:24 pm Post subject: Re: Adding comments (<!-- -->) inside the xml by using |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
christopher j wrote: |
Hi,
,
Could you please help me to add comments inside the xml (<!-- -->) by using ESQL.
I observed that '<' got converted into '<' .Is there any way to avoid this? |
I suppose that you are not talking about adding a comment inside a field but about adding a comment field.
Look up the corresponding code for the corresponding parser. It works like an attribute or cdata field. (XMLNSC.Comment)
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
kimbert |
Posted: Mon Feb 14, 2011 3:29 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Code: |
SET OutputRoot.XMLNSC.myRootTag.(XMLNSC.Comment)anyNameYouLike = "Text of the comment"; |
|
|
Back to top |
|
 |
akidase |
Posted: Fri Jul 21, 2017 7:13 am Post subject: |
|
|
Centurion
Joined: 10 Jan 2011 Posts: 124
|
Quote: |
Code:
SET OutputRoot.XMLNSC.myRootTag.(XMLNSC.Comment)anyNameYouLike = "Text of the comment";
|
This works however I see this at the end of the file.. Is there anyway we could enforce it to have it come in the beginning of the xml? |
|
Back to top |
|
 |
Vitor |
Posted: Fri Jul 21, 2017 7:15 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
akidase wrote: |
Quote: |
Code:
SET OutputRoot.XMLNSC.myRootTag.(XMLNSC.Comment)anyNameYouLike = "Text of the comment";
|
This works however I see this at the end of the file.. Is there anyway we could enforce it to have it come in the beginning of the xml? |
Don't use SET, use CREATE FIRSTCHILD OF OutputRoot.XMLNSC.myRootTag.
This is nothing to do with comments and is basic "how to build XML in ESQL"  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Jul 21, 2017 7:16 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
akidase wrote: |
Quote: |
Code:
SET OutputRoot.XMLNSC.myRootTag.(XMLNSC.Comment)anyNameYouLike = "Text of the comment";
|
This works however I see this at the end of the file.. Is there anyway we could enforce it to have it come in the beginning of the xml? |
The same way you control the location of any element in the logical message tree. _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
|