IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Profile: ChrisHeitke
About
User Name: ChrisHeitke
Forum Rank: Member
Real Name: Chris Heitke
Location Sacramento, CA
Occupation: Senior Programmer Analyst
Interests: XML Schema Development
Gender: Male
Statistics
Joined: Thursday, July 28, 2005
Last Visit: Friday, May 22, 2015 10:29:02 PM
Number of Posts: 1
[0.01% of all post / 0.00 posts per day]
Avatar
Last 10 Posts
Topic: generate maxium and minume samle using XSD
Posted: Friday, May 22, 2015 10:22:38 PM
No, but that depends on which version of Spy you have installed. Older versions did do the maximum on some elements, chiefly numeric/integer based elements... Your problem is a great feature request... especially when the types are simple and based on W3C definitions with facet based restrictions.

We have developed our own imperfect solution which replaces the current value of an element with a sample value from a file where we provide sample values for simple types. One word of caution though... its level of success is dependent on the extent to which you develop your schemas without local restrictions. if you develop them by creating simple types and assign them back to the elements you have a handle to use within your schemas for sample data replacement of SPY generated data...

Your other option is to use Altova's samples facets on the bottom entry helper window. This works well, but if you have hundreds of schemas, not all of them under your control, it is not efficient, or easy to use, or maintain... and it may be problematic if your schemas are public...

The most recent version of spy (i.e. 2015 rel. 3 sp1) still has issues we have reported to them that are not fixed yet, like switching an imported namespace to the target on large instances. It is a pain, but we have coded around this too at the moment... We would still rather have it fixed.


Use of the Altova User Forum(s) is governed by the Altova Terms of Use.