Hi there, first post on this forum, so be gentle…
Within our environment our data modelling tool of choice is ERwin, Sparx being our EA/SA tool of choice.
We have the Toobus ERwin to Sparx EA bridge, which allows me to port my logical data model from ERwin to an equivalent Class Diagram in Sparx EA, which it does very well.
The ultimate goal being to generate XSD object payloads from the Class Diagram model within Sparx, which is almost working perfectly except for one small issue. I’m losing my attribute data type definitions at XSD generation time, and am merely getting undelimited ‘string’ for all of the element definitions.
This is understandable as obviously data types such as CHAR(18) are meaningless to the XSD generator, so my question is…
How can I add new data types to the XSD generator? What I want is for an attribute with a CHAR(18) datatype to be represented as an XSD element of ‘string’ with a max length of 18, upon XSD generation.
To this end I’ve added a new data type or CHAR(18) (common type string length 18) to the XSD product (after adding XSD as a product), via settings/code engineering data types/programming languages datatypes.
…however upon XSD generation I am still receiving the following message;
“Warning no XSD type found for: "CHAR(18)". Default is: xs:string”
Whilst I appreciate that in certain circumstances an element of unbounded string will be advantageous, I would still like to be able to implement data type and length constraints in my XSDs
Obviously I’m doing something wrong…has anyone else found a way of overcoming this problem, without a lot of manual knife and forking. I’d like to avoid having to include a whole list of potential XML element types in each XSD.
Thanks,
Will