Microsoft
Software
Hardware
Network
Question : storing values from xmlparse in coldfusion
We are uploading xml files from our clients and then want to save the values from the xml in the database. If I use: <CFOUTPUT>#xmlDoc.XmlRoot.
Student.Co
ntactInfo.
PrimaryPho
neNumber#<
/CFOUTPUT>
I get the value back 5123826201. However if I try to update the db with update apps set phone = #xmlDoc.XmlRoot.Student.Co
ntactInfo.
PrimaryPho
neNumber# I get update apps set phone = '<?xml version="1.0" encoding="UTF-8"?> <sds:PrimaryPhoneNumber xmlns:sds="
http://scholars
hipprovide
rs.org/sch
olarshipap
plication
"
>512382620
1</sds:Pri
maryPhoneN
umber>'
What am I doing wrong??
Answer : storing values from xmlparse in coldfusion
#xmlDoc.XmlRoot.Student.Co
ntactInfo.
PrimaryPho
neNumber# is a complex xml element. You probably want the XMLText attribute of that element (ie the value)
#xmlDoc.XmlRoot.Student.Co
ntactInfo.
PrimaryPho
neNumber.x
mlText#
Random Solutions
jquery dhtml dynamic population issue
iPad Camera Connection Kit does not display .jpg images on iPad
I want to make Liberty reserve API
perl regexp with div tags and space
Remove space from textbox automatically
Sharepoint|IIS| Web Application port number
what is the default directory to run jsp file from tomcat 5.5 and what directory for mysql_connector.jar file to be placed?
asp - The resource could not be found
100% CPU usage in vCenter but not in taskmanager on the Windows NT 4.0 VM that has been converted
Remove header from array created using Get-QADComputer cmdlet?