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

Re: create valid XML from DTD and database

  • From: mark hu <mark@f...>
  • To: Michelle_Zhao@a..., xml-dev@l...
  • Date: Thu, 10 Aug 2000 11:50:45 -0400

create valid xml
Hi, there:
    The way I mention the hashmap is like this: on the server side you init
your hashmap to host all the method calls which in turn to construct your
XML structure ( this will provide you a helper object which can be used at
client side Applet - data pumper ), and if you are talking about any generic
database and XML rendering - e.g. you are coding in JAVA, I assume you are
using JDBC (ver ??), and the most generic way is to use ResultSet to get the
data and construct your own XML - then you will feel the need for HashMap
which mapping the XML tag and you data fields, and the way you represent DTD
is to load you DTDs into your XML structure, if you want to do
post-processs, you ahve to wait till the whole document finished loading
..... I do not get the idea why you use " ResultSetMetaData " ?????? if you
want to create valid XML from DTD and database, I believe this is the right
way, cause it works anywhere - let me know if I get you wrong.



mark

"Life is ??"
----- Original Message -----
From: <Michelle_Zhao@a...>
To: mark hu <mark@f...>; <xml-dev@l...>
Sent: Wednesday, August 09, 2000 5:34 PM
Subject: Re: create valid XML from DTD and database


>
>
> Please let me know if I understand it right:
>
>  ResultSetMetaData.getColumnName() could retrieve the element name;
> ResultSet.getString() could retrieve the element value;
> then hashmap is not needed for the resultSet;
> you mean the hashmap for DTD rules? how do I represent the hierarchy of
the DTD?
> by child ID refers to the parent ID? how is attribute represented? How is
the
> datastream of DTD correlated with the resultset?
>
> Thanks.
>
>
> Michelle
>
>
>
>
>
> "mark hu" <mark@f...> on 08/09/2000 05:02:26 PM
>
> To:   Michelle Zhao/AMS/AMSINC@AMSINC, xml-dev@l...
> cc:
> Subject:  Re: create valid XML from DTD and database
>
>
>
> Yes, you can - and the way that our stuff works now is: construct a
HashMap
> to host all your particular Resultsets and then at the end of XML document
> ending - since you can retrieve a Id-Name pair, it's very easily to apply
> DTD rules against this gerenated document.
>
> mark
> "Life Is A Piece Of Cheese"
> ----- Original Message -----
> From: <Michelle_Zhao@a...>
> To: <xml-dev@l...>
> Sent: Wednesday, August 09, 2000 3:39 PM
> Subject: create valid XML from DTD and database
>
>
> >
> >
> > I am trying to write a Java program to create XML from a given DTD file
> and data
> > from Oracle database. Is there a way to filter the ResultSet through the
> DTD so
> > that a valid XML file could be generated? Any guide would be much
> appreciated.
> >
> > Michelle
> >
> >
> >
>
>
>
>
>
>


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.