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

Re: xml and combo

  • From: Ronald Bourret <rpbourret@r...>
  • To: Avital Nagar <Avital@c...>
  • Date: Tue, 25 Sep 2001 09:36:40 -0700

populate combo xml
Why are you using XML/DOM at all? Why not just execute a SQL statement
and read the result set with ODBC/JDBC/etc.? Unless you're sending the
XML across the Web (or something similar), I can't see much reason to
use the XML at all.

Assuming you do have a good reason for using XML/DOM, see section 2 of
the following paper for information about mapping a result set to XML:

   http://www.xml.com/pub/a/2001/05/09/dtdtodbs.html

For Java pseudo-code, see section 2.2 of the following paper (you can
ignore the rest):

   http://www.rpbourret.com/xml/DataTransfer.htm

Finally, SAX would be faster than DOM for this purpose.

-- Ron

> Avital Nagar wrote:
> 
> Hi,
> 
> I have a SQL database. Using XML and DOM I have to populate a combo
> box with the data from the db?s table so that if I add new details to
> the table the combo will also display the new updated details. Can
> someone please help me? thanks

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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.