In an existing Winforms application, I receive XML formatted data from a database query, and use a local XSD file to parse the resulting XML element.
Now, I'd like to achieve the same from within a WPF XBAP (application in browser), so no local XSD file is accessible.
Obviously I can load the XSD file onto my web server, but how do I tell WPF to use this schema file for parsing the XM开发者_JAVA技巧L chunk?
Use XmlnsDefinition and XmlnsPrefix assemblies to map the XSD file to page element or XML root element.
精彩评论