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.

generate maxium and minume samle using XSD Options · View
c_kazum
Posted: Friday, May 15, 2015 5:35:33 PM
Rank: Newbie

Joined: 4/1/2015
Posts: 2
Hi community,

we need sample that will use all the field (maxium) defined in the XSD and also we need the miniumall accepted by the XSD.
Is that a way in xmlspy professional edition that does that ?


Thanks
ChrisHeitke
Posted: Friday, May 22, 2015 10:22:38 PM
Rank: Member

Joined: 7/28/2005
Posts: 1
Location: Sacramento, CA
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.
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

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