XML Schema to C# Demonstration
This video demonstrates generating a C# object model from an XML Schema and using it to serialize and edit XML data in Microsoft Visual Studio.
What is Liquid XML Objects?
XML Data Binding enables you to load XML Documents into a strongly typed object model within your C# or Visual Basic .Net source code.
Meaning fewer coding errors, reduced development and testing time, and an increase in schema conformance and coding reliability.
Liquid XML Objects Features
- Fully Integrated as a Microsoft Visual Studio extension.
- Generates an easy to use class library for C# and Visual Basic .Net.
- Replace xsd.exe with better XSD 1.0 support and adds support for XSD 1.1.
- Generate simple light weight classes which follow the structure of the XML.
- Supports .Net Core, .Net Standard and .Net Framework
- Supports W3C XML Schema for XSD 1.0 and XSD 1.1 standards.
- Supports SchemaSets containing multiple schemas and namespaces.
- Support for the most complex XML standards.
- Royalty free distribution of compiled code and runtime.
Advanced XML Code Generator for C# and Visual Basic .Net
Microsoft Visual Studio Integration
Once added, you can generate XML data binding code from your XSD in your .Net project from the Visual Studio Solution Explorer.
Liquid XML Objects provides a direct replacement for Microsoft Visual Studio's xsd.exe with better XSD 1.0 standard support and support for W3C XSD 1.1.
The XML Objects generator is integrated into Microsoft Visual Studio. Simply add an .xsd file to your C# or Visual Basic .Net project and right click the generate button. The XML Object code will automatically be generated and added into your project. Changes to the generation settings or the source XSD will cause the XML Object code to be re-generated.
Liquid XML Objects supports integration with:
Light weight code
The generated XML Object code is extremely light weight, containing only attributed classes and properties mapped from the source XSD. The compiled .dlls typically being smaller than the source XSD's.
Embedded XSD Source Code
The compiled assembly contains the original XSD source code which can be used to validate XML documents, providing a definitive pre or post validation step (See Validation Using XML Schemas).
Documentation
Documentation is read from the source XSD xs:annotations and embedded into the generated XML Object source code as structured comments. Free .Net Documentation tools such Sandcastle and Doxygen can then produce CHM or Html documentation.
Platform Support
- .Net Standard 2.0 and later
- .Net Core 2.0 and later
- .Net Framework 4.0 and later
Learn More
- Quick Start Guide
- The Generated Code Explained
- Generating an XML Data Model from an XSD in Visual Studio
- Example : Reading XML
- Example : Writing XML
- Example : Reading JSON
- Example : Writing JSON
- Validation Using XML Schemas
- Using JSON with Liquid XML Objects
Pre-Packaged Industry standards
The following industry standard schema have been pre-packaged as nugets that can easily be incorporated into your project:
- Acord - Life, Annuity & Health Standards Program 2.20.01
- Acord - Property & Casualty/Surety Standards Program 1.16.0
- Acord - Reinsurance & Large Commercial Standards Program 2008-1
- AdsML 3.0 R5, 3.5 R3
- AgXML - Agriculture Information 2.0
- Business To Manufacturing Markup Language v0401
- CDF Markup Language (CDFML) 1.1, 3.5, 3.7
- CIDX eChemical Standard 4.0, 5.0, 5.2
- Data Manipulation Language (DML) 2.1, 3.0.1
- DWML - Digital Weather Markup Language 0
- ebXML Electronic Business using eXtensible Markup Language 2.0
- EventsML - News Exchange Format - Core 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7
- EventsML - News Exchange Format - Power 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7
- Financial Information eXchange (FIX) 4.4, 5.0SP2
- Financial products Markup Language (FpML®) 4.0, 4.1, 4.2, 4.3, 4.4, 4.5, 4.6d, 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6
- GenXML - Genealogy XML 2.0
- Geography Markup Language 2.1.2, 3.0.0, 3.0.1, 3.1.0, 3.1.1, 3.2.1, 3.3
- GoogleBase Feed 1.0
- Google Site Map 0.9
- GraphML 1.0, 1.1
- HapMap - The International HapMap Project 2003-11-04
- Health Level Seven (HL7) hl7_21_xsd, hl7_22_xsd, hl7_23_xsd, hl7_24_xsd, hl7_25_xsd
- HR-XML - Human Resources XML 3.0, 3.1
- Interactive Financial eXchange (IFX) 1.7
- Income Tax Department India ITR-1 ITR-1
- Income Tax Department India ITR-2 ITR-2
- Income Tax Department India ITR-3 ITR-3
- Income Tax Department India ITR-4 ITR-4
- Income Tax Department India ITR-5 ITR-5
- Income Tax Department India ITR-6 ITR-6
- Income Tax Department India ITR-7 ITR-7
- Mail.XML - Mailing supply chain 6.0A
- News Architecture (NAR) - Core 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9
- News Architecture (NAR) - Power 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9
- News Markup Language (NewsML) 1.2
- News Markup Language (NewsML) - Core 2.10, 2.15, 2.16, 2.17, 2.18, 2.19, 2.20, 2.21, 2.22, 2.23, 2.24
- News Markup Language (NewsML) - Power 2.10, 2.15, 2.16, 2.17, 2.18, 2.19, 2.20, 2.21, 2.22, 2.23, 2.24, 2.25, 2.26, 2.27
- National Information Exchange Model (NEIM) 2.0
- NITF News Industry Text Format 3.3, 3.4, 3.5, 3.6
- Open Applications Group (OAGIS) 8, 9, 9.3
- OASIS Content Assembly Mechanism (CAM) TC 1.1
- OASIS Common Alerting Protocol (CAP) TC 1.1
- OASIS Directory Services Markup Language (DSML) 2.0
- OASIS Security Services (SAML) TC 1.0, 1.1, 2.0
- OASIS Provisioning Services TC 2.0
- OASIS Universal Business Language (UBL) TC 1.0, 2.0
- OASIS UDDI Specification TC 3.0
- OASIS Web Services Transaction (WS-TX) TC 1.1
- OASIS Web Services Reliability (WSRM) TC 1.1
- OASIS Web Services Reliable Messaging (WSRM) TC 1.1
- OASIS Web Services Secure Exchange (WS-SX) TC 1.2, 1.3
- OASIS Web Services Secure Conversion (WS-SX) TC 1.3
- OASIS Web Services Business Process Execution Language (WSBPEL) TC 2.0
- OASIS Web Services Distributed Management (WSDM) TC 1.0
- OASIS Web Services Notification (WSN) TC 1.3
- OASIS Web Services Resource Framework (WSRF) TC 1.2
- OASIS Web Services Security (WSS) TC 1.1
- OASIS XML Localisation Interchange File Format (XLIFF) TC 1.2
- Microsoft Office 2003 Reference Schemas 2003
- Office Open XML (OOXML / OpenXML / Ecma 376) 2006
- OFX - Open Financial Exchange 2.1.1
- Open Travel (OTA) 2008B, StandardEntry
- papiNet - e-business standard for the paper and forest industry 2.4
- PIDX - Petroleum Industry Data Exchange Sep 2007
- Project Management XML Schema (PMXML) 2.0
- OASIS Production Planning and Scheduling (PPS) TC 1.0
- Prism - IDEAlliance Specification publishing 2.0
- PSLX - Planning and Scheduling Language 2.1
- Real Estate Transaction Standard (RETS) xsd_20082406
- RIXML - Research Information Markup Language 2.2
- SportsML 1.5, 1.6, 1.7, 1.8, 2.0, 2.1, 2.2, 3.0.2, 3.0.3
- Standards for Technology in Automotive Retail 5.11.4, 5.3.4
- Strategy Markup Language (StratML) 1.0
- VoiceXML - Voice Extensible Markup Language 2.1
- Atom Syndication Format 2005
- Really Simple Syndication (RSS) 2.0.1.9
- Simple Object Access Protocol (SOAP) 1.1, 1.2
- Speech Recognition Grammar Specification 1.0
- Web Application Description Language (WADL) 20061109
- XHTML™ 1.0 The Extensible HyperText Markup Language 1.0
- XML Digital Signature 0.1
- XSL Transformations 1999
- Web3D - Open Standards for Real-Time 3D Communication 3.2
- OGC Web Feature Service 1.1, 2.0
- XBRL eXtensible Business Reporting Language 2.1
Free for Small Projects
Liquid XML Objects can be used for FREE to generate XML Data Binding code for small projects based on the number of classes and properties. Free XML Data Binding code can be generated using the Community Edition.
Royalty Free Distribution for commercial projects
You pay for the development licences only, the compiled code library and associated Liquid Runtime library can be distributed to your customers royalty free as part of your product (see Licence Guide for full details).