Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
300
Is the XML schema of the AppStylist stylesheet files?
posted

Where can I find an XML schema for the AppStylist stylesheet files?

I would like to know the different elements/attributes and their valid values.

Thanks

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    The schema is available from the StyleManager.GetSchema method. So you can call this method in your code to return the schema. If you want to save it to a file so you can look at it, you could do something like this:


                string fileName = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), "appStylistSchema.xml");
                System.Xml.Schema.XmlSchema schema  = StyleManager.GetSchema(true);           
                FileStream fs = new FileStream(fileName, FileMode.CreateNew);
                StreamWriter sr = new StreamWriter(fs);
                schema.Write(sr);
                Process.Start(fileName);

Children
No Data