Re: [xml-dev] Re: Native XML Interfaces

From
Ihe Onwuka <>
To
Peter Flynn <>
Date
2013-06-05T23:54:22Z
ID
<>
Thread
Re: [xml-dev] Re: Native XML Interfaces
On Wed, Jun 5, 2013 at 10:28 PM, Peter Flynn <> wrote:
> On 06/03/2013 12:30 PM, Timothy W. Cook wrote:
>> On Mon, Jun 3, 2013 at 8:12 AM, Andrew Welch <> wrote:
>>>> But Andrew, maybe I include myself in that category of not being aware
>>>> of the APIs that are available. Could you exand on that with a couple
>>>> of examples?
>>>
>>> For example the dev is faced with the challenge of extracting the
>>> <title> and product/@id values from some xml.
>>>
>>> They could:
>>>
>>> - use xquery/xpath
>>> - use xom/jdom
>>> - use sax/stax
>>>
>>> instead they use a tool to generate an xsd from the xml, then use a
>>> binding tool to generate some classes, then use those generated
>>> classes.
>>
>> Okay, thanks.  Maybe I won't include myself in that group then.  :-)
>> That is REALLY going the long way around.
>
> It's not that far removed from database engineers whose worldview
> includes SQL, period. Their solution to adding 2+2 is to create a table
> with two fields, populate them with the value 2, and then write a stored
> procedure to query it, extract the values, and add them together.
>

For a large enough dataset this can be a neat performance hack since
you get the query optimiser for free to throw at your problem.