944,029 Members | Top Members by Rank

You are currently viewing page 1 of this multi-page discussion thread
Sep 26th, 2007
0

XML Management

Expand Post »
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?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
s.piyush58 is offline Offline
19 posts
since Sep 2007
Sep 27th, 2007
0

Re: XML Management

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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
apuri976 is offline Offline
13 posts
since Sep 2007
Sep 27th, 2007
0

Re: XML Management

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?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
s.piyush58 is offline Offline
19 posts
since Sep 2007
Sep 27th, 2007
0

Re: XML Management

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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
apuri976 is offline Offline
13 posts
since Sep 2007
Oct 3rd, 2007
0

Re: XML Management

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?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
karsoods53 is offline Offline
23 posts
since Oct 2007
Oct 3rd, 2007
0

Re: XML Management

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Ppatil6574 is offline Offline
2 posts
since Oct 2007
Oct 3rd, 2007
0

Re: XML Management

Are there any other ways to store XML data in database?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
karsoods53 is offline Offline
23 posts
since Oct 2007
Oct 3rd, 2007
0

Re: XML Management

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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Ppatil6574 is offline Offline
2 posts
since Oct 2007
Oct 3rd, 2007
0

Re: XML Management

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
apuri976 is offline Offline
13 posts
since Sep 2007
Oct 3rd, 2007
0

Re: XML Management

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.
Reputation Points: 10
Solved Threads: 0
Light Poster
mallar6 is offline Offline
36 posts
since Oct 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in RSS, Web Services and SOAP Forum Timeline: session variable
Next Thread in RSS, Web Services and SOAP Forum Timeline: XML Update??





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC