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
|
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.
|