[Home] [By Thread] [By Date] [Recent Entries]
<snip> XML has been very resistant to this kind of evolution. We've seen XML parsers that don't support some features in the standard (notably DTDs), but we've seen little tendency to support extensions (such as relaxing the rules on element and attribute names, or allowing the outermost element to be omitted). Perhaps this is because there are so many parsers in use and because they aren't easy to change. It certainly means that XML is a much stronger interoperability standard than some others; but it does lead to a certain amount of frustration because everyone can see that some of the rules (like disallowing nested comments) are just plain silly. </snip> I'd also contend that the outright hostility of the HTML5 group towards XML in any form in the browser has kept the most obvious point where evolution could occur - the web browser - did not help matters much, to the extent that they bent over backward trying to come up with a non-namespace namespace solution for web components rather than admit that XML did get something right. It should be a fairly trivial thing to implement a streamable XML parser in node.js (there are ten listed with a quick Google search (https://openbase.com/categories/js/best-nodejs-xml-parser-libraries). Personally, it may be time to take another stab at an XML 2.0 stack, with amendments for XPath, XQuery, and XSLT that are already written to acknowledge streaming, starting with acknowledging a "canon" _javascript_ parser, then moving out to Python and then Java. JSON is beginning to creak under its own limitations, and a new generation of developers and data scientists may likely be more amenable to something that captures the best of both. JSON is [expletive deleted]-poor at capturing narrative structures, XML's namespaces are unwieldy, streaming is a must, and identifiers ... (don't get me started on identifiers). Kurt Cagle Community/Managing Editor Data Science Central, A TechTarget Property On Wed, Jan 5, 2022 at 3:36 AM Michael Kay <mike@s...> wrote:
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |

Cart



