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
mcafee 4.5 issue cant see the agent logs
How can I retrieve a message I just wrote but hadn't had chance to save?
Print pdf, word, and excel email attachments from inbox folder
Store file in mysql using connector.net and blob field
Rpc over Https
random number
Limit textbox to number of chars entered
DGV Error - System.IndexOutOfRangeExce
ption: Index 0 does not have a value.
Finding the array id based on value of key.
Intrusion Attempt on a Debian Etch system. Help needed