On Fri, 2012-12-07 at 19:24 +0100, =D0=BE=D0=BB=D1=8C=D0=B3=D0=B0 =D0=BA=D1=
=80=D1=8B=D0=B6=D0=B0=D0=BD=D0=BE=D0=B2=D1=81=D0=BA=D0=B0=D1=8F wrote:
> David, can you give me such an example? Also, does libxml2 implement
> such checks?
$ cat test.xml
text">
]>
&foo;
$ xmllint test.xml
Entity: line 1: parser error : Premature end of data in tag span line 1
text
^
test.xml:5: parser error : Entity 'foo' failed to parse
&foo;
^
test.xml:5: parser error : Opening and ending tag mismatch: test line 4
and span
&foo;
^
test.xml:6: parser error : Extra content at the end of the document
^
>=20
> Olga
>=20
> On Fri, Dec 7, 2012 at 5:32 PM, David Carlisle wrote=
:
> > On 07/12/2012 12:24, =D0=BE=D0=BB=D1=8C=D0=B3=D0=B0 =D0=BA=D1=80=D1=8B=
=D0=B6=D0=B0=D0=BD=D0=BE=D0=B2=D1=81=D0=BA=D0=B0=D1=8F wrote:
> >>
> >> David, does a non validating parser really have to do those checks?
> >
> >
> > yes (if it wants to claim conformance to the XML Rec) They are condit=
ions
> > for the document to be well formed, not valid.
> >
> > David
> >
>=20
>=20
>=20
_______________________________________________________________________
XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.
[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php