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
PHP MySQL SELECT OPTGROUP parent value
Mikrotik Dst-Nat Problem with internal web server
Disable Calendar Auto Accept request for outlook 2007
Cisco 1841: setting a bandwidth limit
Update RevTex in TexLive and Kile - Fedora 13
Help With IIS Error MSDPLOY The AppPoolNotFound dependency check
Windows Update site fails to load
W3WP.exe uses 100% CPU at some times.
Backup Exec 2010 running missed backup to tape job ?
VPN disconnects over 2 way satellite