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

A new twist on attributes vs elements

Subject: A new twist on attributes vs elements
From: Matthew Cordes <mcorde61@xxxxxxxxx>
Date: Mon, 13 Nov 2000 14:00:15 -0500
matthew twist


Melvyn, 

The one major problem I forsee is the instance when your database 
field contains both single and double quotes.  Your xml parser will 
choke when attempting to add that as an attribute.  I'm sure there is 
some means to escape quotes, but that is an added annoyance that is avoided
by simply using child nodes.

I agree though, attributes attacched to a row element seem cleaner to me 
as well.

-matt


------------------------------

>Date: Sun, 12 Nov 2000 19:28:29 -0500
>From: "Melvyn Rosengarden" <melrose@xxxxxxxxxxxxxxxx>
>Subject: A new twist on attributes vs elements

>I have seen a great deal of discussion recently about converting return sets
>from SQL ( cursors, recorsets, datawindows) into XML strings. All of the
>examples extract the column names of the return set and create XML with
>them. While this method is probably more efficient for storing and
>retrieving XML data in a relational database it is inferior when it comes to
>navigating the DOM.  I would much prefer to work with attributes (when they
>make sense) than a myriad of embeded elememts. Has anyone else recognized
>this as an issue and if so how did you resolve it...TIA


>"You already have zero privacy -- get over it !!
>Melvyn Rosengarden
>melrose@xxxxxxxxxxxxxxxx


> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

> ------------------------------


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.