开发者

Use XSD file in XBAP application

开发者 https://www.devze.com 2023-03-25 04:40 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消