Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

Unable to parse CSDL

$
0
0

I'm using CsdlReader in C# to parse a csdl. Part of the XML file is as follows:

<AssociationName=\"Medalists_Medals_Medals_Medal_ID\"><EndRole=\"Medalists_Medal_ID\"Type=\"Sandbox.Medalists\"Multiplicity=\"*\"/><EndRole=\"Medals_Medal_ID\"Type=\"Sandbox.Medals\"Multiplicity=\"0..1\"/></Association>

And this is my code:

CsdlReader.TryParse(schemaReaders,out edmModel,out edmErrors)

As you can see. Role is an attribute of End. However, it seems that I am unable to parse that XML. And I have errors like this in edmErrors:

{MissingAttribute : Required schema attribute 'Role' is not present on element 'End'. : (0, 0)}

The message tells me that Role is missing, but I do have that in my csdl.


Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>