Re: [xml] Unknown entities warning vs error



On Wed, Dec 10, 2003 at 03:20:32PM +0100, bvh wrote:
Yesterday I learned that the parser emits a warning about undefined entities.
However, with 2.5.11 I get a hard error. Has this changed from recent releases?
How can I still ignore these warnings/errors with 2.5.11? (upgrading to 2.6.xx
is unfortunatly not an option)

For example this is what I get :

$ xmllint --nowarning  Showcase/Showcase.xml
Showcase/Showcase.xml:104: error: Entity 'ccedil' not defined
        <title>Something spooky with &amp; and &ccedil;</title>

  This is an error and not a warning depending on a number of things,
including whether the DTD is loaded, if the document is defined as
standalone, etc ...
  This behaviour is defined by the XML spec, I strongly suggest you read it.

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]