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

RE: save XML into database

  • To: "Barwell Jonathan" <Jonathan.Barwell@a...>,"Li Yuejiong\(John\)" <john_li@m...>
  • Subject: RE: save XML into database
  • From: "Michael Rys" <mrys@m...>
  • Date: Fri, 28 Oct 2005 09:32:08 -0700
  • Cc: <xml-dev@l...>
  • Thread-index: AcXbpzNbnv0NPLeFQgqE1Rf/l9+rYQANbuTg
  • Thread-topic: save XML into database

xml to blob
Title: RE: save XML into database

Actually a BLOB/varbinary(max) type is better suited for XML than a CLOB/varchar(max) type since the BLOB has no code page associated with it and therefore does not interfere with the XML document’s encoding.

 

Best regards

Michael

 


From: Barwell Jonathan [mailto:Jonathan.Barwell@a...]
Sent: Friday, October 28, 2005 3:05 AM
To: Li Yuejiong(John)
Cc: xml-dev@l...
Subject: RE: save XML into database

 

A BLOB is a Binary Long Object and is not suitable for XML.
You either want to store it in a CLOB, which is a character long object, if you want no structure controls, or if you use Oracle then there is an XMLTYPE.  It is possible to define either a whole table as an XMLTYPE or an individual column.  I would suggest not using Access, I haven't used the XML features in SQL Server, but Oracle's offering is fairly comprehensive especially if you go for Oracle 10g release 2.

If you want to formalise your XML structures then Oracle allows you to register an XML Schema in the database and it will automatically generate your table and type structures for you.  Oracle 10g release 2 now allows the schemas to be evolved, which in earlier versions if you wanted to change your scheme then you had to export all your XML files and then reimport once the schema had been changed.

The Oracle Technology Network site has useful information and downloadable demos

http://www.oracle.com/technology/tech/xml/xmldb/index.html

Regards,

Jon

-----Original Message-----
From: jj long [mailto:longjingjun@y...]
Sent: 28 October 2005 10:48
To: Li Yuejiong(John); jim.fuller@r...
Cc: xml-dev@l...
Subject: RE: save XML into database

 

hi John,

I think basicly you can save the xml content as blob
in database. It does not have any difference with
other files like doc,pdf from database point of view.

The methods of accessing xml data in db are vary from
vender even many databases support xml. Perhaps store
xml content as blob is a good choice since you
mentioned you are using three different database now.

Long

 

--- "Li Yuejiong(John)" <john_li@m...>
wrote:

> HI Jim,
>
> I know it cannot be answered in one mail. So I ask
> for a guildline, not
> a solution. About XML DB, I cannot use them, because
> my develop
> environement is SQL Server, Oracle or Access.
>
> Thanks,
> John
>
> -----Original Message-----
> From: James Fuller
> [mailto:jim.fuller@r...]
> Sent: Friday, October 28, 2005 3:37 PM
> To: Li Yuejiong(John)
> Cc: xml-dev@l...
> Subject: Re: save XML into database
>
> Li Yuejiong(John) wrote:
>
> >Hi,
> >
> >I want to save XML file into database, eg SQL
> Server, Oracle or maybe
> >Access. I am a newbie of database, so is there any
> guideline of such a
> >task?
> > 
> >
> your question is quite broad in scope...I would
> select a specific
> database then google on that..
>
> as a side note I would suggest bypassing all this
> together and try out a
> native XML DB,
>
> http://exist.sourceforge.net is the best of the open
> source
> offerings....being surprisingly performant and
> loaded with features.
>
> gl, Jim Fuller
>
>
>
>
-----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
>
> The list archives are at http://lists.xml.org/archives/xml-dev/
>
> To subscribe or unsubscribe from this list use the subscription
> manager:
> <http://www.oasis-open.org/mlmanage/index.php>
>
>

 

       
               
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com

-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org>, an initiative of OASIS <http://www.oasis-open.org>

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager: <http://www.oasis-open.org/mlmanage/index.php>

************************************************************************

DISCLAIMER

The information contained in this e-mail is confidential and is intended

for the recipient only.

If you have received it in error, please notify us immediately by reply

e-mail and then delete it from your system. Please do not copy it or

use it for any other purposes, or disclose the content of the e-mail

to any other person or store or copy the information in any medium.

The views contained in this e-mail are those of the author and not

necessarily those of Admenta UK Group.

************************************************************************


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.