Click here to Skip to main content
15,897,718 members
Home / Discussions / C#
   

C#

 
QuestionHiding the Maximize and Minimize buttons Pin
Rajdeep.NET is BACK15-Apr-09 19:47
Rajdeep.NET is BACK15-Apr-09 19:47 
AnswerRe: Hiding the Maximize and Minimize buttons Pin
Christian Graus15-Apr-09 19:52
protectorChristian Graus15-Apr-09 19:52 
AnswerRe: Hiding the Maximize and Minimize buttons Pin
Xmen Real 15-Apr-09 21:19
professional Xmen Real 15-Apr-09 21:19 
AnswerRe: Hiding the Maximize and Minimize buttons Pin
Reelix15-Apr-09 22:13
Reelix15-Apr-09 22:13 
QuestionC# PictureBox, OnResize problem Pin
redkin_pavel15-Apr-09 19:35
redkin_pavel15-Apr-09 19:35 
AnswerRe: C# PictureBox, OnResize problem Pin
Xmen Real 15-Apr-09 19:48
professional Xmen Real 15-Apr-09 19:48 
GeneralRe: C# PictureBox, OnResize problem Pin
contactpratikpatel18-Jun-09 2:03
contactpratikpatel18-Jun-09 2:03 
Questiontarget namespace of schema Pin
George_George15-Apr-09 19:31
George_George15-Apr-09 19:31 
Hello everyone,

I want to do XML validation to validate whether an input XML file conforming to a schema file (.xsd). My question is when do we need to specify the target namespace parameter and what is the function of the target namespace parameter?

I got this question from the following MSDN pages,

http://msdn.microsoft.com/en-us/library/1hh8b082.aspx

http://msdn.microsoft.com/en-us/library/system.xml.schema.xmlschemaset.aspx

More specifically, I am referring to the 1st parameter of Add method of XmlSchemaSet class.

My current confusions are, please help to review whether my understanding in 1 and 2 are both correct, and help to answer question 3 and 4.

1. In the XML schema file, there is a target namespace attribute at top, and all elements defined in this XML schema file are defined in the target namespace;
2. In the XML document file to check against scheme, the XML document may use elements defined in the "target namespace" of the XML schema file, and may also use elements from other namespaces other than the "target namespace" defined in the XML schema file;
3. Question is, should we just add the "target namespace" to the Add method of XmlSchemaSet class, or add all namespaces which the XML document will use to the Add method of XmlSchemaSet class?
4. Another question is, whether we could define multiple "target namespace" in the XML schema file? If yes, how?

thanks in advance,
George
QuestionThread end Pin
yesu prakash15-Apr-09 18:43
yesu prakash15-Apr-09 18:43 
AnswerRe: Thread end Pin
N a v a n e e t h15-Apr-09 19:04
N a v a n e e t h15-Apr-09 19:04 
AnswerRe: Thread end Pin
Vikram A Punathambekar15-Apr-09 19:08
Vikram A Punathambekar15-Apr-09 19:08 
AnswerRe: Thread end Pin
Fayu16-Apr-09 2:38
Fayu16-Apr-09 2:38 
QuestionSet User for SQL Server and Windows App Pin
BhavinBhatt15-Apr-09 18:40
BhavinBhatt15-Apr-09 18:40 
AnswerRe: Set User for SQL Server and Windows App Pin
Henry Minute15-Apr-09 23:51
Henry Minute15-Apr-09 23:51 
QuestionADO.NET nested transaction [modified] Pin
devvvy15-Apr-09 18:31
devvvy15-Apr-09 18:31 
QuestionAbout wireless data transfer Pin
Xmen Real 15-Apr-09 18:25
professional Xmen Real 15-Apr-09 18:25 
QuestionDirectory Stream Pin
biggy115-Apr-09 13:31
biggy115-Apr-09 13:31 
AnswerRe: Directory Stream Pin
harold aptroot15-Apr-09 13:37
harold aptroot15-Apr-09 13:37 
GeneralRe: Directory Stream Pin
biggy115-Apr-09 13:51
biggy115-Apr-09 13:51 
GeneralRe: Directory Stream Pin
harold aptroot15-Apr-09 14:01
harold aptroot15-Apr-09 14:01 
GeneralRe: Directory Stream Pin
biggy115-Apr-09 14:12
biggy115-Apr-09 14:12 
GeneralRe: Directory Stream Pin
harold aptroot15-Apr-09 14:43
harold aptroot15-Apr-09 14:43 
GeneralRe: Directory Stream [modified] Pin
biggy115-Apr-09 15:00
biggy115-Apr-09 15:00 
GeneralRe: Directory Stream Pin
harold aptroot16-Apr-09 1:36
harold aptroot16-Apr-09 1:36 
GeneralRe: Directory Stream Pin
biggy116-Apr-09 10:21
biggy116-Apr-09 10:21 

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.