Hello. My objective is to validade a xml file against the xsd whitch is in a string variable.
/*
book.xml
<?xml version="1.0" encoding="utf-8"?>
<author xmlns='urn:book store-schema' xmlns:xsi='http ://www.w3.org/2001/XMLSchema-instance'>
<first-name>Herman</first-name>
<last-name>Melville</last-name>
</author>
...
User Profile
Collapse
-
Jimis started a topic How to validate, on run time, xml against xsd without save the file on local folder?in C SharpHow to validate, on run time, xml against xsd without save the file on local folder?
I need to validate XMLs files against XSDs. The XML will be downloaded from URL and I will keep it as StremReader or XmlDocument. The XSD will return from DataBase as nvarchar(max). I am prohibited to save the files locally. Has anybody an example how to deal with this situation? I am trying this way but I am getting the XmlException "Root element is missing".
public void voltaXsd_em_Str eamReader()
...
No activity results to display
Show More