Nice one, Paul

thanks


Colm

-----Original Message-----
From: Paul Johnston [mailto:[EMAIL PROTECTED]
Sent: 17 September 2003 10:41
To: [EMAIL PROTECTED]
Subject: [ cf-dev ] Ideas for Learning XML WAS: RE: [ cf-dev ] XMLSPY
2004


> >>What do you want to do?
>
> Don't really know right now, aside from building basic
> schemas and dtd's and xml's maybe try building/invoking web
> services and testing them locally on MX, or look at examine
> some of these from amazon, basically get a better grasp of xml.

Ah!

Well in that case, I would suggest learning the basics of the DOM (Document
Object Model) and the basics of SAX although learn DOM first (because that's
the way most things are done currently).  Easiest way is to look at the
Javadocs for the Java DOM and also for SAX remembering that you can create
Java objects very easily in CFMX.

Learn Xpath and use it with ColdFusion and play around with that.

Erm... Ideas for learning more about XML:

1) create a simple XML string, get it into CF using XMLParse(string) which
creates a Document Object (not a DOM Document object unfortunately but a CF
XML Document Object). Cut and paste the below (watch wrapping) and it should
make a bit more sense.

<cfset myxml = xmlparse("<myxml><a num=""1"">A text string</a><b num=""2""
/><c><d myvariable=""3"" /></c></myxml>")>
<cfdump var="#myxml#">

2) play around with retrieving attributes and values using the
XMLSearch(xmldoc, xpathstring) function
3) Play around with transforming the CF XML document object using
XMLTransform for which you will need to learn a little XSL

Web Services and CFMX:

As far as Web Services go, you use CFINVOKE and don't need to know anything
about XML!  Create a CFC, and you can CFINVOKE it and learn about how that
works np.

Docs are pretty good on this last bit and USELESS on the learning XML bit.

XMLSpy is only any good for viewing and updating XML documents afaik.  Not
really too useful for much else imho.  You can do everything
programmatically that you can do in XMLSpy.

Paul



--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.518 / Virus Database: 316 - Release Date: 11/09/2003

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.518 / Virus Database: 316 - Release Date: 11/09/2003


-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to