[Home] [By Thread] [By Date] [Recent Entries]

  • From: "Anthony B. Coates (XML-Dev)" <abcoatesecure-xmldev@y...>
  • To: xml-dev@l...
  • Date: Wed, 27 Jun 2007 18:19:30 +0100

It's already been mentioned that tools like XML Spy and oXygen have some  
capability to produce XML instances to match a Schema.  However, my own  
experience (mostly with users who had XML Spy) is that the tool often  
generated invalid instances, and the users then assumed that there was an  
error in the Schema that they had been given.

In particular, I'm not sure if any tool will reliably generate valid  
instances if there are pattern restrictions in a Schema.  This may well be  
an intractable problem, to generate a valid string match a pattern for any  
arbitrary pattern.  Certainly it isn't a trivial problem.  It does mean,  
however, that you should never expect an XML instance generator to fully  
valid XML.  It may need editing to make it valid.

Cheers, Tony.

On Wed, 27 Jun 2007 06:55:46 +0100, Sagar Surana <sagar.surana@a...>  
wrote:

> Hi,
>
>   I want some kind of API's which can help generate a random XML based
> on XSD.
>
>
>
>
> Can someone please help me regarding the same.
>
>
>
>
> Keep Smiling,
>
> Sagar Surana
-- 
Anthony B. Coates
Senior Partner
Miley Watts LLP
Experts In Data
UK: +44 (20) 8816 7700, US: +1 (239) 344 7700
Mobile/Cell: +44 (79) 0543 9026
Data standards participant: genericode, ISO 20022 (ISO 15022 XML),  
UN/CEFACT, MDDL, FpML, UBL.
http://www.mileywatts.com/


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member