OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: [xml-dev] Data streams

[ Lists Home | Date Index | Thread Index ]

Title: Re: [xml-dev] Data streams

I thank you for responding. However, I am unclear as to what you are saying.

I do not know what svg or sax is, and I have enough on my plate with learning xml at the moment.

I am simply trying to see if there is a more "efficient" way of storing data in an xml file than adding enormously redundant tags to sequential data.

You see, I have text files that are literally tens of thousands of characters in length -- and if I try to convert them to xml using tag encapsulation for each data, then it will increase file size dramatically -- and perhaps prohibitively so when it comes to displaying the data via html, css, or whatever.

As I understand it, (http://www.w3schools.com/xml/xml_whatis.asp) xml is designed to describe data and to focus on what data is. However, in this case, to describe the data with redundant tags simply adds considerable bulk, which appears to me to blur the focus at bit. It's like a "No matter how much I add to this, it's still too long" sort of thing.

Any clarification?




  You can encode a stream as you have done below, this is what svg does right
now I believe. However I don't know of any end-to-end XML system that will
stream such an encoding. If you tag individual data points, then you will get
streaming for free in SAX model of XML processing.

  Hope this helps,


On Dec 4, 2004, at 7:42 AM, tedd wrote:


I am new to xml and I'm not sure if my question is appropriate for this list, or not. If it isn't, please tell me and advise as to where it would be appropriate.

With that disclaimer, now on to the question.

In everything I have read, it appears that every chunk of content must be encapsulated by tags, such as:


But, what about streams of data, like from a x/y recorder where one may have thousands of pieces of data? Is there some way to wrap this data into a series of comma delimited fields, such as:


Or does each piece have to have it's own tag, such as:


Many thanks in advance for any comments or suggestions. And my apology if my question is not appropriate for this list.


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>



News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS