Liquid Technologies Support Forum

The new Liquid Support forum for 2013
Messages in this topic - RSS

Home » XML Studio » How to infer an XSD with complex types

Questions, Bugs, and Suggestions relating to the Liquid XML Studio Editor Environment.
26/03/2012 16:01:54

Josef Bauer
Josef Bauer
Posts: 1
Hi,

I have some XMLs with re-occuring complex types like 'person' embedd in other structures

<owner><person><forename>John</forename><name>Do</name></person></owner>
<user><person><forename>Frank</forename><name>Mo</name></person></user>


Is it possible to infer an XSD with the complex type 'person'?

Greetings

Josef
0 permalink
27/03/2012 09:56:41

Liquid Support
Liquid Support
Posts: 126
Hi,
No, it is not quite that smart!
But you can use the Refactor tool to help you do in the generated XSD.

1. Run the infer schema tool.
2. Right click on a person element and select Refactor->Convert To Global Type.
3. Select the other person element and change its type in the properties window to the new global type.
4. Delete the old sequence from the person element.

Hope this helps.
0 permalink

Home » XML Studio » How to infer an XSD with complex types