RE: XMl serching and inserting

2005-02-23 Thread Adrian Lynch
Being a bit laszy here but does anyone know if in CF7 you can now insert a
branch/node from one XML doc into another without getting an error?

Ade

-Original Message-
From: Alex Sherwood [mailto:[EMAIL PROTECTED]
Sent: 23 February 2005 13:29
To: CF-Talk
Subject: Re: XMl serching and inserting


Read the docs for "Using XML" in the MM "Developing Applications"
section of the docs. Very simple, straightforward examples that will
show you exatly what you need.

--
ALEX

Duncan wrote:

>Hi everyone,
>
>I wonder if anyone can point me in the right direction to do the
>following in MX 7
>
>I need to open an XML doc, search for an element, and if its not there
>insert it without disturbing the rest of the doc.
>
>Heres the structure (its my fusebox.xml):
>
>
>   
>   
>   
>
>
>I am looking to chuck in circuits dynamically.
>
>Thanks!
>
>
>




~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:196089
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: XMl serching and inserting

2005-02-23 Thread Alex Sherwood
Read the docs for "Using XML" in the MM "Developing Applications" 
section of the docs. Very simple, straightforward examples that will 
show you exatly what you need.

--
ALEX

Duncan wrote:

>Hi everyone,
>
>I wonder if anyone can point me in the right direction to do the
>following in MX 7
>
>I need to open an XML doc, search for an element, and if its not there
>insert it without disturbing the rest of the doc.
>
>Heres the structure (its my fusebox.xml): 
>
>
>   
>   
>   
>
>
>I am looking to chuck in circuits dynamically.
>
>Thanks!
>
>  
>


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:196087
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: XMl serching and inserting

2005-02-22 Thread Barney Boisvert
If you're creating your circuit.xml files from the DB, why can't you
use the same mechanism to create fusebox.xml as well?

If you really do need to inject XML elements like that, I believe
you'd use the xmlElemNew() function:
http://livedocs.macromedia.com/coldfusion/7/htmldocs/0667.htm#139471,
though I can't say that I've ever done it.

cheers,
barneyb


On Wed, 23 Feb 2005 16:12:40 +1100, Duncan <[EMAIL PROTECTED]> wrote:
> With regards the circuits - I am creating my circuits and circuit.xml
> files on application start up from a db, so I want to be as precise as
> possible and chuck in the circuits while I create the circuit.xml
> files.
> 
> Duncan
> 

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:196054
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: XMl serching and inserting

2005-02-22 Thread Duncan
With regards the circuits - I am creating my circuits and circuit.xml
files on application start up from a db, so I want to be as precise as
possible and chuck in the circuits while I create the circuit.xml
files.

Duncan


On Tue, 22 Feb 2005 20:22:26 -0800, Barney Boisvert <[EMAIL PROTECTED]> wrote:
> If you're just doing circuits, you're better off screwing with the
> in-memory structure, rather than the XML.  Just load all your circuits
> in the XML, and then delete the ones you don't want from the
> application.fusebox structure in fusebox.init.cfm.
> 
> Speaking of FB4 on CF7, have you run into any issues after the
> upgrade?  No issues came up during Blackstone beta cycle, but
> pre-release testing is never 100% thourough.
> 
> cheers,
> barneyb
> 
> On Wed, 23 Feb 2005 13:55:24 +1100, Duncan <[EMAIL PROTECTED]> wrote:
> > Hi everyone,
> >
> > I wonder if anyone can point me in the right direction to do the
> > following in MX 7
> >
> > I need to open an XML doc, search for an element, and if its not there
> > insert it without disturbing the rest of the doc.
> >
> > Heres the structure (its my fusebox.xml):
> >
> > 
> > 
> > 
> > 
> > 
> >
> > I am looking to chuck in circuits dynamically.
> >
> > Thanks!
> >
> > --
> > Duncan I Loxton
> > www.mcgrath.com.au
> > www.sixfive.co.uk
> > [EMAIL PROTECTED]
> 
> --
> Barney Boisvert
> [EMAIL PROTECTED]
> 360.319.6145
> http://www.barneyb.com/
> 
> Got Gmail? I have 50 invites.
> 
> 

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:196045
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: XMl serching and inserting

2005-02-22 Thread Duncan
Barney - no problems thus far - it was easy moving my 6.1 and FB 4
over to 7 and FB4.1 its been running fine - the only a couple of small
changes to FB to get it running.

Speaking of which I dont really know what the fusebox.init.cfm file is
for - can you point me to anything that I can read on the subject?


On Tue, 22 Feb 2005 20:22:26 -0800, Barney Boisvert <[EMAIL PROTECTED]> wrote:
> If you're just doing circuits, you're better off screwing with the
> in-memory structure, rather than the XML.  Just load all your circuits
> in the XML, and then delete the ones you don't want from the
> application.fusebox structure in fusebox.init.cfm.
> 
> Speaking of FB4 on CF7, have you run into any issues after the
> upgrade?  No issues came up during Blackstone beta cycle, but
> pre-release testing is never 100% thourough.
> 
> cheers,
> barneyb
> 
> On Wed, 23 Feb 2005 13:55:24 +1100, Duncan <[EMAIL PROTECTED]> wrote:
> > Hi everyone,
> >
> > I wonder if anyone can point me in the right direction to do the
> > following in MX 7
> >
> > I need to open an XML doc, search for an element, and if its not there
> > insert it without disturbing the rest of the doc.
> >
> > Heres the structure (its my fusebox.xml):
> >
> > 
> > 
> > 
> > 
> > 
> >
> > I am looking to chuck in circuits dynamically.
> >
> > Thanks!
> >
> > --
> > Duncan I Loxton
> > www.mcgrath.com.au
> > www.sixfive.co.uk
> > [EMAIL PROTECTED]
> 
> --
> Barney Boisvert
> [EMAIL PROTECTED]
> 360.319.6145
> http://www.barneyb.com/
> 
> Got Gmail? I have 50 invites.
> 
> 

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:196044
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: XMl serching and inserting

2005-02-22 Thread Barney Boisvert
If you're just doing circuits, you're better off screwing with the
in-memory structure, rather than the XML.  Just load all your circuits
in the XML, and then delete the ones you don't want from the
application.fusebox structure in fusebox.init.cfm.

Speaking of FB4 on CF7, have you run into any issues after the
upgrade?  No issues came up during Blackstone beta cycle, but
pre-release testing is never 100% thourough.

cheers,
barneyb

On Wed, 23 Feb 2005 13:55:24 +1100, Duncan <[EMAIL PROTECTED]> wrote:
> Hi everyone,
> 
> I wonder if anyone can point me in the right direction to do the
> following in MX 7
> 
> I need to open an XML doc, search for an element, and if its not there
> insert it without disturbing the rest of the doc.
> 
> Heres the structure (its my fusebox.xml):
> 
> 
> 
> 
> 
> 
> 
> I am looking to chuck in circuits dynamically.
> 
> Thanks!
> 
> --
> Duncan I Loxton
> www.mcgrath.com.au
> www.sixfive.co.uk
> [EMAIL PROTECTED]

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:196041
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54