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
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
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
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
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
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
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
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
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
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
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
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
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
%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
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
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
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
17 matches
Mail list logo