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 » Extracting info on processing instruction

Post new topic  Reply to topic
 Extracting info on processing instruction « View previous topic :: View next topic » 
Author Message
KimT
PostPosted: Mon Aug 02, 2004 3:46 am    Post subject: Extracting info on processing instruction Reply with quote

Novice

Joined: 07 May 2004
Posts: 17
Location: Hartford, CT

I would like to extract some info off my processing instruction:

instruction: <?KIM version="1.1.1"?>
need to extract: version="1.1.1"

I tried:

SET Environment.Variables.Version = InputRoot.XML.(XML.ProcessingInstruction).(XML.Attribute)KIM;

but nothing comes out.

Does anyone know the correct format to save the version in the processing instruction?

thanx,
KimT
Back to top
View user's profile Send private message
wooda
PostPosted: Mon Aug 02, 2004 4:39 am    Post subject: Reply with quote

Master

Joined: 21 Nov 2003
Posts: 265
Location: UK

Have you tried :

Code:
InputRoot.XML.(XML.ProcessingInstruction)KIM.(XML.Attribute)version;

For '1.1.1'

Or possibly:

Code:
InputRoot.XML.(XML.ProcessingInstruction)KIM;

For 'version="1.1.1"'
Back to top
View user's profile Send private message
KimT
PostPosted: Mon Aug 02, 2004 5:28 am    Post subject: Reply with quote

Novice

Joined: 07 May 2004
Posts: 17
Location: Hartford, CT

Thanx it worked!
Back to top
View user's profile Send private message
wooda
PostPosted: Mon Aug 02, 2004 5:45 am    Post subject: Reply with quote

Master

Joined: 21 Nov 2003
Posts: 265
Location: UK

Incidentaly which of the two alternatives did you try and which worked ?
I havn't actually tried either myself so I'd be interested to know.

Cheers

- Alex
Back to top
View user's profile Send private message
KimT
PostPosted: Mon Aug 02, 2004 8:20 am    Post subject: Reply with quote

Novice

Joined: 07 May 2004
Posts: 17
Location: Hartford, CT

I used the second one. Passed in the whole version="1.1.1" and then passed it back out in response.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Extracting info on processing instruction
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.