EDN Admin
Well-known member
Hi,
I have an issue with XML validation with attributes, say I have the following XML
<Book name="Test"/>
<Book1 name="Test1"/>
The XSD contains the rules defined on what the attributes can contain, I use XML Reader and while(XMLreader.read())... methods for validation and catch the validation in the validation event handler. The problem is, when there is an issue with the first
element, the validation error message says - name has failed - but it is not giving the element name(in this case Book or Book1), so I am not able to get to know the element name of it, could you please advice on how to track the element name when the attribute
validation fails, or give me some samples on how to get this working. Thanks. <hr class="sig Rpaul
View the full article
I have an issue with XML validation with attributes, say I have the following XML
<Book name="Test"/>
<Book1 name="Test1"/>
The XSD contains the rules defined on what the attributes can contain, I use XML Reader and while(XMLreader.read())... methods for validation and catch the validation in the validation event handler. The problem is, when there is an issue with the first
element, the validation error message says - name has failed - but it is not giving the element name(in this case Book or Book1), so I am not able to get to know the element name of it, could you please advice on how to track the element name when the attribute
validation fails, or give me some samples on how to get this working. Thanks. <hr class="sig Rpaul
View the full article