I'm working on an application that uses XSLT to transform XML generated by JSP. At the moment no DTD exists to describe the XML format the XSL expects. Does anyone know of a tool that can generate a DTD from a XSL describing the input the XSL is expecting? Is this even feasible?
Result: The accepted answer pointed out that this is in fa...
I'm dynamically sub classing a generic type (filling it's contract) that has a generic method. I attempt to call this generic method but the assembly I produce has errors. Reflector crashes when trying to open the assembly and this code snippet does not run.
The exception I get is:
An attempt was made to load a program with an incorrec...
I have a bunch of C++ header files with various class and function declarations. So far, when I've been writing the C++ source file implementations of the declared classes and functions, I've been manually:
Copying the declarations from the header file to the corresponding source file.
Deleting "class classname {" and the matching "};"...
I have been using xsd.exe to generate a class for deserializing XML into.
I have decimal value in the source xsd that is not required:
<xs:attribute name="Balance" type="xs:decimal" use="optional" />
The resulting class from xsd generates the following code:
private decimal balanceField;
[System.Xml.Serialization.XmlAttributeAttribu...
I am looking for a sophisticated graphical FSM editor that can export a model in a well-documented output format, like SCXML or similar.
Can anybody recommend me a tool?
...
Is there any free code generating tool that can connect to crm server and create code for selected entities? The code should use SDK assemblies.
UPDATE:
@friism
C# code if possible, each entity one class and each attribute one property so it's not necessary to use Properties collection. That's basically what I had in mind, when I starte...
What are your favorite free CASE/UML/Code generation/diagramming tools that you use with PHP?
There are various commercial products that support code generation in PHP language, are there any free CASE tools? What would you recommend?
...
We have a need to generate Java source code. We do this by modeling the abstract syntax tree and have a tree walker that generate the actual source code text. This far all good.
Since my AST code is a bit old, it does not have support for annotations and generics. So I'm looking around for open projects to use for future projects with c...
I'm using System.Data.Design.TypedDataSetGenerator to convert a .xsd file (generated by VS2008) into a strongly-typed DataSet class compatible with .NET 2.0. From what I understand from MSDN, the HierarchicalUpdate option must be specified to get the same result that the VS2008 IDE generates:
HierarchicalUpdate - Generates typed dataset...
I need to generate Python code to be more specific IronPyton. I also need to be able to parse the code and load it into AST. I just started looking at some tools. I played with "Oslo" and made decision that it's not the right tool for me. I just looked very briefly at Coco/R and it looks promising.
Does any one used Coco/R?
If you d...
I am using Visual Studio 2005, Sql Server 2005, C#, ADO.NET. We have a very large database and routinely adding new stored procedures. I am tired of writing the C# wrapper code for these stored procedures, seems like there should be some simple utility or Add In that would allow me to simply point to a stored procedure and generate s...
I'm making a code generation script for UN/LOCODE system and the database has unique 3 letter/number codes in every country. So for example the database contains "EE TLL", EE being the country (Estonia) and TLL the unique code inside Estonia, "AR TLL" can also exist (the country code and the 3 letter/number code are stored separately). C...
A few semesters back I had a class where we wrote a very rudimentary scheme parser and eventually an interpreter. After the class, I converted my parser into a C++ parser that did a reasonably good job of parsing C++ as long as I didn't do anything fancy with the preprocessor or macros. I could use it to read over my classes and function...
I have written a code generator using CodeDom and it generates a number of classes from stored procedures. I'd like to add its execution as a build step and then add all of its classes to the solution programatically at build-time.
How do I do this?
...
Hi,
Eclipse nicely generates the serialVersionUID for me. But this seems to be passive code generation as the id won't be automatically updated as I change the file unless I do the generation again.
Is there some way to have the serialVersionUID being generated every time I change the contents? The "Save Actions" don't seem to include...
Visual Studio is kind enough to generate a lot of code for us when we create and design Windows.Forms controls. It also surrounds most of it with a #region statement.
In newer versions it also uses a partial class to separate generated from manually created code.
Developers are supposed to edit code only in certain areas.
But nothing p...
I'm generating the bulk of my ASP.NET MVC scaffolding code. All generated files are partial classes which use standard naming conventions. For example, my employee controller file is named EmployeeController.cs. If I wish to extend the EmployeeController with custom, non-generated logic, I create a second partial class file named Employ...
Are there any free/open source alternatives to Codesmith that would be comparable in features and generate .NET code?
...
Does anyone know of a good/usable ASP.NET MVC code/solution generator. Ideally it would build from a domain model, but from a data model is also acceptable.
If you do, can you answer the following:
Does it produce "good" code?
Can it be extended?
What do you like and not like about it if you have used it?
What great fearures does it c...
What method does VS use to manipulate the cs file when refactoring. I.e if you extract a method.
I am 100% sure (I hope) it is not T4, It could be EnvDTE or CodeDom but could not find out which one and was hoping someone knew. Thanks
...