This has turned into a pretty good discussion. Perhaps we should
cross-post the whole thread to the new xerces-j-dev mailing list.
--
Andy Clark * IBM, JTC - Silicon Valley * [EMAIL PROTECTED]
Eric SCHAEFFER wrote:
> Can you be more explicit ?
Look at java.io.PipedReader/Writer for the streaming.
A little more on the point I made about being able to associate
errors with the actual DOM node that caused the error. This can
be done but requires a little more work on your part. First of
e(new Locale(language, country));
parser.parse(new org.xml.sax.InputSource(new
ByteArrayInputStream(out.toByteArray(; // SAXParseException
- Original Message -
From: Andy Clark <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 10, 2000 11:53 PM
Subject: Re: How to v
Eric SCHAEFFER wrote:
> (The way I've found is to serialize the document to a string and to parse the
> string, with an ErrorHandler. Not very simple, and a bit stupid ...)
That sounds about right. Except that I would serialize it to a
stream that is parsed instead of wasting memory by building a
Hi,
I want to validate a document (ie an org.w3c.dom.Document object, not an XML
file) with a DTD. What is the simplest way of doing this ?
(The way I've found is to serialize the document to a string and to parse the
string, with an ErrorHandler. Not very simple, and a bit stupid ...)
Thank's
E
D]>
Sent: Monday, January 03, 2000 2:22 PM
Subject: How to validate
> Is there documentation that explains how to validate using xerces?
> Here's what I've tried:
>
> __
> Get Your Private, Free Email at http://www.hotmail.com
>
>
Is there documentation that explains how to validate using xerces?
Here's what I've tried:
private Document validateXMLInstance(String xmlString) throws SAXException,
IOException
{
InputSource inputSource = new InputSource(new StringReader(xmlString));
// to resolve relative refere