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
Turn off Public Folder Replication in Exchange 2007
for loop in oracle
Get the name of an active control
Create chart that ignores zero values
SAS or SATA
I can't find the audio driver for a Satellite P30
Remove Columns from CSV file, save results to new file
asp.net + gridview + linkbutton
how to read pcap file in windows without wireshark
How many amps can a 25V 470uF capacitor hold before it explodes?