RE: XML load

2004-07-27 Thread Shahzad.Butt
no contents in the browser however if you just open the URL in the browser you can see the file. Is there anything I am missing or doing wrong? Shaz _ From: S. Isaac Dealey [mailto:[EMAIL PROTECTED] Sent: 26 July 2004 18:21 To: CF-Talk Subject: Re: XML load You probably will need to do so

RE: XML load

2004-07-27 Thread S . Isaac Dealey
Following is the code snip It shows no contents in the browser however if you just open the URL in the browser you can see the file. Is there anything I am missing or doing wrong? Make sure that code isn't inside a cfsilent tag pair. Even if the cfsilent tags are in another template that

Re: XML load

2004-07-27 Thread Adam Haskell
le. Is there anything I am missing or doing wrong? Shaz _ From: S. Isaac Dealey [mailto:[EMAIL PROTECTED] Sent: 26 July 2004 18:21 To: CF-Talk Subject: Re: XML load You probably will need to do something like this to parse it cfxml variable=myxml rootelement#mypacket#/rootel

RE: XML load

2004-07-27 Thread Pascal Peters
I ran your code and it worked perfectly. You don't even need the rootelement tag (there is one). Make sure you don't suppress the output somehow. Pascal -Original Message- From: Shahzad.Butt [mailto:[EMAIL PROTECTED] Sent: 27 July 2004 12:07 To: CF-Talk Subject: RE: XML load

RE: XML load

2004-07-27 Thread Shahzad.Butt
Thanks everyone. I think it must be the CFMX version causing issues because I have run the code on new server (with fresh CFMX installation) and it works fine. Thanks Shaz _ From: Pascal Peters [mailto:[EMAIL PROTECTED] Sent: 27 July 2004 13:17 To: CF-Talk Subject: RE: XML load I ran

XML load

2004-07-26 Thread Shahzad.Butt
Hi How can I load an XML file and display the contents on my CFM page i.e. there is an XML file at (lets say http://www.abc.com/test.xml). How can I get the data from this file and loop over a particular item in my CFM page? Thanks Shaz

Re: XML load

2004-07-26 Thread Thomas Chiverton
On Monday 26 Jul 2004 15:09 pm, Shahzad.Butt wrote: there is an XML file at (lets say http://www.abc.com/test.xml). How can I get the data from this file and loop over a particular item in my CFM See cfhttp, xmlparse() and xmlsearch(). -- Tom Chiverton Advanced ColdFusion Programmer [Todays

Re: XML load

2004-07-26 Thread S . Isaac Dealey
On Monday 26 Jul 2004 15:09 pm, Shahzad.Butt wrote: there is an XML file at (lets say http://www.abc.com/test.xml). How can I get the data from this file and loop over a particular item in my CFM See cfhttp, xmlparse() and xmlsearch(). also XMLTranslate() (?) I think that's the name of the

Re: XML load

2004-07-26 Thread Thomas Chiverton
On Monday 26 Jul 2004 15:25 pm, S. Isaac Dealey wrote: also XMLTranslate() (?) I think that's the name of the XSLT function... Well, yes :-) If the question hadn't so specific, I'd have pointed at http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/functi20.htm#wp3468770 and

Re: XML load

2004-07-26 Thread S . Isaac Dealey
XMLTransform ... duh... :) You can see how much I've used it. :) On Monday 26 Jul 2004 15:25 pm, S. Isaac Dealey wrote: also XMLTranslate() (?) I think that's the name of the XSLT function... Well, yes :-) If the question hadn't so specific, I'd have pointed at

RE: XML load

2004-07-26 Thread Shahzad.Butt
Will XMLParse() work on CF5.0? currently its giving an error on CF5.0. On CFMX6.1 it gives error Document root element is missing. Any ideas on that? Shaz _ From: S. Isaac Dealey [mailto:[EMAIL PROTECTED] Sent: 26 July 2004 15:47 To: CF-Talk Subject: Re: XML load XMLTransform

RE: XML load

2004-07-26 Thread Ben Forta
XMLParse() was introduced in CFMX, CF5 did not have XML processing built in. --- Ben _ From: Shahzad.Butt [mailto:[EMAIL PROTECTED] Sent: Monday, July 26, 2004 10:52 AM To: CF-Talk Subject: RE: XML load Will XMLParse() work on CF5.0? currently its giving an error on CF5.0. On CFMX6.1

Re: XML load

2004-07-26 Thread Thomas Chiverton
On Monday 26 Jul 2004 15:51 pm, Shahzad.Butt wrote: On CFMX6.1 it gives error Document root element is missing. It probably is. What are the first few lines of the XML string ? -- Tom Chiverton Advanced ColdFusion Programmer [Todays Threads] [This Message] [Subscription] [Fast

RE: XML load

2004-07-26 Thread Shahzad.Butt
%208RZ##Data Items=40 Item id=29512157 seq=0 description=1 Westgate Court Waltham Cross EN8 8OL / Item id=29512196 seq=39 description=40 Westgate Court Waltham Cross EN8 8OL / /Data /PostcodeAnywhere _ From: Thomas Chiverton [mailto:[EMAIL PROTECTED] Sent: 26 July 2004 16:03 To: C

Re: XML load

2004-07-26 Thread Thomas Chiverton
On Monday 26 Jul 2004 16:10 pm, Shahzad.Butt wrote: http://services.postcodeanywhere.co.uk/xml.aspx?account_code=JJFAS1 license_code=XE47-EP93-RD59-GW24action=""> e=EN8%208RZ## That isn't returning valid XML. Try looking at something like http://www.stg.brown.edu/service/xmlvalid/ You

RE: XML load

2004-07-26 Thread Dave Watts
Will XMLParse() work on CF5.0? currently its giving an error on CF5.0. No. It was introduced with CFMX. On CFMX6.1 it gives error Document root element is missing. My initial guess would be that your document isn't well-formed, and is missing a root element. But you'd have to post your XML

Re: XML load

2004-07-26 Thread S . Isaac Dealey
You probably will need to do something like this to parse it cfxml variable=myxml rootelement#mypacket#/rootelement /cfxml I believe (though I could be mistaken) that error indicates that there are multiple tag-pairs at the root. Valid XML must have only one tag-pair at the root with all other