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,515 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,741 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: 9904 | Replies: 79
Reply
Join Date: Sep 2007
Posts: 19
Reputation: s.piyush58 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
s.piyush58 s.piyush58 is offline Offline
Newbie Poster

Question XML Management

  #1  
Sep 26th, 2007
Hi, I am new to this...so hope I can get some help from you all...

I get XML feeds as input and have to store this data on our server. I have worked with databases but new to XML. Can someone tell me how I can store and manage this data?
AddThis Social Bookmark Button
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

  #2  
Sep 27th, 2007
You can store the XML document in the file system (i.e. as a file on the server) and read the data from it by using standard file system functions. Most of the technologies (J2EE, .NET, PHP, CGI/Perl, etc) have in-built libraries to work with XML files.
Reply With Quote  
Join Date: Sep 2007
Posts: 19
Reputation: s.piyush58 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
s.piyush58 s.piyush58 is offline Offline
Newbie Poster

Re: XML Management

  #3  
Sep 27th, 2007
I have data in database and a lot of data resides as XML files as well. I do not want to maintain different data stores having the data in database and XML data in files. Is there any way to manage both XML and relational data together in a single data store?
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

  #4  
Sep 27th, 2007
If you do not want to store the XML data as files and want to maintain the complete data in a database, you can store the xml document into the database as BLOB or CLOB type. This would store the XML file in the binary format. This approach is recommended only if you want to store or retrieve the XML file in its entirety. But retrieving a specific element/attribute from XML document would have performance constraints as the complete XML document has to be loaded to fetch even a single record.
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

  #5  
Oct 3rd, 2007
I am working on an application for data storage which deals mostly with XML data. I am storing the XML data as CLOB data type. Is there any other way to work with XML data?
Reply With Quote  
Join Date: Oct 2007
Posts: 2
Reputation: Ppatil6574 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Ppatil6574 Ppatil6574 is offline Offline
Newbie Poster

Re: XML Management

  #6  
Oct 3rd, 2007
Storing the XML as CLOB data type has its drawbacks. Searching and retrieving a subset of the document would be slow. The XML document needs to be parsed for each query to determine which portions of the document satisfy the specified search criteria. Furthermore, updating large objects would also take time. Your applications must provide the entire XML document to the DBMS for update, even if it only changed a small portion of it. This can result in unacceptably high processing costs, particularly if the XML document is very large
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

  #7  
Oct 3rd, 2007
Are there any other ways to store XML data in database?
Reply With Quote  
Join Date: Oct 2007
Posts: 2
Reputation: Ppatil6574 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Ppatil6574 Ppatil6574 is offline Offline
Newbie Poster

Re: XML Management

  #8  
Oct 3rd, 2007
Alternatively, you can split the elements and attributes of the XML document to relational columns in one or more tables. Storing the data like this would have several advantages. You can directly work with selected portions of the “converted” XML data. You can add index to columns to make data retrieval more efficient and fast. You can make use of SQL queries to retrieve the required piece of data.
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

  #9  
Oct 3rd, 2007
But decomposing the XML would be difficult (some time impossible) if XML documents contain heavily nested parent/child relationships and irregular structures. Shredding such documents may also require a large number of tables. Querying a “shredded” document would require complex SQL statements and it may include many joins. It would take time to write these queries. It will give runtime productivity and performance problems. Moreover, it is very difficult , if not impossible to recover (compose ) the XML document from these relational tables
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

  #10  
Oct 3rd, 2007
You can use pureXML (DB2 from IBM) to store the XML data in the database. It stores the XML document natively in the database which means XML is not stored as CLOB or shredded into tables. XML remains XML even inside the database. The data can be queried using SQL or XQuery. Searching and retrieving subsets of XML would be very fast as XML is not parsed during querying.
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 3:57 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC