Re: [xml-dev] XML Schema: "Best used with the ______ tool"

From
Mukul Gandhi <>
To
Michael Kay <>
Date
2008-12-05T13:26:22Z
ID
<>
Thread
Re: [xml-dev] XML Schema: "Best used with the ______ tool"
Hi Mike,

On Fri, Dec 5, 2008 at 3:03 PM, Michael Kay <> wrote:
> And I'm talking about writing applications that use XML end-to-end; to do
> that, I need to see a description of the application in terms of its user
> input and user output. Of course converting the results to Java or C will
> add cost and overhead, which is why I advise against doing it.

I don't disagree with your thoughts on the value of end-to-end XML applications.

But I think, XML data binding frameworks are useful sometimes.

Please consider following example.

Say I have an object oriented application, where objects represent
concepts like bank, customers, accounts, transactions etc [1].

I get some XML data from somewhere, which contains information about
these entities [1]. I now need to populate my objects with this XML
data.

How do I do this?

One option is, that I can parse XML using DOM or SAX and fill the
objects with data by hand.
But this could be difficult if XML is complex.

I think data binding is a good technique for this scenario.


-- 
Regards,
Mukul Gandhi