Liquid XML Objects (C#, Visual Basic .Net) / Code Generation / Code Generator for .Net
In This Topic
    Code Generator for .Net
    In This Topic

    Visual Studio

    The easiest way to work with Liquid XML Objects is to use it within Visual Studio. The Liquid XML Objects Visual Studio Extension works with Visual Studio 2015 and above.

    Including an XML Schema in a Visual Studio Project

    Individual XML Schemas can be added to an Visual Studio Project, code can then be generated from them by right clicking on them selecting the "Generate Data Binding Code" menu option. Liquid XML with then automatically generate the XML Serialization code and associate it with the XML Schema File. See Generating an XML Data Model from an XSD in Visual Studio for more information.

    Adding an XML Schema Set to a Visual Studio Project

    If your XML Schema spans multiple files or is located outside of your Visual Studio Project, then you can add it as a schema set. The schema set file is just a pointer to the schemas that will be used to generate the XML Objects code from. New Schema set files can be added to an existing project via the projects "Add Item" menu, then via "Liquid Technologies"->"XML Data Access Model". See Generating an XML Data Model from a Schema Set in Visual Studio for more information.

    Creating a new Liquid XML Objects project within Visual Studio

    A new project template is provided that will create a new Visual Studio Project, add an XML Schema Set file and configure the code generation options. This is effectively the same as creating your own project and adding an XML Schema Set item. See XML Data Model Project for more information.

    XML Data Binding Wizard

    Liquid XML Object code can be generated using the XML Data Binding Wizard, a graphical tool that guides you through the code generation options. The output takes the form of a Visual Studio project or a single code file containing the Liquid XML Objects serialization code. The settings configured in the wizard can be saved as an .lxo file which and then be re-run through the wizard or used as a command file when running the command line version. For more information see the XML Data Binder Wizard getting started guide.

    Command Line

    Code can be generated directly from the command line using the LXO.exe. This is ideal for running in automated build environments etc. The command line options can be constructed manually or taken from the .lxo file created when running the XML Data Binding Wizard. See Command Line Options for more information.

    See Also