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 » XML 101

Post new topic  Reply to topic
 XML 101 « View previous topic :: View next topic » 
Author Message
JT
PostPosted: Wed Apr 23, 2003 7:52 am    Post subject: XML 101 Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

I have an elementary XML question. After a successful LDAP lookup the results returned look something like this:

(0x1000000)XML = (
(0x1000000)LDAP = (
(0x1000000)Results = (
(0x1000000)Entry = (
(0x1000000)givenName = (
(0x1000000)Value = (
(0x2000000) = 'John'
)
)
(0x1000000)cn = (
(0x1000000)Value = (
(0x2000000) = 'John L. Doe'
)
(0x1000000)Value = (
(0x2000000) = 'JLDOE'
)
)
(0x1000000)sn = (
(0x1000000)Value = (
(0x2000000) = 'Doe'
)
)
(0x1000000)uid = (
(0x1000000)Value = (
(0x2000000) = 'JLDOE'
)
)
(0x1000000)createTimestamp = (
(0x1000000)Value = (
(0x2000000) = '20021203133517Z'
)
)
)
)
)
)

How do I reference the value for the XML tags "cn" & "uid"? I've attempted the following with no success:
Code:

SET OutputRoot.XML.ldapResults.displayName    =  InputRoot.XML.LDAP.Results.Entry.cn.Value[1];
SET OutputRoot.XML.ldapResults.networkId      =  InputRoot.XML.LDAP.Results.Entry.uid.Value;


I've also tried:
Code:

SET OutputRoot.XML.ldapResults.displayName    =  InputRoot.XML.LDAP.Results.Entry.cn.[XML.Content];
SET OutputRoot.XML.ldapResults.networkId      =  InputRoot.XML.LDAP.Results.Entry.uid.[XML.Content];


Any assistance would be greatly appreciated.
Back to top
View user's profile Send private message
RamVijayawada
PostPosted: Wed Apr 23, 2003 9:25 am    Post subject: Reply with quote

Novice

Joined: 22 Apr 2003
Posts: 15

Have u tried this?
InputBody.XML.LDAP.Results.Entry.cn.Value;
If not can u post the whole XML Structure....
Back to top
View user's profile Send private message
ernest-ter.kuile
PostPosted: Mon Apr 28, 2003 10:13 am    Post subject: Re: XML 101 Reply with quote

Apprentice

Joined: 13 May 2002
Posts: 49
Location: KLM Holland

I think you had the index at the wrong place. It's cn that has more than one value, not cn.value

try this :

Code:
InputRoot.XML.LDAP.Results.Entry.cn[1].Value;

should do the trick for cn for the first Value.

Code:
InputRoot.XML.LDAP.Results.Entry.uid.Value;

for the uid.

and the XML.Content isn't really necessary, but should be between () not []. like this :

Code:
InputRoot.XML.LDAP.Results.Entry.cn[1].Value.(XML.Content);




Have fun.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » XML 101
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.