Hello Susinda,

As XSD to XML and then to our required file type is the normal approach
adopted in most cases, I do not see a valid approach to go from XSD to
json, where as json stores much less information about the payload than in
XML.

Regards
Awanthika


Awanthika Senarath
Software Engineer, WSO2 Inc.
Mobile: +94717681791



On Tue, Jun 14, 2016 at 3:22 PM, Susinda Perera <susi...@wso2.com> wrote:

> Hi Awanthika
>
> What if we convert xsd to json, and json schema, and finally do some post
> processing on generated schema. As we know it came from sxd. wdyt? will
> this be posible?
>
> Thanks
> Susinda
>
> On Tue, Jun 14, 2016 at 3:13 PM, Awanthika Senarath <awanth...@wso2.com>
> wrote:
>
>> Hello all,
>>
>> We have enabled $subject by using inbuilt Eclipse support to convert XSD
>> to XML.
>>
>> We are using the eclipse bpel implementation of new xml wizard to
>> generate the XML payload from a given XSD and load and then using existing
>> datamapper support to load XML (by generating the json schema) we load the
>> mapping information.
>>
>>
>> The eclipse method of generating XML from XSD can be found in [1]. We
>> have implemented the same simplified to suit our requirement.
>>
>> Since in the approach to generate json schema we generate XML as a
>> content in the middle is it worth to give the user the option to save this
>> generated XML?
>>
>> I have observed similar behavior in Altova. It can only load XML
>> resources and when you select an XSD to load it asks whether you would like
>> to convert this to an xml and save it somewhere in the file system. Then
>> again you have to load the generated XML as a resource to generate the
>> mapping.
>>
>> WDYT?
>>
>>
>>
>> [1]
>> http://www.massapi.com/source/googlecode/78/60/786019287/tapestrytools-read-only/trunk/org.apache.tapestrytools.ui/src-wizards/org/eclipse/wst/xml/ui/internal/wizards/NewXMLWizard.java.html
>>
>> Awanthika Senarath
>> Software Engineer, WSO2 Inc.
>> Mobile: +94717681791
>>
>>
>>
>
>
> --
> *Susinda Perera*
> Software Engineer
> B.Sc.(Eng), M.Sc(Computer Science), AMIE(SL)
> Mobile:(+94)716049075
> Blog: susinda.blogspot.com
> WSO2 Inc. http://wso2.com/
> Tel : 94 11 214 5345 Fax :94 11 2145300
>
>
_______________________________________________
Architecture mailing list
Architecture@wso2.org
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to