我想如果你运行它,它不需要创建一个类来包装一个基本类型
Liquid XML Objects
namespace LiquidTechnologies.GeneratedLx.Mg
{
#region Elements
/// <summary>A class representing the root XSD element MGRequest@urn:crif-messagegateway:2006-08-23</summary>
/// <XsdPath>schema:schema.xsd/element:MGRequest</XsdPath>
/// <XsdFile>file://sandbox/schema.xsd</XsdFile>
/// <XsdLocation>3:5-3:52</XsdLocation>
[LxSimpleElementDefinition("MGRequest", "urn:crif-messagegateway:2006-08-23", ElementScopeType.GlobalElement)]
public partial class MGRequestElm
{
/// <summary>Holds the <see cref="System.String" /> (xs:http://www.w3.org/2001/XMLSchema:string) value of the element</summary>
/// <XsdPath>schema:schema.xsd/element:MGRequest</XsdPath>
/// <XsdFile>file://sandbox/schema.xsd</XsdFile>
/// <XsdLocation>3:5-3:52</XsdLocation>
[LxValue(LxValueType.Value, XsdType.XsdString)]
public System.String Value { get; set; } = "";
}
/// <summary>A class representing the root XSD element MGResponse@urn:crif-messagegateway:2006-08-23</summary>
/// <XsdPath>schema:schema.xsd/element:MGResponse</XsdPath>
/// <XsdFile>file://sandbox/schema.xsd</XsdFile>
/// <XsdLocation>4:5-4:53</XsdLocation>
[LxSimpleElementDefinition("MGResponse", "urn:crif-messagegateway:2006-08-23", ElementScopeType.GlobalElement)]
public partial class MGResponseElm
{
/// <summary>Holds the <see cref="System.String" /> (xs:http://www.w3.org/2001/XMLSchema:string) value of the element</summary>
/// <XsdPath>schema:schema.xsd/element:MGResponse</XsdPath>
/// <XsdFile>file://sandbox/schema.xsd</XsdFile>
/// <XsdLocation>4:5-4:53</XsdLocation>
[LxValue(LxValueType.Value, XsdType.XsdString)]
public System.String Value { get; set; } = "";
}
#endregion
}
液体XML对象对于小型xsd是免费的。