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
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
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
That's what I'm experimenting with now.
cfset doc2.root.xmlChildren[99] = xmlElemNew(doc2, doc1.root.xmlChildren[1])
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
Found it...
XML:
?xml version=1.0 encoding=UTF-8?
contacts
contact
nameAdrian Lynch/name
numbers
number type=mobile3232323/number
number type=home232323232/number
/numbers
/contact
/contacts
CF:
cffile action="" variable=contactsFile
file=#ExpandPath('.')#\contacts.xml
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, although
: 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 incompatible type. This usually
indicates
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 node
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 node doesn't belong in this document.
Error casting an object of type
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 using what you provided, but
I'm only getting errors like the following
This seems to do the trick, except for the id attribute...
cfxml variable=doc1
root
member id=10
nameIan/name
sexmale/sex
/member
/root
/cfxml
cfxml variable=doc2
root
member id=1
nameJoe/name
sexmale/sex
/member
member id=2
nameJohn/name
sexmale/sex
/member
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
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 to be
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
14 matches
Mail list logo