|
-
Aug 10th, 2012, 07:04 AM
#1
Thread Starter
Addicted Member
How to validate the XAML Schema
How do you validate the XAML schema? I was given an XSD schema and required to generate the XML files. Unfortunately, I use WPF. Now I have the XAML file instead of the XML file. What do I use to validate the file? Or should I convert it to XML? How do I convvert it to XML?
-
Aug 10th, 2012, 02:25 PM
#2
Re: How to validate the XAML Schema
This question is weird. Xaml is a syntax to build the user interface in WPF/Silverlight/Phone7 software. XML is a layout of a file (although I have to admit, xaml is xml).
You should create a program (in WPF, build the UI in xaml) and let that program create a new XML file (there are several different ways of doing so). Read some stuff about create a xml file in C# and feel free to ask question.
-
Aug 11th, 2012, 06:50 AM
#3
Thread Starter
Addicted Member
Re: How to validate the XAML Schema
Weird indeed! I think I failed to understand the spec myself. In fact, I want to generate XML export files, which will be tested using the .xsd. I have the XML and .xsd files. I need to generate the Xml files to export data across various platforms. I have no idea how to do this. Please help. Good reading references welcome. Thanks
-
Aug 12th, 2012, 02:47 PM
#4
Re: How to validate the XAML Schema
A good startingpoint would be to use svcutil.exe (it has a help option and google explains a lot). It will generate a class, from which you can fill the properties. After that you can use the xmlformatter to generate and XML file from the class
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|