[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: The limits of XML mean the limits of my data world
On Sun, 2022-05-29 at 09:01 -0700, Dimitre Novatchev wrote: > > Would you provide an example of something that cannot be expressed > > in XML > but can be expressed in some other data language, please? > > The whole notion of a "well-formed XML document" implies that this > needs to > be present as a whole in memory (RAM or other type). I'd dispute that. The XML spec allows a parser to return parse events before the end of the document so long as it clearly signals an error if it finds one, and does not then continue to claim the input is XML. There are streaming parsers, e.g. using the SAX API. > Therefore, continuously running data that may have no start and/or > end > doesn't seem to fit this definition, as at any moment of time we > don't have > "the whole data", thus we are not able to say whether or not this is > a > well-formed document. That's true, but again, there's no prohibition against acting on a partial document, only on saying the document as a whole is well-formed XML. > > I think there are mechanisms in at least some programming languages > of > monitoring data streams, recognizing data patterns and their > repetitions, > recognizing "events" in the running data and perceiving it as a > stream of > events. > > Can anyone suggest how to represent this in XML? Usually you have a set of pattern/action pairs. This is for example how XSLT 3 works in streaming mode: whenever a pattern is matched (a template match pattern in a mode with streaming="yes") the corresponding template body is used to construct a result sequence. liam -- Liam Quin, https://www.delightfulcomputing.com/ Available for XML/Document/Information Architecture/XSLT/ XSL/XQuery/Web/Text Processing/A11Y training, work & consulting. Barefoot Web-slave, antique illustrations: http://www.fromoldbooks.org
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|