OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Is this Immpossible !!

[ Lists Home | Date Index | Thread Index ]
  • From: "Abhishek Srivastava" <abisheks@india.hp.com>
  • To: "xml dev mailing list" <xml-dev@ic.ac.uk>
  • Date: Wed, 20 Oct 1999 10:58:46 +0530

Hi All,
I have the following requirement. A client wants to query a database. It sends out an SQL Query to the Database server. At the server side, instead of returning a recordset, it returns an XML File.
The client on receiving the XML file, parsers it for "Validity" (to be sure that all elements it had asked for are there).
Problem is that at the server side, How to build the xml document.
Presently, I am doing something like this
String("<Name>") + rs.getField("auName") + String("</Name>")
However, this is a very inelegant approach as the code is full of such string concatenations.
Is there a more elegant solution to this ?  All the material on XML talks about parsing and reading XML. What about writing them ? Are there DOM / SAX Api extensions available that would
create "VALID" XML documents without clutter in the code ?
Any help would be greatly appreciated.
Thanks & Best Regards,
    _/               Abhishek Srivastava
   _/                Hewlett Packard ISO      
  _/_/_/   _/_/_/    -------------------  
 _/   /   _/  _/     (Work)   +91-80-2251554 x1190
_/  _/   _/_/_/      (Ip)           
        _/           (Url)    http://sites.netscape.net/abhishes/homepage                       
       _/            You've heard it all by now. Get wired or get whacked.
                     You're networking or you're not working. Dot-com or die
                     - SUN MICROSYSTEMS 


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS