RE: Coldfusion and XML

2004-05-07 Thread Dave Watts
> Can this be done using CF5 as opposed to MX?

You can generate XML with CF 5 by either generating raw text that happens to
be well-formed XML, or by using a third-party XML parser to generate XML for
you.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Coldfusion and XML

2004-05-07 Thread David Ashworth
Thanks for the tips so far

 
Can this be done using CF5 as opposed to MX?

 
Thanks,

Dave

-Original Message-
From: Thomas Chiverton [mailto:[EMAIL PROTECTED] 
Sent: 07 May 2004 15:55
To: CF-Talk
Subject: Re: Coldfusion and XML

On Friday 07 May 2004 14:37 pm, Tony Weeg wrote:
> look @  to create the xml.

Why not use the proper XML types and functions CF gives you ?

-- 
Tom Chiverton 
Advanced ColdFusion Programmer

Tel: +44(0)1749 834997
email: [EMAIL PROTECTED]
BlueFinger Limited
Underwood Business Park
Wookey Hole Road, WELLS. BA5 1AF
Tel: +44 (0)1749 834900
Fax: +44 (0)1749 834901
web: www.bluefinger.com
Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple
Quay, BRISTOL. BS1 6EG.
*** This E-mail contains confidential information for the addressee
only. If you are not the intended recipient, please notify us
immediately. You should not use, disclose, distribute or copy this
communication if received in error. No binding contract will result from
this e-mail until such time as a written document is signed on behalf of
the company. BlueFinger Limited cannot accept responsibility for the
completeness or accuracy of this message as it has been transmitted over
public networks.*** 
  _
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Coldfusion and XML

2004-05-07 Thread Thomas Chiverton
On Friday 07 May 2004 14:37 pm, Tony Weeg wrote:
> look @  to create the xml.

Why not use the proper XML types and functions CF gives you ?

-- 
Tom Chiverton 
Advanced ColdFusion Programmer

Tel: +44(0)1749 834997
email: [EMAIL PROTECTED]
BlueFinger Limited
Underwood Business Park
Wookey Hole Road, WELLS. BA5 1AF
Tel: +44 (0)1749 834900
Fax: +44 (0)1749 834901
web: www.bluefinger.com
Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple
Quay, BRISTOL. BS1 6EG.
*** This E-mail contains confidential information for the addressee
only. If you are not the intended recipient, please notify us
immediately. You should not use, disclose, distribute or copy this
communication if received in error. No binding contract will result from
this e-mail until such time as a written document is signed on behalf of
the company. BlueFinger Limited cannot accept responsibility for the
completeness or accuracy of this message as it has been transmitted over
public networks.***
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Coldfusion and XML

2004-05-07 Thread Nick de Voil
Dave

> I think I need to send an XML feed back to a client from the server, the
> client machine is a touch screen that will remotely make a call to, I
> think, a file on our webserver that will run a query on the database and
> return the results - which I believe have to be in the form of an XML
> Feed.

Not stupid or wrong but certainly possible - the touch screen can contain a
link to a ColdFusion template which generates an XML document.

Nick
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Coldfusion and XML

2004-05-07 Thread Tony Weeg
look @  to create the xml.

maybe look @ cfhttp to make the call to the server to get the xml generated?

maybe look @ using a cfmx webservice, and have the browser on the touch
screen make a request to the webservice.

some ideas?
tony

-Original Message-
From: David Ashworth [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 07, 2004 9:27 AM
To: CF-Talk
Subject: Coldfusion and XML

Forgive me if this is a very stupid question or in some way wrong,

 
However,

 
I think I need to send an XML feed back to a client from the server, the
client machine is a touch screen that will remotely make a call to, I think,
a file on our webserver that will run a query on the database and return the
results - which I believe have to be in the form of an XML Feed.

 
Is this possible, can someone give me some pointers?

 
Thanks,

 
Dave
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: ColdFusion and XML

2004-04-16 Thread Dave Watts
> I generated a cfm page that process a xml document that 
> is submitted in a form. The problem is the XML document 
> is encoded and it causes my cfm page to error out. Does 
> anyone know how to decode an encoded xml page?

By default, when you submit an HTML form with METHOD="POST", the data sent
to the server is URL-encoded. Basically, any characters not allowed in a URL
are escaped with their corresponding escape sequences. Spaces, for example,
are replaced with plus signs or "%20". Normally, the server can easily
decode that, so you don't have to worry about it.

XML contains lots of stuff you can't put in a URL, and I imagine CF is
simply getting confused about how to decode it. There's an IE-specific
character encoding issue described here:

http://www.biglist.com/lists/xsl-list/archives/200305/msg01144.html

You do have some options, though. One option would be to use the
GetHTTPRequestData function to return a structure containing the various
parts of the HTTP request, and go through the "content" key and manually
decode characters as appropriate. Another option might be to specify
ENCTYPE="text/xml" instead of using the default
ENCTYPE="application/x-www-urlencoded" within your HTML form tag. I will
note that I don't know how well either of these options would work, but
that's where I'd start if I were you.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: ColdFusion and XML

2004-04-16 Thread Douglas.Knudsen
if you are passing this in a form var, ala 
  access the data in the XML document?

  --
  Howard Fore, Web Developer, Professional Career Development Institute
  [EMAIL PROTECTED], 770-729-8400, x5258

  On Apr 16, 2004, at 7:42 AM, chad wrote:

  > I generated a cfm page that process a xml document that is submitted 
  > in a form. The problem is the XML document is encoded and it causes my 
  > cfm page to error out. Does anyone know how to decode an encoded xml 
  > page? 
  _
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: ColdFusion and XML

2004-04-16 Thread chad
I am not sure what type of encoding. The Xml I get has this.


  - Original Message - 
  From: Howard Fore 
  To: CF-Talk 
  Sent: Friday, April 16, 2004 8:11 AM
  Subject: Re: ColdFusion and XML

  What kind of encoding? Do you mean that the XML document you posted is 
  the value of a form element, a textarea for instance, and you'd like to 
  access the data in the XML document?

  --
  Howard Fore, Web Developer, Professional Career Development Institute
  [EMAIL PROTECTED], 770-729-8400, x5258

  On Apr 16, 2004, at 7:42 AM, chad wrote:

  > I generated a cfm page that process a xml document that is submitted 
  > in a form. The problem is the XML document is encoded and it causes my 
  > cfm page to error out. Does anyone know how to decode an encoded xml 
  > page?
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: ColdFusion and XML

2004-04-16 Thread Howard Fore
What kind of encoding? Do you mean that the XML document you posted is 
the value of a form element, a textarea for instance, and you'd like to 
access the data in the XML document?

--
Howard Fore, Web Developer, Professional Career Development Institute
[EMAIL PROTECTED], 770-729-8400, x5258

On Apr 16, 2004, at 7:42 AM, chad wrote:

> I generated a cfm page that process a xml document that is submitted 
> in a form. The problem is the XML document is encoded and it causes my 
> cfm page to error out. Does anyone know how to decode an encoded xml 
> page?
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: ColdFusion and XML

2004-04-15 Thread chad
This is the xml I am receiving. This xml is not generated by me. It is being sent to me via a form. My cfm page handles the xml that comes in. 



 
  000
  18647
  12952
  0
  0
  0
  3
  0
  0
  
  0
  0
  3
  0
  3
 


  - Original Message - 
  From: Paul Kenney 
  To: CF-Talk 
  Sent: Thursday, April 15, 2004 1:06 PM
  Subject: RE: ColdFusion and XML

  How did you encode the XML?

  Paul Kenney
  [EMAIL PROTECTED]
  916-212-4359 

  > -Original Message-
  > From: chad [mailto:[EMAIL PROTECTED]
  > Sent: Thursday, April 15, 2004 6:33 AM
  > To: CF-Talk
  > Subject: ColdFusion and XML
  > 
  > 
  > I generated a cfm page that process a xml document that is 
  > submitted in a form. The problem is the XML document is 
  > encoded and it causes my cfm page to error out. Does anyone 
  > know how to decode an encoded xml page?
  > 
  > 
  > 
  > 
  > 
  >
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: ColdFusion and XML

2004-04-15 Thread Paul Kenney
How did you encode the XML?

Paul Kenney
[EMAIL PROTECTED]
916-212-4359 

> -Original Message-
> From: chad [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 15, 2004 6:33 AM
> To: CF-Talk
> Subject: ColdFusion and XML
> 
> 
> I generated a cfm page that process a xml document that is 
> submitted in a form. The problem is the XML document is 
> encoded and it causes my cfm page to error out. Does anyone 
> know how to decode an encoded xml page?
> 
> 
> 
> 
> 
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]