XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
- Stylus Studio Technical Forum (14621)
-> - Stylus Studio - Registrar en o... (1)
-> + Stylus Studio - Registrar en o... (2)
-> + Can a pipeline send a file by ... (2)
-> + After Updateing WIN10 to WIN11... (12)
-> + Where do I add the custom java... (3)
-> + Where is the Diagram tab? (5)
-> + Applying XSLT to Word DOCX/XML (2)
-> - CSV conversion via ConvertToXM... (1)
-> + Text symbols in SS not same as... (4)
-> + Exposing xquery as webservice ... (6)
-> + Syntax Identifier (2)
-> + Saving a Converted XML as an X... (5)
-> + Output document cannot be pars... (4)
-> - Archiving output from conversi... (1)
-> + EDIFACT guideline from Stylus ... (3)
-> + CSV file putting all the data ... (5)
-> + Can't install Home version 64b... (5)
-> + presale - Can I covers this sc... (5)
-> + Problem with UNB (5)
-> + Splitting EDIFACT files pipeli... (4)
-- [1-20] [21-40] [41-60] Next
+ Website Feedback (249)
+ XSLT Help and Discussion (7625)
+ XQuery Help and Discussion (2017)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
Topic  
Postnext
Neal WaltersSubject: C# Generation from XSD
Author: Neal Walters
Date: 27 Mar 2007 07:52 PM
I've search and found a few older posts, but I'll ask again.
Does StylusStudio offer any replacement to Microsoft's xsd.exe utility (that builds C# code from a schema). (I have Enterprise version, and haven't had time to tap into everything there yet.)

The two problems it seems to have:
1) You have to spell out all the references (to all imported schemas) on a command line prompt, so you are rather limited if you have lengthy pathy names.
2) It seems to generate the same "common" or imported code repeatedly, so when you compile in C# you get duplicate class names. This is very annoying to have to make these manual changes every time we change our schema.

So is there a good replacement utility from StylusStudio or elsewhere? I found the link to http://www.codegeneration.net on Microsoft site, but it seems to list a plethora of options that I would have to take a day to sift through.

Thanks,
Neal Walters
http://Biztalk-Training.com
http://CMSTrainingVideos.com

Postnext
Jasbir LutheraSubject: C# Generation from XSD
Author: Jasbir Luthera
Date: 28 Mar 2007 12:03 PM
Open the xsd in Stylus, on the menu, under XMLSchema, there is an option to generate Java Binding Classes.

Postnext
Tony LavinioSubject: C# Generation from XSD
Author: Tony Lavinio
Date: 28 Mar 2007 04:57 PM
At this point we don't have an option to generate C#
binding classes.

Postnext
(Deleted User) Subject: C# Generation from XSD
Author: (Deleted User)
Date: 20 Jun 2007 11:11 PM
Originally Posted: 20 Jun 2007 11:07 PM
However, there is some assistance with java to C# conversion.
http://msdn2.microsoft.com/en-us/vstudio/aa718346.aspx
Microsoft Java Language Conversion Assistant 3.0

I haven't had occasion to try more than snippets (and not with the Microsoft tool), but I wouldn't think correspondence between (whatever java libraries are called) to .NET assemblies would be very good.

I have enough learning problems with SS at the moment, but it is definitely something that I am going to attempt.

Any feedback from other users would be great.

Ian

Posttop
(Deleted User) Subject: C# Generation from XSD
Author: (Deleted User)
Date: 20 Jun 2007 11:43 PM
Actually, that conversion is not too bad - the exceptions are (copied from Microsoft MSDN Library documentation) -

Unsupported Java-Language Packages
----------------------------------
Because of differences between the architecture of CORBA and .NET Framework Remoting, the following CORBA packages and classes are not supported:

org.omg.CosNaming
org.omg.CosNamingContextExtPackage
org.omg.Dynamic
org.omg.IOP
org.omg.IOP.CodecFactoryPackage
org.omg.IOP.CodecPackage
org.omg.Messaging
org.omg.PortableInterceptor
org.omg.PortableInterceptor.ORBInitInfoPackage

Because of differences between the architecture of Swing and Windows Forms, the following Swing packages are not supported:

javax.swing.plaf
javax.swing.plaf.basic
javax.swing.plaf.metal
javax.swing.plaf.multi

Because it contains interfaces for implementing third-party drivers, the following package is not supported:

javax.sql
-----------------


Ian

   
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.