In C#, how to determine the XSD-defined MaxLength for an element

后端 未结 2 1484
轮回少年
轮回少年 2020-12-16 07:39

I\'m using XmlReader with an attached XSD for validation.

As my XML document is being read and validated, I want to determine in my C# code the \'maxLength\' value s

2条回答
  •  佛祖请我去吃肉
    2020-12-16 08:25

    you'll find here:Accessing XML Schema Information During Document Validation a good explanation of how to do this & more.

提交回复
热议问题