User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the RSS, Web Services and SOAP section within the Web Development category of DaniWeb, a massive community of 456,441 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,607 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our RSS, Web Services and SOAP advertiser: Programming Forums
Views: 9896 | Replies: 79
Reply
Join Date: Sep 2007
Posts: 13
Reputation: apuri976 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
apuri976 apuri976 is offline Offline
Newbie Poster

Re: XML Management

  #41  
Nov 5th, 2007
I have heard of the pureXML feature of DB2 9 and want to switch to DB2 9. Can someone tell more about DB2 9 and PureXML?
Reply With Quote  
Join Date: Oct 2007
Posts: 36
Reputation: mallar6 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
mallar6 mallar6 is offline Offline
Light Poster

Re: XML Management

  #42  
Nov 5th, 2007
DB2 9 is a hybrid database system. It can have both relational data and native XML data in the same database. DB2 9 introduces an XML data type. The relational data is stored in tabular structures and the XML data is stored in tree structure. The structure enables XML data to be stored in its hierarchical form within columns of a table. Because data is stored in its native form, both types of data can benefit from the performance. On top of both tabular structures and tree structures, there is one hybrid database engine that processes both types of data. There are two different parsers to process SQL and XQuery. A single compiler is used for both languages. DB2 9’s compiler and optimizer can handle both languages. An application can use the combinations of SQL and XQuery to access relational and XML data in the hybrid database. DB2 9 treats XML as a native data type. It has pureXML storage, meaning that XML data is stored in XML form, which is a hierarchical structure.
Reply With Quote  
Join Date: Oct 2007
Posts: 23
Reputation: karsoods53 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
karsoods53 karsoods53 is offline Offline
Newbie Poster

Re: XML Management

  #43  
Nov 5th, 2007
I have some data that I want to store in the DB2 9. Should I store this data as XML schema or relational schema?
Reply With Quote  
Join Date: Oct 2007
Posts: 36
Reputation: mallar6 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
mallar6 mallar6 is offline Offline
Light Poster

Re: XML Management

  #44  
Nov 5th, 2007
This depends on the data you want to store in the database. The main difference between relational schema and XML schema is that relational schema describes data as strongly structured and typed. XML schema describes data as loosely structured and typed. XML schema describes data order, but relational schema does not.
In general, data that has the following properties should be stored in XML:
The data is better described in hierarchal format.
The schema is constantly changing and evolving.
Many attributes of the data are empty or unknown.
You can check http://www.ibm.com/developerworks/xm...GX06&S_CMP=EDU for advice on creating XML.
Reply With Quote  
Join Date: Sep 2007
Posts: 13
Reputation: apuri976 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
apuri976 apuri976 is offline Offline
Newbie Poster

Re: XML Management

  #45  
Nov 5th, 2007
The data which I want to store in the database contains small amount of data, but have a highly complex structure. Should I store this in XML data type?
Reply With Quote  
Join Date: Oct 2007
Posts: 36
Reputation: mallar6 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
mallar6 mallar6 is offline Offline
Light Poster

Re: XML Management

  #46  
Nov 5th, 2007
You should store such data in XML. If you store such data in relational tables, you will have complicated relational schemas, which means you require many tables. Managing these tables can have overhead. The SQL query to access such data requires joining many tables. If you have to process this data together with other data, the SQL query will be even more complicated.
Reply With Quote  
Join Date: Oct 2007
Posts: 23
Reputation: karsoods53 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
karsoods53 karsoods53 is offline Offline
Newbie Poster

Re: XML Management

  #47  
Nov 5th, 2007
Is there any way to validate the XML data against a XML schema before inserting into the database?
Reply With Quote  
Join Date: Oct 2007
Posts: 36
Reputation: mallar6 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
mallar6 mallar6 is offline Offline
Light Poster

Re: XML Management

  #48  
Nov 5th, 2007
DB2 9 supports validating XML documents with XML schema at insert or import time. The XML schemas have to be registered in XML Schema Repository (XSR) before it can be used for validation. The XML document in the same XML type column can be validated by a different XML schema of your choice in the insert/import time. You can also choose not to validate the XML. In general, there are three choices:
Validate on the server.
Validate within an application.
Do not validate.
XML validation enables you to create complex rules that define acceptable data. You can check http://www.ibm.com/developerworks/xm...ary/x-tipxsslt to use the XML Schema Standard Type Library to simplify the process of requiring formatted data such as e-mail addresses and telephone numbers.
Reply With Quote  
Join Date: Oct 2007
Posts: 36
Reputation: mallar6 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
mallar6 mallar6 is offline Offline
Light Poster

Re: XML Management

  #49  
Nov 5th, 2007
You can check http://www.ibm.com/developerworks/xm...ary/x-tipxsslt to use the XML Schema Standard Type Library to simplify the process of requiring formatted data such as e-mail addresses and telephone numbers.
Last edited by mallar6 : Nov 5th, 2007 at 8:52 am.
Reply With Quote  
Join Date: Oct 2007
Posts: 36
Reputation: mallar6 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
mallar6 mallar6 is offline Offline
Light Poster

Re: XML Management

  #50  
Nov 5th, 2007
You can check http://www.ibm.com/developerworks/xm...ary/x-tipxsslt to use the XML Schema Standard Type Library to simplify the process of requiring formatted data such as e-mail addresses and telephone numbers.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb RSS, Web Services and SOAP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the RSS, Web Services and SOAP Forum

All times are GMT -4. The time now is 1:44 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC