This is the mail ive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Authbsp;Index] [Thread Index]
Message Nav:< [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Storing XSL Documents In Database

<-Subject-Header-End-->
It seems to me that
> there are 3 good solutions to do this:
>     1.  Serialize the Documentect to a byte array,
>     2.  Write the document out to a byte array, 
>     3.  Write out the Document to a String, store each line of the
> document as a varchar in the database,

In my own experiments some time ago I found that the mosficient serial
format for a document was - guess what - XML. I found it was significantly
quicker to reparse the XML than toserialize" the serialized DOM, largely
because the XML is far smaller.

I've used the technique of breaking up the XML documinto logical units
(e.g. a single entry in a dictionary) and storing each as an XML fragment in
a VARCHAR field, having copiny attributes that are significant for query
purposes into separate columns of the table.

Another technique you don't mentis to store the DOM as persistent
objects in an object database. I haven't had the chance to compare that. It
should work wel theory.

Mike Kay


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

X-BotPNI--> >[Thread Prev] [Thread Next]
Index Nav: [<EF="index.html#00515">Date Index] [Subject Index] [Thread Index]
Messaav: [Date Prev] [Date Next]