Click here to Skip to main content
15,911,715 members
Home / Discussions / XML / XSL
   

XML / XSL

 
AnswerRe: how to check element exists or not???? Pin
Denevers10-Dec-05 9:42
Denevers10-Dec-05 9:42 
QuestionXML digital signature processing rules and syntax Pin
Colin Angus Mackay22-Nov-05 6:03
Colin Angus Mackay22-Nov-05 6:03 
QuestionHow to read attribute of an element Pin
oohungoo20-Nov-05 16:48
oohungoo20-Nov-05 16:48 
AnswerRe: How to read attribute of an element Pin
Sushant_Mathur22-Nov-05 0:54
Sushant_Mathur22-Nov-05 0:54 
QuestionDyanamic menu using XML Pin
Shaji Raghavan19-Nov-05 23:47
Shaji Raghavan19-Nov-05 23:47 
Questionunparsed external entity question Pin
DJS817-Nov-05 12:31
DJS817-Nov-05 12:31 
QuestionRegarding CSS Pin
gauravbajaj15-Nov-05 0:37
gauravbajaj15-Nov-05 0:37 
Questionforce XML to get validated against an XSD schema? Pin
Roman Nurik13-Nov-05 18:01
Roman Nurik13-Nov-05 18:01 
I'm using C# (.NET 2.0 framework)..

Is it possible to force an XML file that doesn't reference an XSD schema to be validated against a specified XSD schema?

Here is a code segment I'm using:
XmlSchema schema = XmlSchema.Read(
	new StringReader(MySchemaStringTextBox.Text),
	ValidationCallback);

XmlReaderSettings readerSettings = new XmlReaderSettings();
readerSettings.Schemas.Add(schema);
readerSettings.ValidationType = ValidationType.Schema;
readerSettings.ValidationFlags = XmlSchemaValidationFlags.None;

XmlReader configReader = XmlReader.Create(new StringReader(MyXmlTextBox.Text), readerSettings);

XmlDocument config = new XmlDocument();
config.Load(configReader);
config.Validate(new ValidationEventHandler(ValidationCallback));


ValidationCallback never gets called, unless a schema is actually specified in the XML file.

Thanks in advance!

r -

QuestionHow to use " " in *.xsl file Pin
oohungoo13-Nov-05 16:15
oohungoo13-Nov-05 16:15 
AnswerRe: How to use " " in *.xsl file Pin
Sushant_Mathur14-Nov-05 0:33
Sushant_Mathur14-Nov-05 0:33 
Questionnewbie needs xsl help Pin
dunbshy11-Nov-05 5:57
dunbshy11-Nov-05 5:57 
AnswerRe: newbie needs xsl help Pin
Sushant_Mathur14-Nov-05 0:23
Sushant_Mathur14-Nov-05 0:23 
QuestionConnecting Applications together Pin
kourvoisier11-Nov-05 4:26
kourvoisier11-Nov-05 4:26 
AnswerRe: Connecting Applications together Pin
Curtis Schlak.24-Nov-05 14:57
Curtis Schlak.24-Nov-05 14:57 
QuestionDifferentiate XML files with OpenFileDialog Pin
softplanner11-Nov-05 3:31
softplanner11-Nov-05 3:31 
QuestionPassing a xml object in C# Pin
pavan bhatara8-Nov-05 0:17
pavan bhatara8-Nov-05 0:17 
QuestionXML nomenclature/structure question Pin
Vikram A Punathambekar6-Nov-05 19:56
Vikram A Punathambekar6-Nov-05 19:56 
AnswerRe: XML nomenclature/structure question Pin
Shog922-Nov-05 6:51
sitebuilderShog922-Nov-05 6:51 
QuestionCan't parse SOAP with XPath Pin
Zhornyk5-Nov-05 3:19
Zhornyk5-Nov-05 3:19 
QuestionVBA / XML Pin
stevenho2-Nov-05 12:13
stevenho2-Nov-05 12:13 
QuestionGetting IE to pass a file in XML format with a custom extension to my C#/Winforms application Pin
timothymfox31-Oct-05 6:45
timothymfox31-Oct-05 6:45 
QuestionProblem changing class field from string to Class Pin
Jason Pease31-Oct-05 0:59
Jason Pease31-Oct-05 0:59 
Questionsyntax error '<' Pin
gr8coaster32930-Oct-05 15:17
gr8coaster32930-Oct-05 15:17 
AnswerRe: syntax error '<' Pin
Christian Graus30-Oct-05 16:05
protectorChristian Graus30-Oct-05 16:05 
GeneralRe: syntax error '<' Pin
gr8coaster32930-Oct-05 17:09
gr8coaster32930-Oct-05 17:09 

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.