Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
ghoukster #1
MS Access XML with CF....
A user has an access database that they want to export an xml file out of, and
through cf, upload the file and have the contents inserted into the sql server
db. No problem, I know how to do this. The problem is that the xml elements are
not consistent. For example, if the contact field is null in one of the
records, then the xml file doesn't generate <Contact></Contact>. It drops it
altogether. So, how can this be cared for in CF? Code such as: <cfoutput>
<tr> <td>#mydoc.dataroot.tblMfgReps_Web.Region[1].XmlText#</td>
<td>#mydoc.dataroot.tblMfgReps_Web.Company[1].XmlText#</td>
<td>#mydoc.dataroot.tblMfgReps_Web.Contact[1].XmlText#</td> </tr>
</cfoutput> will not work. It throws this error: The index of a child element
is out of range. There are only '1' children under this node. Therefore
index '2' is out of the allowed range [1-1]. Text Any ideas? Thanks, Gary
ghoukster Guest
-
Web Service + Anon Access, but getting 401 Access Denied Error
I have a simple webservice that just returns a string. The security for this is set to windows authentication in IIS (XP Professional) and anonymous... -
Network File access using anonymous access
I have seen a number of entries related to accessing remote resources (files in my case) that need to reside on a remote server. We must leave our... -
Access 2002 PDFWriter VBA Code w/WinXP does not work like Access 2000
I am trying to print an Access 2002 report (Windows XP OS) as a PDF. I had success with Access 2000 in a Windows 2000 environment, but as soon as I... -
Access Violation when using Visual Interdev to access Oracle
I am running Windows 200 Pro, IIS 5.0 and trying to connect to an Oracle 8.1 database. Prior to applying a security patch to W2k, the ASP... -
Access denied when creating Access application object
In an ASP file I am running the following in VBScript in order to extract data from an Access 2002 MDB file which is physically located in the... -
Brian Hogue #2
Re: MS Access XML with CF....
Gary -
I have only read the CF 6 documentation on XML data. I thought there is a
tag or function to read XML data. Is that row's Contact information NULL? If
yes, then at least you have a placeholder for your Contact column in that
row. Otherwise, it sounds like your code needs to check for the existence of
each column in each row. Maybe someone has a better solution.
-brian
"ghoukster" <gary@garyhouk.com> wrote in message
news:d1fks6$6k9$1@forums.macromedia.com...and> A user has an access database that they want to export an xml file out of,server> through cf, upload the file and have the contents inserted into the sqlelements are> db. No problem, I know how to do this. The problem is that the xmlit> not consistent. For example, if the contact field is null in one of the
> records, then the xml file doesn't generate <Contact></Contact>. It dropselement> altogether. So, how can this be cared for in CF? Code such as: <cfoutput>
> <tr> <td>#mydoc.dataroot.tblMfgReps_Web.Region[1].XmlText#</td>
> <td>#mydoc.dataroot.tblMfgReps_Web.Company[1].XmlText#</td>
> <td>#mydoc.dataroot.tblMfgReps_Web.Contact[1].XmlText#</td> </tr>
> </cfoutput> will not work. It throws this error: The index of a childGary> is out of range. There are only '1' children under this node. Therefore
> index '2' is out of the allowed range [1-1]. Text Any ideas? Thanks,>
Brian Hogue Guest



Reply With Quote

