At 6:43 PM -0500 22/2/06, Michael Williams wrote:
I'm looking for data binding techniques for RB. Are there any mechanisms for, say, parsing an XML file like the following:



<database>
        <table name="tblname">
                <field name="name" type="type"/>
                <field name="name" type="type"/>
                <field name="name" type="type"/>
                <field name="name" type="type"/>
        </table>
        <table name="tblname">
                <field name="name" type="type"/>
                <field name="name" type="type"/>
                <field name="name" type="type"/>
                <field name="name" type="type"/>
        </table>
</database>


 . . . and creating objects similar to the following:


database.table.name

I know things like this are possible in, say, Python (Apples and oranges, I know) using Amara(http://uche.ogbuji.net/tech/4suite/amara/), but it would be EXTREMELY handy in RB. The current mechanisms for parsing/referencing XML in RB, although capable, are excessively tedious.



Hi Michael,

Have you had a look at XSLT processing and XPath queries in XMLNode?

If you are going to REALworld 2006 then I'd recommend that you go to this talk:

XML 201
Stephen Tallent
Tuesday, February 28, 2006 at 3:00 PM
For those who are already familiar with and/or using XML in their projects, but would like to learn some of the more advanced features of the XML classes. This session will focus on XPath and XSLT, two deep and enormously powerful features that are worth being in every developers toolbox.
--

Cheers,

Dr Gerard Hammond
Bioinformatic Analyst
Garvan Institute of Medical Research, Sydney, Australia.

If it's worth doing, then it's worth doing with excess.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to