I have a component whose init method takes the path to an xml file and
parses the contents of that xml file into an internal data structure. Now I
am trying to write the unit test for this function and I am getting stuck.
My original attempt was to pass in a test xml file and the manually create
could return test UUIDs from out of a preset
list - not sure how sensitive your testing needs to be.
Jaime Metcher
-Original Message-
From: Jeff Chastain [mailto:[EMAIL PROTECTED]
Sent: Friday, 27 July 2007 3:18 AM
To: CF-Talk
Subject: Unit Testing an XML Parsing Function
I have
Hi,
I need to build a quick and dirty app to display weather for a given zip
code. I'm planning on using Yahoo!'s weather feed; for example, see
http://weather.yahooapis.com/forecastrss?p=19426u=f
The specific issue that I am trying to resolve is using lines like these:
#wx.item.yweather:condition[temp].xmltext#
You where so close with this example; you need to use the array notation
to access the structure element with an invalid variable for a key.
#wx.item[yweather:condition][temp].xmltext#
Confidentiality Notice: This message including any
attachments is
Thanks, Ian, but still no dice. This:
cfoutputp#wx.item[yweather:condition][temp].xmltext#/p/cfoutput
yields this error message:
Element temp is undefined in a Java object of type class
coldfusion.xml.XmlNodeList referenced as The error occurred in
I suspect you will find this a great use:
cfdump var=#wx#
Temp is not a child node of yweather:condition, it is an attribute, so
you need to use xmlAttributes, not xmlText, to get it. I'm guessing
here, but it should be something close to this, the dump above will show
the exact names.
Thanks, Ian, huge help.
In case anyone else is going through this exercise, here is an initial
version:
!--- Uses a Yahoo! weather RSS feed. ---
!---
Set a query object that will allow a lookup of weather descriptions.
If none is found, set response as not available
Dump the query into the
I am having trouble parsing out a soap response because of colons in element
names. How do you parse them?
I.e.
cfxml variable=XMLObj
env:envelope
env:body
ab1:unameFRED/ab1:uname
ab1:score390/ab1:score
/env:body
/env:envelope
cfxml
Yup, all the time
#XMLObj[env:envelope][env:body].xmlchildren[1].XmlText#
--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA
-
| 1 | |
- Binary Soduko
| | |
-
C code. C code run. Run code run. Please!
- Cynthia Dunning
Worked like a charm!! Thanks.
Jeff
On 10/30/06, Ian Skinner [EMAIL PROTECTED] wrote:
Yup, all the time
#XMLObj[env:envelope][env:body].xmlchildren[1].XmlText#
--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA
-
| 1 | |
-
Subject: Re: XML parsing link underline
On 8/17/06, Oðuz_Demirkapý [EMAIL PROTECTED] wrote:
Ok. Some more info:
We have a Java tool which uses Aspose.Slides component (
http://www.aspose.com/Products/Aspose.Slides/) to generate PPT file.
Here is a link for doing it via java:
http
of problem
while working with XML Flash and I thought that a simple trick would be
helpful.
Sincerely,
OÄuz Demirkapı
-Original Message-
From: Denny Valliant [mailto:[EMAIL PROTECTED]
Sent: Donnerstag, 17. August 2006 03:58
To: CF-Talk
Subject: Re: XML parsing link underline
Yeesh
On 8/17/06, Oðuz_Demirkapý [EMAIL PROTECTED] wrote:
Ok. Some more info:
We have a Java tool which uses Aspose.Slides component (
http://www.aspose.com/Products/Aspose.Slides/) to generate PPT file.
Here is a link for doing it via java:
Hi,
I have a CF project where I parse an XML document by a Java based tool and
generate a PPT file.
I need to show underline for a link now and I have a syntax as
lt;ugt;www.mydomain.comlt;/ugt;
in my XML file.
But it displays as uwww.mydomain.com/u in output.
I guess this is an
Yeesh... not sure, but maybe it's PPT itself adding the link?
Most of these new fangled apps automagically transform them to real
links...
Dont' know, really... are you building the PPT using a .HTM file and
renaming it,
or a similar method? Or do you have an app for PPT generation? Check it's
loop through the array mydoc.nitf.head.meta testing
mydoc.nitf.head.meta[i].XmlAttributes.name
for the value you need.
On 5/9/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
--
Mike T
Blog http://www.socialpoints.com/
~|
Hey Jonathan -
This worked perfectly for me. And, if you're really just looking for
that one element it will be much faster than iterating across the
entire document. The code below, as pointed out by Brad, returns a
single element array. Code snippet below:
cfoutput
cfxml variable=xmldoc
Hi,
I'm working on parsing an xml document and have run into a brick wall. A
portion of the xml is below...
Here's the issue... I can sucessfully retrieve the ap-online-code
using the following code:
cfset mydoc = XmlParse(xmldoc)
#mydoc.nitf.head.meta[8].XmlAttributes.content#
(the above
cfset mydoc = XmlParse(xmldoc) #mydoc.nitf.head.meta[8].XmlAttributes.content#
(the above code outputs '1110' as expected)
But I'm worried about the document changing. Can I somehow retrieve this by the
name attribute (in this example 'ap-content-code') instead of position number?
Assuming
If you're looking specifically for that element, I'd use
XPath/XMLSearch(). Try this:
XMLSearch ( mydoc, '/nitf/head/[EMAIL PROTECTED]'ap-online-code']' )
On 5/9/06, Ian Skinner [EMAIL PROTECTED] wrote:
cfset mydoc = XmlParse(xmldoc)
#mydoc.nitf.head.meta[8].XmlAttributes.content#
(the
I tried that already... it doesn't work:
Element ap-content-code is undefined in a Java object of type class
coldfusion.xml.XmlNodeList referenced as
Assuming that ap-content-code is a child of the meta node, this should
work.
mydoc.nitf.head.meta['ap-content-code'].XmlAttributes.content
This didn't work either (after changing outer single quotes to double):
Complex object types cannot be converted to simple values.
If you're looking specifically for that element, I'd use
XPath/XMLSearch(). Try this:
XMLSearch ( mydoc, '/nitf/head/[EMAIL PROTECTED]'ap-online-code']' )
On
] to get the first
element returned and then you will have a struct to dig through...
~Brad
-Original Message-
From: Jonathan Mauney [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 09, 2006 4:00 PM
To: CF-Talk
Subject: Re: XML Parsing in CF Help
This didn't work either (after changing outer
I tried that already... it doesn't work:
Element ap-content-code is undefined in a Java object of type class
coldfusion.xml.XmlNodeList referenced as
Can you give us a relevant snippet of the XML structure you are trying to read?
--
Ian Skinner
Web Programmer
BloodSource
Hello,
I have a xml doc and I want to parse it. What I would like to know is
How do I loop through ZSERVICELIST and build a list of all of the
tags (e.g. ZSVCMODE). I found that I can find out how man tags
there are by using ArrayLen(XMLRoot.XmlChildren) and that works
fine. Here is a
What version of CF are u using?
Charles Heizer wrote:
Hello,
I have a xml doc and I want to parse it. What I would like to know is
How do I loop through ZSERVICELIST and build a list of all of the
tags (e.g. ZSVCMODE). I found that I can find out how man tags
there are by using
Hello,
I have a xml doc and I want to parse it. What I would like to know is
How do I loop through ZSERVICELIST and build a list of all of the
tags (e.g. ZSVCMODE). I found that I can find out how man tags
there are by using ArrayLen(XMLRoot.XmlChildren) and that works
fine. Here is a
What I should have added in my last post is that CF now has many XML
functions built right in, like XMLParse, etc that should work for you.
Charles Heizer wrote:
Hello,
I have a xml doc and I want to parse it. What I would like to know is
How do I loop through ZSERVICELIST and build a list
PROTECTED]
Sent: Thursday, March 09, 2006 6:19 PM
To: CF-Talk
Subject: XML Parsing Question...
Hello,
I have a xml doc and I want to parse it. What I would like to know is How do
I loop through ZSERVICELIST and build a list of all of the tags (e.g.
ZSVCMODE). I found that I can find out how man tags
CFMX 7.0.1 on Mac OS X
On Mar 9, 2006, at 9:22 AM, Ray Champagne wrote:
What version of CF are u using?
Charles Heizer wrote:
Hello,
I have a xml doc and I want to parse it. What I would like to know is
How do I loop through ZSERVICELIST and build a list of all of the
tags (e.g.
Thanks, this got me on the right path ...
- Charles
On Mar 9, 2006, at 9:22 AM, Ian Skinner wrote:
Hello,
I have a xml doc and I want to parse it. What I would like to know is
How do I loop through ZSERVICELIST and build a list of all of the
tags (e.g. ZSVCMODE). I found that I can find out
I am successfully parsing an XML document using the javascript below. I am
running into trouble, however, when I try to parse an xml file that doesn't
exist in the same directory as the calling page. See inline comments below.
var xmlDoc = new ActiveXObject(Microsoft.XMLDOM);
function
try this:
var xmlFile=C:\\test\\menu.xml;
I am successfully parsing an XML document using the javascript below. I am
running into trouble, however, when I try to parse an xml file that doesn't
exist in the same directory as the calling page. See inline comments below.
Good suggestion, but no dice; same error as the C:/\test/\menu.xml
attempt...
-Original Message-
From: Robert Munn [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 04, 2005 10:28 AM
To: CF-Talk
Subject: Re: OT: Javascript XML parsing
try this:
var xmlFile=C:\\test\\menu.xml
: Robert Munn [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 04, 2005 10:28 AM
To: CF-Talk
Subject: Re: OT: Javascript XML parsing
try this:
var xmlFile=C:\\test\\menu.xml;
~|
Discover CFTicket - The leading ColdFusion Help Desk
Well that certainly makes sense now that I consider it. Thanks!
-Original Message-
From: Robert Munn [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 04, 2005 12:12 PM
To: CF-Talk
Subject: Re: OT: Javascript XML parsing
Oh, brain fart, sorry. Your browser doesn't know about the drive
Im not the familiar with namespace usage in xml. When trying to us mx 7 to
parse this im getting this message:
The prefix xmlns cannot be bound to any namespace explicitly; neither
can
the namespace for xmlns be bound to any prefix explicitly.
Not sure what these means in plain English.
be:
rss.channel.item.products:show_name
Which of course you cannot access directly, anyone have a simple method of
getting the xml value of products.show_name?
gabe
-Original Message-
From: Massimo Foti [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 06, 2005 4:05 AM
To: CF-Talk
Subject: Re: Xml parsing
Im not the familiar with namespace usage in xml. When trying to us mx 7 to
parse this im getting this message:
The prefix xmlns cannot be bound to any namespace explicitly; neither can
the namespace for xmlns be bound to any prefix explicitly.
Not sure what these means in plain English. Should
I just got a project dumped on my that requires a lot of xml parsing on a
coldfusion 4 server. I know about activ's CFX_XMLParser. I've never tried
it so I'm not sure how well it works. I just want to see what all my
options are. Are there any other solutions that date back to cf4? CF4
There might be some COM objects that you could use but you'll have to
search around to find out for sure.
On 4/21/05, Emmet McGovern [EMAIL PROTECTED] wrote:
I just got a project dumped on my that requires a lot of xml parsing on a
coldfusion 4 server. I know about activ's CFX_XMLParser. I've
-talk@houseoffusion.com
Sent: Thursday, April 21, 2005 11:49 AM
Subject: Re: XML parsing on CF 4
There might be some COM objects that you could use but you'll have to
search around to find out for sure.
On 4/21/05, Emmet McGovern [EMAIL PROTECTED] wrote:
I just got a project dumped on my
I wish. It has to be done on their server. The whole thing is behind a
firewall running on internal IP's.
-Original Message-
From: Bryan Stevenson [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 21, 2005 3:00 PM
To: CF-Talk
Subject: Re: XML parsing on CF 4
Would it be possible to hand
I have an XML document that looks like this:
xml xmlns:s='uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882' xmlns:dt='uuid:C2F41010-65B3-11d1-A29F-00AA00C14882'
xmlns:rs='urn:schemas-microsoft-com:rowset'
xmlns:z='#RowsetSchema'
s:Schema id='RowsetSchema'
s:ElementType name='row' content='eltOnly'
I have never tried to do it. I am hard pressed to think of why I would
ever want to maybe MM developers were the same way. Any chance you
could give me a real world application for this? Maybe I am missing
out on some revolutionary concept :)
Adam H
On Thu, 2 Sep 2004 13:01:42 -0700, Rob [EMAIL
I have never tried to do it. I am hard pressed to think of why I would
ever want to maybe MM developers were the same way. Any chance you
could give me a real world application for this? Maybe I am missing
out on some revolutionary concept :)
Adam H
Never tried to copy a node from one XML
I have two similar XML structures.I want to append a node from one structure to the other.Can somebody point out to me how I would do this in ColdFusion?I am apparently not getting the concept.
xmlDoc1 =
root
member
memberchild1
...
memberchildN
/member
/root
xmlDoc2 =
root
member
September 2004 19:10
To: CF-Talk
Subject: XML parsing in ColdFusion
I have two similar XML structures.I want to append a node from one
structure to the other.Can somebody point out to me how I would do this in
ColdFusion?I am apparently not getting the concept.
xmlDoc1 =
root
member
memberchild1
That's what I'm experimenting with now.
cfset doc2.root.xmlChildren[99] = xmlElemNew(doc2, doc1.root.xmlChildren[1])
I'm getting errors like this at the moment Invalid XML identifier encountered.The identifier [EMAIL PROTECTED] is not a valid XML identifier.
This just doesn't tell ME much that
on="" file=#ExpandPath('.')#\contacts.xml
output=#ToString(xmlContacts)#
Let us know how you get on.
Ade
-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED]
Sent: 02 September 2004 19:10
To: CF-Talk
Subject: XML parsing in ColdFusion
I have two similar XML structures.I w
I'm still not getting this to work.I tried using what you provided, but I'm only getting errors like the following.
WRONG_DOCUMENT_ERR: That node doesn't belong in this document.
Error casting an object of type to an incompatible type. This usually indicates a programming error in Java, although
: XML parsing in ColdFusion
I'm still not getting this to work.I tried using what you provided, but
I'm only getting errors like the following.
WRONG_DOCUMENT_ERR: That node doesn't belong in this document.
Error casting an object of type to an incompatible type. This usually
indicates
WRONG_DOCUMENT_ERR: That node doesn't belong in this document.
CF, under the hood, use DOM APIs. With DOM every node has an its owner
document and you can't move it around across different documents. The
solution is to first clone the node and move the resulting clone (removing
the original node
12:04:07 -0700
Subject: RE: XML parsing in ColdFusion
To: CF-Talk [EMAIL PROTECTED]
I'm still not getting this to work.I tried using what you provided,
but I'm only getting errors like the following.
WRONG_DOCUMENT_ERR: That node doesn't belong in this document.
Error casting an object of type
the second.
Ade
-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED]
Sent: 02 September 2004 20:04
To: CF-Talk
Subject: RE: XML parsing in ColdFusion
I'm still not getting this to work.I tried using what you provided, but
I'm only getting errors like the following
This seems to do the trick, except for the id attribute...
cfxml variable=doc1
root
member id=10
nameIan/name
sexmale/sex
/member
/root
/cfxml
cfxml variable=doc2
root
member id=1
nameJoe/name
sexmale/sex
/member
member id=2
nameJohn/name
sexmale/sex
/member
Thanks, that worked, now I just need to decide if I want to use undocumented features or an UDF.
Is this really supposed to be this difficult?Or am I just being difficult again?
--
Ian Skinner
Web Programmer
BloodSource
It really is that difficult
http://www-106.ibm.com/developerworks/xml/library/x-tipmvdom.html
On Thu, 2 Sep 2004 12:39:53 -0700, Ian Skinner
[EMAIL PROTECTED] wrote:
Thanks, that worked, now I just need to decide if I want to use undocumented features or an UDF.
Is this really supposed to be
Using some information I found here Use XSLT to Merge XML Documents [http://www.fawcette.com/archives/premier/mgznarch/xml/2001/06jun01/rj0103/rj0103.asp], I got this to work in a more natively XMLish way without relying on brute force deep copying or possibly depreciated hidden functions.
I'm
When you have an XML record with a missing element (not just an empty
element), what's the best way to test for it?
I'm using CFTRY/CFCATCH, and it seems there must be a better way:
cftry
cfset QuerySetCell(myQuery,'image',
myXMLDoc.data.star[idx].image.XMLText)
cfcatch type=Any
cfset
Maybe I'm just being a NAG here, but here's what's happening: I'm
parsing 2 RSS feeds when a page loads with MX's xmlparse function.
First thing I noticed was that even though the files were local, it
wasn't very quick. I put some trace code in and noticed that the first
time the xmlparse
And while we're on the topic: are there better alternatives to MX's
native XML support?
You can call a Java parser directly and do pretty much whatever you want
with it...
BTW I have an old quote on this:
I have yet to come across an XML system where the true performance
bottleneck is XML
Foti [mailto:[EMAIL PROTECTED]
Sent: Monday, October 13, 2003 9:30 AM
To: CF-Talk
Subject: Re: Odd XML parsing behavior
And while we're on the topic: are there better alternatives to MX's
native XML support?
You can call a Java parser directly and do pretty much whatever you want
Critz wrote:
using cfmx, I am trying to parse this feed:
http://www.bmezine.com/newsfeed/bmenews.rss
but i keep getting errors. Anyone mind having a quick gander?
Download Mozilla (http://www.mozilla.org/), install the Checky toolbar
(http://checky.mozdev.org/) and you have a few
Sean A Corfield wrote:
Shannon's put an RSS feed on his site? That's awesome - I must
subscribe to it! (Once he's fixed those darn links!!! :)
It's interesting to see how RSS is cropping up on non-IT / non-news
sites. Anyone got other interesting examples?
University library here has
oi CF-Talk,!!
using cfmx, I am trying to parse this feed:
http://www.bmezine.com/newsfeed/bmenews.rss
but i keep getting errors. Anyone mind having a quick gander?
ta
Crit
---
[This E-mail scanned for viruses by Declude Virus]
The in link is not valid XML. Should be amp; even in a URL.
-Original Message-
From: Critz [mailto:[EMAIL PROTECTED]
Sent: Thursday, 5 June 2003 2:12 p.m.
To: CF-Talk
Subject: xml parsing
oi CF-Talk,!!
using cfmx, I am trying to parse this feed:
http://www.bmezine.com
's are not encoded properly in the xml file.
I hate hate hate people who don't properly encode xml...grrr. I almost
wish there was a switch to make MX less anal about proper XML. There
is just so much bad XML out there :/
btw...if you can get it, I reccomend XMLSpy. Usually it can detect
It's not you or cfmx - it's the feed. The values should be xml-proofed (url
encoded for those long URL strings with ampersands).
-mark
-Original Message-
From: Critz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 9:12 PM
To: CF-Talk
Subject: xml parsing
oi CF-Talk,!!
using
Sent: Wednesday, June 04, 2003 10:59 PM
TW To: CF-Talk
TW Subject: Re: xml parsing
TW oi Matthew!!
TW doesn't look like it. I can view the file in IE. and .NET Studio shows
TW the data from it properly. :(
TW Crit
TW
TW Wednesday, June 4, 2003, 10:49:33 PM
parsing
you must have an oi (insert name here)!! key on your keyboard ;)
tony
-Original Message-
From: Critz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 10:59 PM
To: CF-Talk
Subject: Re: xml parsing
oi Matthew!!
doesn't look like it. I can view the file in IE
but at least it's not Outlook.
-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED]
Sent: Thursday, 5 June 2003 3:02 p.m.
To: CF-Talk
Subject: RE: xml parsing
you must have an oi (insert name here)!! key on your keyboard ;)
tony
-Original Message-
From: Critz
I got this error on my Linux box.
XML Parsing Error: not well-formed
Location: http://www.bmezine.com/newsfeed/bmenews.rss
Line Number 14, Column 97:
Rick
-Original Message-
From: Matthew Walker [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 10:06 PM
To: CF-Talk
Subject: RE
Shannon's put an RSS feed on his site? That's awesome - I must
subscribe to it! (Once he's fixed those darn links!!! :)
It's interesting to see how RSS is cropping up on non-IT / non-news
sites. Anyone got other interesting examples?
On Wednesday, Jun 4, 2003, at 19:11 US/Pacific, Critz
oi Mark!!
yeap, cheers. that is why i was getting the error. I still had an xmlformat() on the
variable. I had
read that it escapes what is needed, and when i first threw it in there it allowed me
to get past my
other errors... so i thought it was the correct thing.
preciate the look. thanks
).
MAKC -mark
MAKC -Original Message-
MAKC From: Critz [mailto:[EMAIL PROTECTED]
MAKC Sent: Wednesday, June 04, 2003 9:12 PM
MAKC To: CF-Talk
MAKC Subject: xml parsing
MAKC oi CF-Talk,!!
MAKC using cfmx, I am trying to parse this feed:
MAKC http://www.bmezine.com/newsfeed/bmenews.rss
This might be white space at the start of the XML (before ?xml
version=1.0?). Don't have any.
-Original Message-
From: Critz [mailto:[EMAIL PROTECTED]
Sent: Thursday, 5 June 2003 2:44 p.m.
To: CF-Talk
Subject: Re: xml parsing
oi Mark!!
ok, I am/have gotten past
?). Don't have any.
-Original Message-
From: Critz [mailto:[EMAIL PROTECTED]
Sent: Thursday, 5 June 2003 2:44 p.m.
To: CF-Talk
Subject: Re: xml parsing
oi Mark!!
ok, I am/have gotten past that using xmlformat on it... but it says
document root
element is missing. I am
trying
you must have an oi (insert name here)!! key on your keyboard ;)
tony
-Original Message-
From: Critz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 10:59 PM
To: CF-Talk
Subject: Re: xml parsing
oi Matthew!!
doesn't look like it. I can view the file in IE. and .NET Studio
not Outlook.
-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED]
Sent: Thursday, 5 June 2003 3:02 p.m.
To: CF-Talk
Subject: RE: xml parsing
you must have an oi (insert name here)!! key on your keyboard ;)
tony
-Original Message-
From: Critz [mailto:[EMAIL PROTECTED
Critz,
The snippet below validates ok so it should load ok. I always save these in
a file and use IE to display them - or (as has been suggested) use XML spy.
Tell me how you used XMLformat to solve the problem? If the feed is not in
your control I'm not sure how you could effectively do that.
Hello All,
I am trying to implement the USPS API tool on our website. It requires that we parse
an XML string that is returned back to us via an http get call.
I think everything is ok up to the point where i have to parse the result. I get the
following error:
When you look at the content of address in the actual xml returned, is
it null? If so, that is the problem. CF can not handle nulls returned
from a COM object. SelectSingleNode() returns null if the element is
blank.
--
jon
mailto:[EMAIL PROTECTED]
Thursday, February 20, 2003, 5:51:06 PM, you
:[EMAIL PROTECTED]]
Sent: Thursday, February 20, 2003 6:21 PM
To: CF-Talk
Subject: Re: XML parsing using CF5
When you look at the content of address in the actual xml returned, is
it null? If so, that is the problem. CF can not handle nulls returned
from a COM object. SelectSingleNode() returns null
: jon hall [mailto:[EMAIL PROTECTED]]
A Sent: Thursday, February 20, 2003 6:21 PM
A To: CF-Talk
A Subject: Re: XML parsing using CF5
A When you look at the content of address in the actual xml returned, is
A it null? If so, that is the problem. CF can not handle nulls returned
A from a COM object
I read the very same article and tried using Address.text var, but then i got the
following error:
---0---0---0---0---0---0---0---0---0---0---0---0
Error Diagnostic Information
An error occurred while evaluating the expression:
#address.text#
Error near line 48, column 13.
Seeing as I'm sitting here waiting for a client to get done having
dinner so that we can work even later (blah...) I tested this and it
worked for me. I haven't used the getElementsByTagName method before,
and generally use selectNodes and XSL to get my nodelist.
Theoretically getElementsByTagName
Hey Jon,
worked wonderfully! Thanks a lot!
andres
-Original Message-
From: jon hall [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 20, 2003 7:16 PM
To: CF-Talk
Subject: Re: XML parsing using CF5
Seeing as I'm sitting here waiting for a client to get done having
dinner so that we
i'm trying to read in an XML file to do some manipulation with it -
Using CFFile it works fine:
cffile action=read file=#request.pathtoXML#\#request.XMLfilename#
variable=application.blogXML
but if i want to avoid a CFFILE call I could use CFSAVECONTENT eg;
cfsavecontent
-Talk
Subject: XML parsing error...
i'm trying to read in an XML file to do some manipulation with it -
Using CFFile it works fine:
cffile action=read file=#request.pathtoXML#\#request.XMLfilename#
variable=application.blogXML
but if i want to avoid a CFFILE call I could use CFSAVECONTENT eg
I'm getting to the point where I'm starting to depend more and more on
content providers and XML. I wanted to get opinions on server side XML
parsing solutions. How is the MS one? Are there better ones?
Many thanks :)
~~
Structure your
You might find this useful in your quest:
http://www.siteobjects.com/examples/soxml/index.cfm
Joseph DeVore
VeloxWeb Technologies
-Original Message-
From: Carlisle, Eric [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 26, 2001 12:14 PM
To: CF-Talk
Subject: Quasi OT: XML Parsing
www.cfdev.com has one
Gary
- Original Message -
From: Carlisle, Eric [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, October 26, 2001 3:13 PM
Subject: Quasi OT: XML Parsing solutions
I'm getting to the point where I'm starting to depend more and more on
content
/
-Original Message-
From: Carlisle, Eric [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 26, 2001 3:14 PM
To: CF-Talk
Subject: Quasi OT: XML Parsing solutions
I'm getting to the point where I'm starting to depend more and more on
content providers and XML. I wanted to get opinions
The article in CFDJ has us instantiating a COM object in order to parse
the XML, but COM is not supported on UNIX. How do we do this on UNIX?
Willy
~~
Your ad could be here. Monies from ads go to support these lists and provide more
resources
The article in CFDJ has us instantiating a COM object in
order to parse the XML, but COM is not supported on UNIX.
How do we do this on UNIX?
I haven't done this myself, but there are some Java XML parsers which you
can automate through CFOBJECT, or by writing a Java CFX to work as a
CFX_XMLParser - http://www.cfdev.com/xml (written in java)
-Original Message-
From: Willy Ray [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 25, 2001 7:07 PM
To: CF-Talk
Subject: XML parsing for UNIX
The article in CFDJ has us instantiating a COM object in order to parse
the XML
97 matches
Mail list logo