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 » set OutputRoot.MsgFormat.Element1 = char with apostrophe...

Post new topic  Reply to topic
 set OutputRoot.MsgFormat.Element1 = char with apostrophe... « View previous topic :: View next topic » 
Author Message
harshvajra
PostPosted: Fri Aug 10, 2007 1:41 am    Post subject: set OutputRoot.MsgFormat.Element1 = char with apostrophe... Reply with quote

Apprentice

Joined: 23 Apr 2007
Posts: 46
Location: India

Hello all,
I have a small problem setting with apostrophe in a character.
The requirement is :
Set OutputRoot.XML.Element1.Element2 = 'quarter's'.

we need an apostrophe in the string,
i don't know how to go about this.
Would any one help me do this.
Thanks in advance.
_________________
Failure is not a defeat,it's just a delay, Walk TALL
Back to top
View user's profile Send private message Send e-mail
AkankshA
PostPosted: Fri Aug 10, 2007 2:03 am    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

Set OutputRoot.XML.Element1.Element2 = 'quarter'''s'.
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
AkankshA
PostPosted: Fri Aug 10, 2007 2:23 am    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

Set OutputRoot.XML.Element1.Element2 = 'quarter' ||''''||'s'
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
elvis_gn
PostPosted: Fri Aug 10, 2007 2:25 am    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi,

Hmmm, was it...
AkankshA wrote:
Set OutputRoot.XML.Element1.Element2 = 'quarter'''s'.
or
Code:
Set OutputRoot.XML.Element1.Element2 = 'quarter''s'.

Regards.
Back to top
View user's profile Send private message Send e-mail
harshvajra
PostPosted: Fri Aug 10, 2007 2:44 am    Post subject: Reply with quote

Apprentice

Joined: 23 Apr 2007
Posts: 46
Location: India

Hello all,
Thankyou for your help.
I've got the required by 2 ways.
One with two double quotes i.e
* Set OutputRoot.XML.Element1.Element2 = 'quarter''s' *
is working rather than
* Set OutputRoot.XML.Element1.Element2 = 'quarter'''s'. *

and
the other way i've got it through use of XML.AsIsElementContent.
* Set OutputRoot.XML.Element1.(XML.AsisElementContent) = 'quarter''s';

but the concatination dosent seem to work
* Set OutputRoot.XML.Element1.Element2 = 'quarter' ||''''||'s' *.

Thankyou.
_________________
Failure is not a defeat,it's just a delay, Walk TALL
Back to top
View user's profile Send private message Send e-mail
AkankshA
PostPosted: Fri Aug 10, 2007 2:51 am    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

typo error its Set OutputRoot.XML.Element1.Element2 = 'quarter''s'
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
vsr
PostPosted: Fri Aug 10, 2007 6:55 am    Post subject: Re: set OutputRoot.MsgFormat.Element1 = char with apostrophe Reply with quote

Centurion

Joined: 04 Apr 2006
Posts: 104

harshvajra wrote:
Hello all,
Set OutputRoot.XML.Element1.Element2 = 'quarter's'.

Try using LIKE escape character '\' (backslash) before apostrophe and let us know

Quote:
Set OutputRoot.XML.Element1.Element2 = 'quarter\'s'.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Aug 10, 2007 9:00 am    Post subject: Re: set OutputRoot.MsgFormat.Element1 = char with apostrophe Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

vsr wrote:
Try using LIKE escape character '\' (backslash) before apostrophe and let us know


Maybe you should try it yourself first, before suggesting it.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
vsr
PostPosted: Fri Aug 10, 2007 1:12 pm    Post subject: Re: set OutputRoot.MsgFormat.Element1 = char with apostrophe Reply with quote

Centurion

Joined: 04 Apr 2006
Posts: 104

jefflowrey wrote:
vsr wrote:
Try using LIKE escape character '\' (backslash) before apostrophe and let us know


Maybe you should try it yourself first, before suggesting it.


Jeff, that's correct! You are the Master ! I am sorry for the wrong response.

Anyway, I came across these links when searching in the net:

http://www.xml.com/pub/a/2003/02/26/qa.html

http://www.xml.com/pub/a/2001/01/31/qanda.html

I guess possible solution can be using entity reference or CDATA
Back to top
View user's profile Send private message
shalabh1976
PostPosted: Sun Aug 12, 2007 10:09 pm    Post subject: Reply with quote

Partisan

Joined: 18 Jul 2002
Posts: 381
Location: Gurgaon, India

As far as I know in ESQL Single quote ' is the escape char and not \.
You have posted the links as you saw them on a xml site. This is MB.
_________________
Shalabh
IBM Cert. WMB V6.0
IBM Cert. MQ V5.3 App. Prog.
IBM Cert. DB2 9 DB Associate
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » set OutputRoot.MsgFormat.Element1 = char with apostrophe...
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.