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
Need solution to convert Java 1.6 application into C# project
IBM System x3400 8K-I RAID Controller query
3 long beeps
Sysprep service pack 3
SBS 2008 How to Change the Company web Page Calender Date Format
jQuery hotkeys used in an iframe.
How to connect to Oracle 11g as "SYS" from PB
COUNT_variable Error
exchange 2003 and ISA 2006 certificate renew - RPC-HTTPS not working
Windows Authentication with User and Roles management in SQL Server