Click here to Skip to main content
16,005,826 members
Home / Discussions / XML / XSL
   

XML / XSL

 
QuestionConverting Word ML to XML Pin
Tejabhiram3-Mar-09 21:26
Tejabhiram3-Mar-09 21:26 
AnswerRe: Converting Word ML to XML Pin
Lee Humphries3-Mar-09 21:55
professionalLee Humphries3-Mar-09 21:55 
GeneralRe: Converting Word ML to XML Pin
Tejabhiram3-Mar-09 22:12
Tejabhiram3-Mar-09 22:12 
GeneralRe: Converting Word ML to XML Pin
Lee Humphries3-Mar-09 23:10
professionalLee Humphries3-Mar-09 23:10 
GeneralRe: Converting Word ML to XML Pin
Tejabhiram3-Mar-09 23:34
Tejabhiram3-Mar-09 23:34 
QuestionXML to JSON using XSLT Pin
Nishanthkumar26-Feb-09 19:29
Nishanthkumar26-Feb-09 19:29 
AnswerRe: XML to JSON using XSLT Pin
Curtis Schlak.27-Feb-09 1:33
Curtis Schlak.27-Feb-09 1:33 
QuestionReading XML Schema and schemas located in Includes Pin
ValAkkapeddi26-Feb-09 12:23
ValAkkapeddi26-Feb-09 12:23 
I'm writing a C# app to document the types of XmlSchemaComplex types...

I have a schema file containing complexTypes, and those complexTypes have elements which are of other complexTypes, located in another file that I'm including into my outer schema file. I'm reading the schema file, going into the complexTypes, and trying to read the types of the sub-elements that are of the sub-types.

However, the type attributes of the elements inside my main complexTypes are set to nulls, although the SchemaTypeText is filled out with the current type name and namespace.

The code that I'm using looks a little something like this (please pardon the horrendous noobishness):


XmlTextReader schemaReader = new XmlTextReader(schemaPath);
XmlSchema schema = XmlSchema.Read(schemaReader, null);

foreach (XmlSchemaObject xso in schema.Items)
{
if (xso is XmlSchemaComplexType)
{
XmlSchemaComplexType rootType = xso as XmlSchemaComplexType;
if (rootType.Particle is XmlSchemaSequence)
{
XmlSchemaSequence rootseq = (XmlSchemaSequence)rootType.Particle;
foreach(XmlSchemaObject ixso in rootseq.Items)
{
if (ixso is XmlSchemaElement)
{
XmlSchemaElement ele = ixso as XmlSchemaElement;
XmlSchemaType eleType = ele.SchemaType; // this is null
string typTxt = ele.SchemaTypeText; // this right, but strings.
}
}
}
}



If I can get the part about accessing the element types of the nested elements in my complexTypes right, I want to pass those complexTypes into a recursive method that'll enumerate all the members of the inner complexTypes for me, etc.
QuestionXML Read and Write in Java Pin
TJS4u25-Feb-09 18:43
TJS4u25-Feb-09 18:43 
AnswerRe: XML Read and Write in Java Pin
led mike26-Feb-09 4:42
led mike26-Feb-09 4:42 
QuestionXSLT nested list problem [modified] Pin
PeOpLesChAmP25-Feb-09 5:02
PeOpLesChAmP25-Feb-09 5:02 
AnswerRe: XSLT nested list problem Pin
led mike26-Feb-09 4:44
led mike26-Feb-09 4:44 
QuestionXML Pin
Bedke24-Feb-09 16:26
Bedke24-Feb-09 16:26 
AnswerRe: XML Pin
Calin Tatar26-Feb-09 5:50
Calin Tatar26-Feb-09 5:50 
QuestionHow to convert from html to xml Pin
Tejabhiram22-Feb-09 18:51
Tejabhiram22-Feb-09 18:51 
AnswerRe: How to convert from html to xml Pin
Curtis Schlak.26-Feb-09 15:59
Curtis Schlak.26-Feb-09 15:59 
GeneralRe: How to convert from html to xml Pin
Tejabhiram26-Feb-09 17:49
Tejabhiram26-Feb-09 17:49 
GeneralRe: How to convert from html to xml Pin
Curtis Schlak.27-Feb-09 1:31
Curtis Schlak.27-Feb-09 1:31 
GeneralRe: How to convert from html to xml Pin
Tejabhiram27-Feb-09 2:05
Tejabhiram27-Feb-09 2:05 
GeneralRe: How to convert from html to xml Pin
Curtis Schlak.27-Feb-09 3:43
Curtis Schlak.27-Feb-09 3:43 
GeneralRe: How to convert from html to xml Pin
Tejabhiram1-Mar-09 17:56
Tejabhiram1-Mar-09 17:56 
QuestionError in Transforming Serialized XML from a WCF DataContract to an HTML..Am i missing anything? (new to xslt) Pin
Sree Raj21-Feb-09 5:29
Sree Raj21-Feb-09 5:29 
QuestionRead XML using XmlTextReader Pin
jammmie99921-Feb-09 3:02
professionaljammmie99921-Feb-09 3:02 
AnswerRe: Read XML using XmlTextReader Pin
led mike25-Feb-09 4:37
led mike25-Feb-09 4:37 
QuestionUsing RSS Feeds For a Different Server Pin
Lior Zat20-Feb-09 8:40
Lior Zat20-Feb-09 8:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.