xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
Re: [XOM-interest] can xom help with theses two problems
- From: "Michael Kay" <mike AT saxonica.com>
- To: "'teknokrat'" <teknokrat AT yahoo.com>, <xom-interest AT lists.ibiblio.org>
- Subject: Re: [XOM-interest] can xom help with theses two problems
- Date: Wed, 21 Jun 2006 16:38:26 +0100
> We are dealing with legacy xml feeds and have run across two
> problems that are making our lives difficult.
>
> 1. leading spaces before the <?xml declaration. Is it
> possible for xom to strip these out?
>
> 2. We get given DOCTYPE declarations that do not point to a
> correct DTD.
> This breaks XOM even though we ask for a non validating parser.
>
It might be better to describe the input as "non-XML" rather than "XML".
You can tidy up (1) easily enough by massaging the input stream at the text
level before passing it to the XML parser.
You might be able to deal with (2) using an EntityResolver nominated to the
XML parser.
This has nothing to do with XOM: it's an XML parsing issue.
Michael Kay
http://www.saxonica.com/
-
[XOM-interest] can xom help with theses two problems,
teknokrat, 06/21/2006
- Re: [XOM-interest] can xom help with theses two problems, John Cowan, 06/21/2006
- Re: [XOM-interest] can xom help with theses two problems, Michael Kay, 06/21/2006
- Re: [XOM-interest] can xom help with theses two problems, Cormac Blackwell, 06/21/2006
-
Re: [XOM-interest] can xom help with theses two problems,
Tatu Saloranta, 06/21/2006
- Re: [XOM-interest] can xom help with theses two problems, teknokrat, 06/22/2006
Archive powered by MHonArc 2.6.24.