RE: XML parsing in ColdFusion

2004-09-03 Thread Ian Skinner
I have never tried to do it. I am hard pressed to think of why I would ever want to maybe MM developers were the same way. Any chance you could give me a real world application for this? Maybe I am missing out on some revolutionary concept :) Adam H Never tried to copy a node from one XML docum

Re: XML parsing in ColdFusion

2004-09-03 Thread Adam Haskell
I have never tried to do it. I am hard pressed to think of why I would ever want to maybe MM developers were the same way. Any chance you could give me a real world application for this? Maybe I am missing out on some revolutionary concept :) Adam H On Thu, 2 Sep 2004 13:01:42 -0700, Rob <[EMAIL

RE: XML parsing in ColdFusion SOLVED (mostly)

2004-09-02 Thread Ian Skinner
Using some information I found here "Use XSLT to Merge XML Documents" [http://www.fawcette.com/archives/premier/mgznarch/xml/2001/06jun01/rj0103/rj0103.asp], I got this to work in a more natively XMLish way without relying on brute force deep copying or possibly depreciated hidden functions.   I'm

Re: XML parsing in ColdFusion

2004-09-02 Thread Rob
It really is that difficult http://www-106.ibm.com/developerworks/xml/library/x-tipmvdom.html On Thu, 2 Sep 2004 12:39:53 -0700, Ian Skinner <[EMAIL PROTECTED]> wrote: > Thanks, that worked, now I just need to decide if I want to use undocumented features or an UDF. > > Is this really supposed t

RE: XML parsing in ColdFusion

2004-09-02 Thread Ian Skinner
Thanks, that worked, now I just need to decide if I want to use undocumented features or an UDF. Is this really supposed to be this difficult?  Or am I just being difficult again? -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA "C code. C code run. R

RE: XML parsing in ColdFusion

2004-09-02 Thread Adrian Lynch
This seems to do the trick, except for the id attribute... Ian male Joe male John male Sue female Ade [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Re: XML parsing in ColdFusion

2004-09-02 Thread Adam Haskell
> populate the second. > > Ade > > -Original Message- > From: Ian Skinner [mailto:[EMAIL PROTECTED] > Sent: 02 September 2004 20:04 > To: CF-Talk > Subject: RE: XML parsing in ColdFusion > > I'm still not getting this to work.  I tried usi

Re: XML parsing in ColdFusion

2004-09-02 Thread Ian Sheridan
t;[EMAIL PROTECTED]> Date: Thu, 2 Sep 2004 12:04:07 -0700 Subject: RE: XML parsing in ColdFusion To: CF-Talk <[EMAIL PROTECTED]> I'm still not getting this to work.  I tried using what you provided, but I'm only getting errors like the following. "WRONG_DOCUMENT_ERR: That n

Re: XML parsing in ColdFusion

2004-09-02 Thread Massimo, Tiziana e Federica
> "WRONG_DOCUMENT_ERR: That node doesn't belong in this document." CF, under the hood, use DOM APIs. With DOM every node has an its owner document and you can't move it around across different documents. The solution is to first "clone" the node and move the resulting clone (removing the original

RE: XML parsing in ColdFusion

2004-09-02 Thread Adrian Lynch
t: RE: XML parsing in ColdFusion I'm still not getting this to work.  I tried using what you provided, but I'm only getting errors like the following. "WRONG_DOCUMENT_ERR: That node doesn't belong in this document." "Error casting an object of type to an incompat

RE: XML parsing in ColdFusion

2004-09-02 Thread Ian Skinner
I'm still not getting this to work.  I tried using what you provided, but I'm only getting errors like the following. "WRONG_DOCUMENT_ERR: That node doesn't belong in this document." "Error casting an object of type to an incompatible type. This usually indicates a programming error in Java, alth

RE: XML parsing in ColdFusion

2004-09-02 Thread Adrian Lynch
Found it... XML: Adrian Lynch 3232323 232323232 CF: file="#ExpandPath('.')#\contacts.xml"> XmlElemNew(VARIABLES.xmlContacts, "contact")> VARIABLES.contacts[VARIABLES.newContactPosition]> You should end up with a new contact element in the dump, writin

RE: XML parsing in ColdFusion

2004-09-02 Thread Ian Skinner
That's what I'm experimenting with now. I'm getting errors like this at the moment "Invalid XML identifier encountered.  The identifier [EMAIL PROTECTED] is not a valid XML identifier." This just doesn't tell ME much that I can use. -- Ian Skinner Web Programmer BloodSource www.Blo

RE: XML parsing in ColdFusion

2004-09-02 Thread Adrian Lynch
Have you looked at using XMLElemNew()? I remember it being not very intuitive but you'll get there in the end. I have some code somewhere which I can't find at the moment but if it appears I'll post it... Ade -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: 02 Septembe