XsdTidyA refactoring tool to overcome some limitations of the exceptional Xsd.exe tool | |
Download |
XsdTidy Ranking & Summary
Advertisement
- License:
- Freeware
- Publisher Name:
- Jonathan de Halleux
- Publisher web site:
- http://www.codeproject.com/Members/Jonathan-de-Halleux
- Operating Systems:
- Windows All
- File Size:
- 18 KB
XsdTidy Tags
- command prompt tool Array help tool subsidiary tool parity tool PureBasic tool XSD Snipping Tool Pharmacist tool radiostation tool autoreg tool NCP tool XSD tool Normalization Jpg2Wav tool compresion tool CUDA tool analizer tool georeference tool colorimetry tool photocopier tool oraginer tool MAHT tool snapshoot tool matrice tool typer tool speach tool summarisation tool collating tool slackers tool c++ tool GeoLocator tool VBRI tool DataExpress tool stenography tool cryptanalysis tool Keystoke Tool uninstal tool PathName tool bechmark tool powersave tool RFS tool MKR tool developemnt tool XSign Tool unistall tool anticrack tool FaxServer tool AcdbTable tool antirootkit tool webdesign tool IntelliDefense tool MapServer tool Array Size folderpane tool refactoring tool HQL tool develoment tool bosskey tool antipsyware tool decription tool IT tool simuolation tool geomatics tool MapGuide tool wkipedia tool WikiMapia tool snipper tool URL2clipboard tool C# refactoring refactoring operation ATDD tool BDD tool analyze XSD MDM tool prefetch tool astrophotometry tool geoprocessing tool CADE tool AnyDVD tool disassembly tool Name Normalization accountant tool Pairwise tool Transposition Tool javac tool Javari tool extensive refactoring CMake tool Dubser tool database refactoring geotechnical tool readiness tool crimping tool crimp tool rj45 crimp tool mindmap tool recruiter tool scrum tool fdd tool QA tool refactoring XBRL tool exceptional KWD tool limitations Quikstor ejecting tool IE tool
XsdTidy Description
XsdTidy was developed to be a refactoring tool to overcome some silly limitations of the exceptional Xsd.exe tool provided with the .NET framework. More specifically, XsdTidy addresses the following problems:- Name normalization: if your XSD schema is using lower case names or more generally non ".NET" normalized names, you will end up with types that will make the FxCop spit out hundreds of infractions. - Fixed Array Sizes: xsd.exe handles multiple elements by creating an array. There is no problem when you are loading the data, but unfortunately this is not convenient if you want to populate a document since arrays do not support Add or Remove. XsdTidy uses ArrayList for more flexibility. - Default Constructor: Xsd.exe does not care about providing a default constructor that initializes the fields with the proper values. This work can become very silly when the object structure is getting big. XsdTidy achieves refactoring by recreating new classes for each type exported by the Xsd.exe tool using the System.Reflection.Emit namespace. It also takes care of "transferring" the Xml.Serialization attributes to the factored classes. Hence, the factored classes are more .NET-ish and still outputs the same XML. Moreover, there is no dependency between the refactored code and the original code.The .NET standards define specific naming convention for all types of data: arguments should be camel case, function names capitalized, etc... This is really helpful to keep the framework consistent. Tools like FxCop help us stay on the "normalized" side.This problem is tackled the dumb way: given a dictionary of "common" words, the class NameConformer tries to split a name in separate words, after that it renders it to the needed convention.There is much room for improvement on the list of words and the algorithm to split the name, any contribution welcome.
XsdTidy Related Software