Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Do I keep all the records in one xml file?? 1

Status
Not open for further replies.

qb828

Programmer
Sep 27, 2000
98
US


Do I keep all the records in one xml file??
(100 reocords in one xml file?? what if 1,000??)
Like this:
<XML>
<root_contact>
<Person>
<name>Mike Johnson</name>
<sex>35</sex>
....
</Person>
<Person>
<name>Susan Hall</name>
<sex>26</sex>
....
100 more names
</XML>
is that right?? isn't that too big in one file??

I need your help.
THank you.

QB



QB
 
I'm not quite sure what you mean by 'keep'.

A lot of XML is created solely to transfer information from one place to another and so exists in that form for only a short while (for example SOAP) or is metadata that simply describes other data for example XML schemas.

The definition of XML does not specify any limits on the size of an XML document but the software used to read it might. For example XML DOM Document parsers usually store the DOM in memory once parsed and as rule of thumb require about 10 times as many bytes im memory to hold the data as the original file so a 1Gb XML document might be difficult to process in this way.

However there is an alternative XML parsing mechanism called SAX which simply raises an event each time a node is encountered and leaves it up to the implementor to handle persisting the data as required. With SAX there may be no limit to the size of the XML file.

That said, in practice, most XML documents contain no more than thousands of 'records' rather than millions.

If you are thinking of using an XML document as a database then any relational database will provide superior performance and facilities with less coding once you get beyond a few hundred records.
 
Thanks bboffin!

Yes I was thinking about using the XML as a database.
I couldn't decide between Access(ASP) and XML for a small database project.
The problem is I am not an expert in either one.

The XML looked more easier to translate them into HTML pages.

What I needed is the query function. After I query and find the record, I need to display the information into a HTML page.

I guess I should go with the Access and use the ASP to access it.

Thank you for your comments.

QB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top