Re: How to validate an "org.w3c.dom.Document"

2000-04-11 Thread Andy Clark
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]

Re: How to validate an "org.w3c.dom.Document"

2000-04-11 Thread Andy Clark
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

Re: How to validate an "org.w3c.dom.Document"

2000-04-11 Thread Eric SCHAEFFER
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

Re: How to validate an "org.w3c.dom.Document"

2000-04-10 Thread Andy Clark
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

How to validate an "org.w3c.dom.Document"

2000-04-07 Thread Eric SCHAEFFER
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

Re: How to validate

2000-01-05 Thread Ted Leung
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 > >

How to validate

2000-01-03 Thread Russ Reeves
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