May I ask why you are ditching the xml declaration before parsing the
xml? Ie. these lines:
cfset nodeToReplace = mid(XMLText, 1, evaluate(find(?, XMLText) + 1))
cfset XMLText = replaceNoCase(XMLText, nodeToReplace, , ALL)
I only had those lines in because I had copied the code from another
Additionally, the file comes in with no file extension. If I save out the file
and copy it to my server, view it with firefox, it shows the internal data no
problem. Is this a mime-type issue? And if so, is there anything I can do
about that? Yeah, I'm reaching at this point.
Here's the
Hm, it certainly sounds like it could be a mime-type issue. However,
the following works for me without hitch (using CF8.1 on Windows
Server 2003 w/ IIS 6):
cfset parsed =
XmlParse(http://sphumd.blogspot.com/feeds/posts/default/6200705617846171475;)
/
cfdump var=#parsed#
Are you on CF7?
Dominic
sorry if this comes through multiple times, I had problems posting.
Are you on CF7?
I'm on CF 7.02. I don't know if that'd be the difference.
cfset parsed =
XmlParse(http://sphumd.blogspot.com/feeds/posts/default/6200705617846171475;)
/
cfdump var=#parsed#
yeah, that worked fine for me too
How frustrating, there's clearly a character encoding issue with using
XmlParse in this way (I see it too in CF8). I have no problems using
cfhttp with CF8 though.
Here's a long shot - revert back to cfhttp and try writing to file
before parsing (clearly horrid but may be it'll work):
cfhttp
Here's a long shot - revert back to cfhttp and try writing to file
before parsing (clearly horrid but may be it'll work):
No, not sure why but that didn't test out. Looked good at first, but I
started receiving the original error again on several posts. sigh It looks
like what is suggested
Here's a long shot - revert back to cfhttp and try writing to file
before parsing (clearly horrid but may be it'll work):
No, not sure why but that didn't test out. Looked good at first, but I
started receiving the original error again on several posts. sigh It looks
like what is suggested
Weird thing to me is that the cfhttp/xmlparse combo works on an external file
cffunction of someone else's that I'm using.
http://sph.umd.edu/includes/feedToQuery.txt
This is the original code that I used as an example. I use it to read in all
my other feeds just fine.
daniel
http://sph.umd.edu/news/blog2.cfm
I am recreating a blog. I am able to read in several xml files and
populate the content. To do this, I copied code from other
functionality and it's using CFHTTP. In the blog's functionality,
I'm supposed to be able to click on the title of a posting to
May I ask why you are ditching the xml declaration before parsing the
xml? Ie. these lines:
cfset nodeToReplace = mid(XMLText, 1, evaluate(find(?, XMLText) + 1))
cfset XMLText = replaceNoCase(XMLText, nodeToReplace, , ALL)
If you are on CF7 or greater, and there isn't a good reason to parse
out
10 matches
Mail list logo