Lists Home |
Date Index |
- From: Michelle_Zhao@amsinc.com
- To: mark hu <firstname.lastname@example.org>, email@example.com
- Date: Wed, 09 Aug 2000 17:34:24 -0400
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?
"mark hu" <firstname.lastname@example.org> on 08/09/2000 05:02:26 PM
To: Michelle Zhao/AMS/AMSINC@AMSINC, email@example.com
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.
"Life Is A Piece Of Cheese"
----- Original Message -----
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
> from Oracle database. Is there a way to filter the ResultSet through the
> that a valid XML file could be generated? Any guide would be much