Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Validating a Document against a schema

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Harold <elharo AT metalab.unc.edu>
  • To: Lowell Kirsh <lowellk AT gmail.com>
  • Cc: XOM-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Validating a Document against a schema
  • Date: Wed, 21 May 2008 06:13:41 -0700

Lowell Kirsh wrote:
I am currently validating a generated Document against its schema by
first calling toXML() on it and then validating that String. I'm
guessing there's a more efficient way to do this. Is there?


You could stream the document through the validator, but if you're creating it with XOM and then validating it, I can't think of a better way. Off the top of my head I'm not aware of any schema validators that work directly on the XOM model.

--
Elliotte Rusty Harold elharo AT metalab.unc.edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/




Archive powered by MHonArc 2.6.24.

Top of Page