[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Speed difference attributes vs elements

Subject: Re: Speed difference attributes vs elements
From: António Mota <amsmota@xxxxxxxxx>
Date: Wed, 28 Sep 2005 09:03:35 +0100
atribute parse
I'm not a expert here, but i tend to use as a rule of thumb something like

If it's a value used to identify nodes, use as attributes
if you're going to manipulate that data, use as child nodes.

On 9/28/05, Soren Kuula <dongfang@xxxxxxxxxxx> wrote:
> Hi,
>
> One of the ideas of using XML at all, instead of just cooking your own
> small language, is that reliable and unambigous parsing comes for free.
>
> With
>
> >
> > <problem
> >    models="long list"
> >    software_releases="long list"
> > >
>
> you are throwing out some of the advantage -- you again have to parse
> manually, probably introducing a bug somewhere.
>
> > instead of
> >
> > <problem>
> >    <models>
> >       <model>...</model>    (many times)
> >    </models>
> >    <software_releases>
> >       <rel>...</rel>    (many times)
> >    </software_releases>
> > </problem>
>
> This is much nicer in that respect, and if you use XSL you'll probably
> have something working much sooner. That's a real performance
> consideration too :)
>
> Soren

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.