Re: Problem reading in XML

2008-12-05 Thread daniel kessler
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

Re: Problem reading in XML

2008-12-05 Thread daniel kessler
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

Re: Problem reading in XML

2008-12-05 Thread Dominic Watson
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

Re: Problem reading in XML

2008-12-05 Thread daniel kessler
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

Re: Problem reading in XML

2008-12-05 Thread Dominic Watson
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

Re: Problem reading in XML

2008-12-05 Thread daniel kessler
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

Re: Problem reading in XML

2008-12-05 Thread daniel kessler
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

Re: Problem reading in XML

2008-12-05 Thread daniel kessler
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

Problem reading in XML

2008-12-04 Thread Daniel Kessler
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

Re: Problem reading in XML

2008-12-04 Thread Dominic Watson
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