No elements in my schema xml in C#

P

Patrick

Hi

I'm programming a parser XSD for a Infopath form in C#. But my schema object
returns me no elements. This is my code :

using System;
using System.IO;
using System.Collections;
using System.Collections.Specialized;
using System.Xml;
using System.Xml.Schema;

....
XmlTextReader reader = new XmlTextReader(myschema.xsd);
Schema = XmlSchema.Read(reader);
XmlSchemaObjectTable schemaobjecttable;

schemaobjecttable = Schema.Elements; // --> schemaobjecttable .Count = 0 !!!

Can somebody tell me why it returns me no elements in my collection
schemaobjecttable ??? Is there another solution to parse a schema XML for a
Infopath form ?

Thx a lot.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top