pls don't take this personally Ian, but what a piss-weak list that is!
All I'm saying is that it would be nice to have DOM methods -
something towards the W3C's object model standards - to do stuff like
what Nathan wants. Creating nodes, getting child nodes, arrays of
attributes, cloning, etc.
it would certainly make up for the deficiencies in CF dealing with XML
docs as arrays/structs....
eg: (all - or similar - are available in Java and .NET frameworks)
DOMNode:
getNodeName
getNodeValue
setNodeValue
getNodeType
getParentNode
replaceChild
removeChild
appendChild
hasChildNodes
getChildNodes
getFirstChild
getLastChild
getPreviousSibling
getNextSibling
getAttributes
getNamespaceURI
insertBefore
cloneNode
getElementsByTagName
getElementsByTagNameNS
setPrefix
getXML
hasAttributes
DOMDocument:
getDoctype
getImplementation
getDocumentElement
createElement
createDocumentFragment
createTextNode
createComment
createCDATASection
createProcessingInstruction
createAttribute
createAttributeNS
createElementNS
getElementById
importNode
getElementsByTagName
getElementsByTagNameNS
Hell, all of this is even do-able in Javascript (thanx to the XML 4
script sourceforge project). Why should CF be a lame duck?
On 3/17/06, Ian Skinner <[EMAIL PROTECTED]> wrote:
> Ian: your XSLT method was in response/related to this, yes?
>
> http://www.spike.org.uk/blog/index.cfm?do=blog.entry&entry=B495C724-D565-E33F-3A31D0EE819F1050
>
> I was kinda hoping (since Spike was referring origionally to CF6.1) that this
> was all sorted by now. Obviously not.
>
> anyone know what enhancements to XML the next version of CF might have? I
> know it's inefficent using the DOM but even extending the basic functionality
> would be a help - cloneNode, appendChild, etc...
>
> Umm, I'm not sure how related it is to spikes method, but it is an alternate
> to achieve the same result. I find it pretty easy to do. I combine the xml
> and xslt with ColdFusion functions, so I would guess you could call it a
> combination CF/XML/XSLT method.
>
> These are the XML functions available in CFMX7
>
> AddSOAPRequestHeader
> IsSOAPRequest
> IsXmlRoot
> XmlGetNodeType
> AddSOAPResponseHeader
> IsXML
> IsWDDX
> XmlNew
> GetSOAPRequest
> IsXmlAttribute
> ToString
> XmlParse
> GetSOAPRequestHeader
> IsXmlDoc
> XmlChildPos
> XmlSearch
> GetSOAPResponse
> IsXmlElem
> XmlElemNew
> XmlTransform
> GetSOAPResponseHeader
> IsXmlNode
> XmlFormat
> XmlValidate
>
>
> --------------
> Ian Skinner
> Web Programmer
> BloodSource
> www.BloodSource.org
> Sacramento, CA
>
> ---------
> | 1 | |
> --------- Binary Soduko
> | | |
> ---------
>
> "C code. C code run. Run code run. Please!"
> - Cynthia Dunning
>
> Confidentiality Notice: This message including any
> attachments is for the sole use of the intended
> recipient(s) and may contain confidential and privileged
> information. Any unauthorized review, use, disclosure or
> distribution is prohibited. If you are not the
> intended recipient, please contact the sender and
> delete any copies of this message.
>
>
>
>
>
> ----------------------------------------------------------
>
> You are subscribed to cfcdev. To unsubscribe, send an email to
> [email protected] with the words 'unsubscribe cfcdev' as the subject of the
> email.
>
>
>
> CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
> (www.cfxhosting.com).
>
>
>
> An archive of the CFCDev list is available at
> www.mail-archive.com/[email protected]
>
>
>
>
> ---------- Forwarded message ----------
> From: "Barry Beattie" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Date: Wed, 15 Mar 2006 19:17:44 -0800
> Subject: Re: [CFCDev] Appending XML:
> Ian: your XSLT method was in response/related to this, yes?
>
> http://www.spike.org.uk/blog/index.cfm?do=blog.entry&entry=B495C724-D565-E33F-3A31D0EE819F1050
>
> I was kinda hoping (since Spike was referring origionally to CF6.1)
> that this was all sorted by now. Obviously not.
>
> anyone know what enhancements to XML the next version of CF might
> have? I know it's inefficent using the DOM but even extending the
> basic functionality would be a help - cloneNode, appendChild, etc...
>
>
> ----------------------------------------------------------
> You are subscribed to cfcdev. To unsubscribe, send an email to
> [email protected] with the words 'unsubscribe cfcdev' as the subject of the
> email.
>
> CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
> (www.cfxhosting.com).
>
> An archive of the CFCDev list is available at
> www.mail-archive.com/[email protected]
>
>
>
>
>
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[email protected] with the words 'unsubscribe cfcdev' as the subject of the
email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
(www.cfxhosting.com).
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]