Thursday, November 24, 2022

Lists and Arrays in XML with Liquid XML Objects

We recently received a support ticket with a question with regards to defining arrays in XML and using them within the C# code generated from Liquid XML Objects.

XML Schema (XSD)

The following demonstrates XML Schema (XSD) two ways to do this, either using an attribute list or a list of elements.

<?xml version="1.0" encoding="utf-8" ?>
<!--Created with Liquid Studio (https://www.liquid-technologies.com)-->
<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="MyData">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="Name" type="xs:string" />
                <xs:element name="UIntData" type="xs:unsignedInt" minOccurs="10" maxOccurs="10" />
            </xs:sequence>
            <xs:attribute name="ByteData" use="required">
                <xs:simpleType>
                    <xs:list itemType="xs:byte" />
                </xs:simpleType>
            </xs:attribute>
        </xs:complexType>
    </xs:element>
</xs:schema>

 

XML Data

The following XML data is valid against the above XML Schema (XSD) and demonstrates a list of values in the ByteData attribute and a list of values as UIntData elements.

<?xml version="1.0" encoding="utf-8"?>
<!-- Created with Liquid Studio (https://www.liquid-technologies.com) -->
<MyData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
        xsi:noNamespaceSchemaLocation="C:\Temp\ListExample.xsd" 
        ByteData="16 -23 -125 -114 50 -14">
    <Name>string</Name>
    <UIntData>5505</UIntData>
    <UIntData>5285</UIntData>
    <UIntData>4753</UIntData>
    <UIntData>8634</UIntData>
    <UIntData>8294</UIntData>
    <UIntData>4300</UIntData>
    <UIntData>990</UIntData>
    <UIntData>1661</UIntData>
    <UIntData>3025</UIntData>
    <UIntData>5070</UIntData>
</MyData>

 

XML Data Binding Source Code (C#)

If you use Liquid XML Objects to generate code from the XSD, you will see the following properties in the generated code to access the array data:

// attribute list will use...
public System.SByte[] ByteData { get; set; } = new System.SByte[] {};

// element list will use...
public List<System.UInt32> UIntData { get; } = new List<System.UInt32>();


What is Liquid XML Objects?

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.

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.
  • Support for the most complex XML standards.
  • Royalty free distribution of compiled code and runtime.

Download a Free Trial:
https://www.liquid-technologies.com/trial-download 

 

Tuesday, November 22, 2022

New Release - Liquid Studio v20.2.0

Announcing Liquid Studio v20.2.0:

  • Added ability to set Column Data Type for Text Components in Data Mapper
  • Fixed sequence issue with XML Objects
  • Fixed issues raised by User Exception Reports
  • General Fixes

Download a Free Trial:
https://www.liquid-technologies.com/trial-download


Monday, November 07, 2022

New Release - Liquid Studio v20.1.5

Announcing Liquid Studio v20.1.5:

  • Added validation option to resolve http and https as same file
  • Added Find functionality to Data Mapper
  • Improved Errors and Warnings in Data Mapper
  • Fixed issue in C++ XML Data Binder for handling Substitution Groups
  • General Fixes

Download a Free Trial:
https://www.liquid-technologies.com/trial-download

 

Thursday, October 27, 2022

New Release - Liquid Studio v20.1.4

Announcing Liquid Studio v20.1.4:

  • Fixed issue running the Convert JSON Schema to XSD Wizard from the Tools-Convert menu
  • Fixed cast issues in Data Mapper
  • Improved Data Mapper Error Reporting
  • Improved Zoom functionality in Data Mapper
  • Added keyboard navigation in Data Mapper
  • Added optimizations for loading Data Mapper projects
  • Fixed issues from user exception reports
  • General Fixes

Download a Free Trial:
https://www.liquid-technologies.com/trial-download


Tuesday, October 11, 2022

New Release - Liquid Studio v20.1.3

Announcing Liquid Studio v20.1.3:

  • Fixed issue JSON roundtrip issues in Liquid XML Objects
  • Fixed Nullable Reference Types issue in Liquid XML Objects
  • Fixed issue with .lxo files not getting selected when opened from Windows Explorer
  • General Fixes

Download a Free Trial:
https://www.liquid-technologies.com/trial-download

 

Thursday, October 06, 2022

New Release - Liquid Studio v20.1.2

Announcing Liquid Studio v20.1.2:

  • Fixed issues when loading Data Mapper files
  • Fixed issues in JSON diff tool
  • Fixed issues in XSD to JSON Schema Conversion
  • General Fixes

Download a Free Trial:
https://www.liquid-technologies.com/trial-download


Wednesday, September 28, 2022

New Release - Liquid Studio v20.1.1

Announcing Liquid Studio v20.1.1:

  • Fixed JSON Schema Validation issues
  • Fixed issue with Annotation Window not using Documentation Font and Word Wrap settings
  • General Fixes

Download a Free Trial:
https://www.liquid-technologies.com/trial-download

 

Thursday, September 22, 2022

NEW VIDEO: Using XML Schema Dependency Graphs in Liquid Studio

NEW VIDEO: Using XML Schema Dependency Graphs in Liquid Studio...


This video tutorial shows how to view XML Schema Dependencies and find errors in an XML Schema Set using a Dependency Graph.

Download a Free Trial:
https://www.liquid-technologies.com/trial-download

 

 

Tuesday, September 20, 2022

New Release - Liquid Studio v20.1.0

What's New from Liquid Technologies?

Liquid Technologies have announced the availability of Liquid Studio v20.1 and Liquid XML Data Binder v20.1, providing many new features and enhancements plus general performance and stability improvements.

The new release extends and improves on the existing functionality by introducing other new tools and technologies that our users have requested in order to continue to make Liquid Studio the best value XML development environment available.

Liquid Studio Framework

  • NEW Option to run multiple files from the Project Window
  • NEW Option to run XSLT from the command line
  • NEW Option to run XQuery from the command line
  • NEW Option to cancel opening a Database Connection
  • NEW Option to cancel opening Web Service Connection
  • Performance Enhancements for loading Database Connections
  • Performance Enhancements for loading Web Service Connections
  • Fixed High DPI issues

JSON Schema

  • Enhanced XSD to JSON Schema converter
  • Fixed issues with "definitions" and "$defs"
  • Fixed issues resolving items

JSON Editor

  • Fixed issues using relative paths to JSON Schema for JSON validation
  • Fixed issues pasting large data
  • Fixed issues with JSON spell checker

XML Schema Sets

  • Enhanced Hierarchy Chart now opens as a Schema Set showing dependency graph
  • Added ability to Print Preview Schema Sets
  • Fixed issues with printing Schema Sets
  • Fixed UI issues

XML Data Mapper

  • NEW Support for Abstract Elements (xsi:type)

XML Data Binder

  • NEW Linux Runtime support for gcc 12.2 / 11.3 / 10.4 / 9.5
  • Fixed issue with default enum values in C# and VB.NET
  • Fixed issue with Viewer Nuget linking to wrong Runtime version

XML Objects

  • Added Nullable Reference Types (NRT) option to Data Binder Wizard
  • Fixed issue with Nullable Reference Types (NRT) where declared type is required and abstract
  • Fixed issue where the property cardinality changes when it is overridden
  • Fixed issues with JSON serialization

Visual Studio Integration

  • NEW XML Schema Set view with dependency graph

General Improvements

  • Along with the new features outlined above, existing features have also been enhanced and improved with functionality requested by our users.


Download a Free Trial:
https://www.liquid-technologies.com/trial-download

 

 

Tuesday, August 02, 2022

New Release - Liquid Studio v20.0.6

Announcing Liquid Studio v20.0.6:

  • Improved Project Window functionality - Deleted items now go to Windows Recycle Bin
  • Improved XPath Query Builder functionality
  • Fixed issues from User Exception Reports
  • General Fixes

Download a Free Trial:
https://www.liquid-technologies.com/trial-download

 

Wednesday, July 27, 2022

NEW VIDEO: Replace Data Values using Lookup Component in Liquid Data Mapper...

 NEW VIDEO: Replace Data Values using Lookup Component in Liquid Data Mapper...


This video tutorial shows you how to create a simple transform to replace data values using the Lookup and Cast components in Liquid Data Mapper.

Download a Free Trial:
https://www.liquid-technologies.com/trial-download

 

 

Thursday, July 14, 2022

NEW XML and JSON IDE - Liquid Studio Overview Video

NEW Video: XML and JSON IDE - Liquid Studio Overview...

An introduction to the Liquid Studio IDE, including XML Schema Editing, XML Editing and XPath tools.

Download a Free Trial:
https://www.liquid-technologies.com/trial-download

 

 

Monday, July 11, 2022

New Release - Liquid Studio v20.0.5

Announcing Liquid Studio v20.0.5:

  • Fixed issue with Data Mapper Web Services showing wrong data type for Input Body
  • Fixed issue with XML Data Binder C++ Runtime potential memory leak and reduced memory usage
  • General Fixes

Download a Free Trial:
https://www.liquid-technologies.com/trial-download

 

Friday, June 24, 2022

New Release - Liquid Studio v20.0.4

Announcing Liquid Studio v20.0.4:

  • Fixed issue in XML Data Binder C++ Generated Code for Enum Collection namespaces
  • General Fixes

Download a Free Trial:
https://www.liquid-technologies.com/trial-download

 

Friday, June 17, 2022

New Release - Liquid Studio v20.0.3

Announcing Liquid Studio v20.0.3:

  • Improved Installer
  • Fixed issue with opening remote OpenAPI and WSDL files from Microsoft Visual Studio Extensions
  • Fixed issue with toolbars in Dark Theme
  • Fixed issues from User Exception Reports
  • General Fixes

Download a Free Trial:
https://www.liquid-technologies.com/trial-download

 

Wednesday, June 08, 2022

New Release - Liquid Studio v20.0.2

Announcing Liquid Studio v20.0.2:

  • Improved memory management
  • Fixed issues with Global Component Locator for large XML Schema
  • Fixed issue with Data Mapper Web Services for string response types
  • Fixed issue in XSD Editor Refactor Rename
  • Fixed issues from User exception reports
  • General Fixes

Download a Free Trial:
https://www.liquid-technologies.com/trial-download

 

Saturday, May 21, 2022

New Release - Liquid Studio v20.0.1

What's New from Liquid Technologies?

Liquid Technologies have announced the availability of Liquid Studio v20 and Liquid XML Data Binder v20, providing many new features and enhancements plus general performance and stability improvements.

The new release extends and improves on the existing functionality by introducing other new tools and technologies that our users have requested in order to continue to make Liquid Studio the best value XML development environment available.

NEW Web Service Testing

  • NEW OpenAPI (REST) Web Service Call Testing
  • NEW Web Service Connection Explorer
  • NEW Web Service Method Selection Control

Liquid Data Mapper

  • NEW OpenAPI (REST) Web Services
  • NEW Code generator option to target Microsoft Visual Studio 2022
  • NEW Code generator option to target .Net 6.0 for C#

NEW YAML Editor

  • NEW Convert YAML to JSON Wizard

XML Data Binder

  • NEW Code generator option to target Microsoft Visual Studio 2022
  • NEW Code generator option to target .Net 6.0 for C# and Visual Basic .Net
  • NEW Code Generator support for Visual C++ 14.3
  • NEW Linux Runtime support for gcc 11.2 / 10.3 / 9.4 / 8.5 / 7.5 / 6.5 / 5.5 / 4.9.4
  • Added Digital signed Visual C++ 14.2 and 14.3 Runtime dlls with SHA1 and SHA256

Liquid XML Objects

  • NEW Code generator option to target Microsoft Visual Studio 2022
  • NEW Code generator option to target .Net 6.0 for C# and Visual Basic .Net

Liquid Studio Framework

  • Added option to move quickly to Next (F8) or Previous (Shift+F8) error in Error Window
  • Fixed issue with multiple Scrollbars appearing on resize in Dark Theme

Liquid Studio Text Editors

  • Fixed issue printing in Dark Theme
  • Fixed issue with always printing to default printer

JSON Schema Editor

  • NEW JSON Schema Draft 2020-12 support
  • Fixed issues with JSON Schema Validation

JSON Editor

  • NEW Convert JSON to YAML Wizard

Large File Hex Editor

  • Added Go to address, Insert Bytes, Paste Insert/Overwrite, Copy Address
  • Added Ctrl-End, Ctrl-Home keyboard shortcuts to move to start and end of file
  • Added Ctrl-Shift-End, Ctrl-Shift-home keyboard shortcuts to select to start and end of file
  • Fixed issue with Hex address display for files greater than 4GB
  • Fixed issue with Caret in header bar
  • Fixed issue with Undo groups

Microsoft Visual Studio Integration

  • NEW OpenAPI (REST) Web Service Call Testing
  • NEW JSON Schema Draft 2020-12 support
  • Fixed issue when saving a new Web Service Test document
  • Fixed issue introduced by changes to the Visual Studio API

Liquid Data Diff Viewer

  • Fixed invalid index issue with JSON Diff
  • Fixed issue with JSON comments
  • Fixed issue with Diff of identical JSON documents

General Improvements

  • Along with the new features outlined above, existing features have also been enhanced and improved with functionality requested by our users.

Download a Free Trial:
https://www.liquid-technologies.com/trial-download
 

Monday, January 31, 2022

Liquid Studio 2021 - v19.0.14

Announcing Liquid Studio 2021 v19.0.14:

  • Added option to automatically write UNA segment for EDIFACT in EDI Writer Component in Data Mapper
  • Fixed issue using duplicate nodes with EDI Writer Component in Data Mapper
  • Fixed issue escaping characters with EDI Writer Component in Data Mapper
  • General Fixes

Download a Free Trial:
https://www.liquid-technologies.com/trial-download