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
I have two similar XML structures.I want to append a node from one structure to the other.Can somebody point out to me how I would do this in ColdFusion?I am apparently not getting the concept.
xmlDoc1 =
root
member
memberchild1
...
memberchildN
/member
/root
xmlDoc2 =
root
member
September 2004 19:10
To: CF-Talk
Subject: XML parsing in ColdFusion
I have two similar XML structures.I want to append a node from one
structure to the other.Can somebody point out to me how I would do this in
ColdFusion?I am apparently not getting the concept.
xmlDoc1 =
root
member
memberchild1
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
on="" file=#ExpandPath('.')#\contacts.xml
output=#ToString(xmlContacts)#
Let us know how you get on.
Ade
-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED]
Sent: 02 September 2004 19:10
To: CF-Talk
Subject: XML parsing in ColdFusion
I have two similar XML structures.I w
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
15 matches
Mail list logo