You could put all of the properties you want into a structure and then copy
the structure into the session variable.

Have a look at CF_XMLPARSE on
http://www.siteobjects.com/index.cfm?fuseAction=showProducts for a really
good XML tag that puts a document into a structure.

Paul

> -----Original Message-----
> From: DeVoil, Nick [mailto:[EMAIL PROTECTED]]
> Sent: 06 October 2000 16:32
> To: CF-Talk
> Subject: CFOBJECT & Sessions
>
>
> I'm using a COM object to parse an XML doc:
>
>   <cfobject action="CREATE" class="Microsoft.XMLDom" type="COM"
> name="xmlDoc">
>
> That works fine as long as I only have one page.
>
> But once I've loaded the document, I want to keep it in memory
> across pages. I put it in a session variable:
>
>   Session.xmlDoc = xmlDoc;
>
> and in the next page, when I do
>
>   <cfif isDefined("Session.xmlDoc") EQ "true">
>
> I get the right answer. BUT, I can't access any of the object's
> properties.
>
>   Error resolving parameter XMLDOC.SAVE
>   The object SAVE is not present in the scope named XMLDOC
>
> Is there any way round this?
>
> Grateful for any help
>
> Nick
>
>
>
>
> **********************************************************************
> Information in this email is confidential and may be privileged.
> It is intended for the addressee only. If you have received it in error,
> please notify the sender immediately and delete it from your system.
> You should not otherwise copy it, retransmit it or use or disclose its
> contents to anyone.
> Thank you for your co-operation.
> **********************************************************************
> ------------------------------------------------------------------
> ------------
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.


------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to