Hi Sri
 
It seems a fairly common requirement for people to want to generate documents that match some kind of schema. Unfortunately right now there's no feature in dom4j to do this yet. If anyone fancies tackling this we'd be very grateful - maybe using Sun's MSV library to parse the various schemas for you (DTDs, XML Schemas and Relax NG).
 
Until then either Sun's XMLGenerator or I think IBM had something like this once on its Alphaworks site...

James
----- Original Message -----
Sent: Tuesday, April 23, 2002 5:54 PM
Subject: [dom4j-user] How to Generate a sample XML file that follows a schema

Hi,

 

I need to generate a sample XML file that follows a xsd schema that I have.

 

Is there a simple way to do this? I am trying to use the SUN�s XMLGenerator and it�s a little unfriendly. I would prefer dom4j approach since we use this in our product.

 

Thanks in advance,

-Sri

Reply via email to