I have an XML file which looks like follows, that I need to validate.
<?xml version="1.0" encoding="iso-8859-1"?>
<MyAttributes
Att1="00:00:00"
Att2="00:05:00"
Att3="00:05:00"
Att4="foo,bar,true,true,,,0253d1f0-27d6-4d90-9d35-e396007db787"
Att5="abc,def,false,true,,,4534234-65d6-6590-5535-da2007db787"
....
..../>
I want to validate the xml file using XSD schema files as follows.
MyAttributes contains Att1, Att2 and Att3 2. Values of Att1, Att2 and Att3 are of the type TimeSpan 3. All the other attributes in MyAttributes have the belwo format.
- Format of all the other attributes are as follows
csv format with 7 columns
first and second columns should be non-empty strings col3 and col4 should be boolean
col5 and col6 are strings.can be empty col7 should be of type GUID
Is there a way I can validate this with some kind of regex assertion using XSD 1.1?