Re: [xml] Degenerate case

2019-09-17 Thread Liam R E Quin
On Tue, 2019-09-17 at 09:26 -0400, Webb Scales wrote: > Is it possible that the error message is wrong? Like most parsers, if given faulty input the output is sometimes unexpected. I'm not a maintainer here, but i'd guess that a patch to detect the case of the document having no XML elements in

Re: [xml] Degenerate case

2019-09-17 Thread Webb Scales
Thank you for being so patient with me! I did look at the XML grammar, but I only got far enough to suggest that the prolog was optional.  I should have continued on, but I was confused by the error message from LibXML2 ("Extra content at the end of the document") which seemed to indicate that

Re: [xml] Degenerate case

2019-09-16 Thread Liam R E Quin
On Tue, 2019-09-17 at 00:47 -0400, Webb Scales wrote: > Would a file containing just an XML comment, e.g., > > > > > be an acceptable input to LibXML2? Let's look at the specification of XML, https://www.w3.org/TR/REC-xml/ We see in section 2.1, [[ [Definition: A textual object is a well-fo