XPath
(1)
Attendees
(1)
Prev
(1)
Reps
(1)
Exp
(1)
Retreival
(1)
MYSUPPORT
(1)
Snipplet
(1)

Help: XML file - Results of data retreival are blank (see examples)....

Asked By Billy
19-Jan-10 03:08 PM
Im having an issue pulling specific data from XML. The results for the
field are blank......

This is a snipplet of the XML that I want to pull from. I need to pull
the specific comment: "This is such a great way for support. It solves
the question/problem immediately! Thank you." shown in the XML below.
I also want to pull the rating value of "5" into a seperate field too.

I can pull other data from XML fields no problem. Can someone help
tell me what I am doing wrong with this piece of code to reference
these fields?

This is the portion of XML:

- <cust_survey_list>
- <cust_exit_survey gsnumber=3D"1547">
It solves the question/problem immediately! Thank you." />

by using this portion of the code in an XSL template:

td>
value/name/@comments"/></td>


This is the entire XSL file below for reference=85=85


xmlns:xsl=3D"http://www.w3.org/1999/XSL/Transform">


td>
display_name"/></td>

t._ip"/></vey/ame"/></c_ip"/></td>

Eric replied to Billy
19-Jan-10 03:08 PM
t.
_ip"/></
vey/
ame"/></
c_ip"/></td>

Billy wrote:The XPath would becust_survey_list/cust_exit_survey/value[@name =

Martin Honnen replied to Billy
19-Jan-10 12:03 PM
The XPath would be
cust_survey_list/cust_exit_survey/value[@name = 'comments']/@value
and if you want to output that value then you need
'comments']/@value"/>
and not xsl:attribute as that would be used to create an attribute in
the result tree.

--

Martin Honnen --- MVP XML
http://msmvps.com/blogs/martin_honnen/
Post Question To EggHeadCafe