XmlSchemaClassGenerator icon indicating copy to clipboard operation
XmlSchemaClassGenerator copied to clipboard

Is it possible to remove generation of classes which only contains text (Value)

Open yodiz opened this issue 9 months ago • 1 comments

Not an issue, more of a question: So for example this would be a simple string instead of TaxableAmount.

[GeneratedCodeAttribute("XmlSchemaClassGenerator", "2.1.1181.0")]
[SerializableAttribute()]
[XmlTypeAttribute("TaxableAmount", Namespace="")]
[DebuggerStepThroughAttribute()]
[DesignerCategoryAttribute("code")]
public partial class TaxableAmount
{
    
    /// <summary>
    /// <para xml:lang="en">Gets or sets the text value.</para>
    /// </summary>
    [XmlTextAttribute()]
    public string Value { get; set; }
}

yodiz avatar Mar 27 '25 14:03 yodiz

Can you provide an example schema?

mganss avatar Mar 29 '25 20:03 mganss