Adobe Community
All community
This category
This board
Knowledge base
Users
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results forÂ
ShowÂ
 onlyÂ
|
Search instead forÂ
Did you mean:Â
Global community
Language:
Deutsch
English
Español
Français
Português
日本語コミュニティ
Dedicated community for Japanese speakers
í•œêµ ì»¤ë®¤ë‹ˆí‹°
Dedicated community for Korean speakers
Sign In
Exit
Home
ColdFusion
Discussions
XML Parsing
Home
ColdFusion
Discussions
XML Parsing
0
Upvote
XML Parsing
ctlcal
New Here
,
/t5/coldfusion-discussions/xml-parsing/td-p/176031
Jul 15, 2008
Jul 15, 2008
Copy link to clipboard
Copied
I am having no luck in Coldfusion in getting to the values of PID and ID in the following returned XML file. Any suggestions?
<cfxml variable="test">
<diffgr:diffgram xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<ProjectDataset xmlns="
http://tempuri.org/ProjectDataset.xsd">
<Project diffgr:id="Project1" msdata:rowOrder="0">
<PID>1234</PID>
<ID>1234</ID>
</Project>
</ProjectDataset>
</diffgr:diffgram>
</cfxml>
Thanks in advance...
TOPICS
Advanced techniques
Views
495
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
1 Correct answer
Newsgroup_User
LEGEND
,
Jul 15, 2008
Jul 15, 2008
Newsgroup_User
•
LEGEND
,
Jul 15, 2008
Jul 15, 2008
<cfoutput>
#test['diffgr:diffgram']['ProjectDataset']['Project']['PID']['XMLText']#
#test['diffgr:diffgram']['ProjectDataset']['Project']['ID']['XMLText']#
</cfoutput>
<cfdump var="#test#" format="html">
This should get you started.
Votes
0
Upvote
Translate
Translate
Jump to answer
5 Replies
5
Jump to latest reply
Correct answer by
Newsgroup_User
LEGEND
,
/t5/coldfusion-discussions/xml-parsing/m-p/176032#M15902
Jul 15, 2008
Jul 15, 2008
Copy link to clipboard
Copied
<cfoutput>
#test['diffgr:diffgram']['ProjectDataset']['Project']['PID']['XMLText']#
#test['diffgr:diffgram']['ProjectDataset']['Project']['ID']['XMLText']#
</cfoutput>
<cfdump var="#test#" format="html">
This should get you started.
Votes
0
Upvote
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
ctlcal
AUTHOR
New Here
,
/t5/coldfusion-discussions/xml-parsing/m-p/176034#M15904
Jul 15, 2008
Jul 15, 2008
Copy link to clipboard
Copied
In Response To Newsgroup_User
Thanks - that is exactly what I needed.
Votes
0
Upvote
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Stressed_Simon
Engaged
,
/t5/coldfusion-discussions/xml-parsing/m-p/176033#M15903
Jul 15, 2008
Jul 15, 2008
Copy link to clipboard
Copied
Easy:-
Votes
0
Upvote
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Newsgroup_User
LEGEND
,
/t5/coldfusion-discussions/xml-parsing/m-p/176035#M15905
Jul 15, 2008
Jul 15, 2008
Copy link to clipboard
Copied
Stressed_Simon wrote:
> ...
> <cfset xTest = xmlParse(trim(test))>
I'll point out that xmlParse() is unnecessary here, since the <cfxml...>
tag already creates an xml object in ColdFusion.
It would be use if one was converting an XML string into an xml object.
Votes
0
Upvote
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Stressed_Simon
Engaged
,
/t5/coldfusion-discussions/xml-parsing/m-p/176036#M15906
Jul 15, 2008
Jul 15, 2008
Copy link to clipboard
Copied
LATEST
In Response To Newsgroup_User
Good point. Only half read it!
Votes
0
Upvote
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Post Reply
Preview
Exit Preview
never-displayed
You must be signed in to add attachments
never-displayed
Â
Resources
Documentation
ColdFusion User Guide