Click here to Skip to main content
15,896,154 members
Home / Discussions / C#
   

C#

 
GeneralRe: array incrementation Pin
pankajgarg1210-Apr-06 3:57
pankajgarg1210-Apr-06 3:57 
AnswerRe: array incrementation Pin
Guffa10-Apr-06 5:54
Guffa10-Apr-06 5:54 
GeneralRe: array incrementation Pin
pankajgarg1210-Apr-06 18:45
pankajgarg1210-Apr-06 18:45 
AnswerRe: array incrementation Pin
Darth110-Apr-06 20:59
Darth110-Apr-06 20:59 
QuestionVS 2003 and VS 2005? Pin
naglbitur10-Apr-06 3:19
naglbitur10-Apr-06 3:19 
AnswerRe: VS 2003 and VS 2005? Pin
Stefan Troschuetz10-Apr-06 3:26
Stefan Troschuetz10-Apr-06 3:26 
AnswerRe: VS 2003 and VS 2005? Pin
albCode10-Apr-06 3:35
albCode10-Apr-06 3:35 
QuestionXML problem Pin
Timothy_198210-Apr-06 2:45
Timothy_198210-Apr-06 2:45 
having following problem

i use a xmltextreader to read a xml document. After i construct it, i create a xmlvalidating reader based on this xmltextreader.
Then i create a xpathdocument on this object

XmlTextReader reader = new XmlTextReader(XXX);

XmlValidatingReader validatingReader = new XmlValidatingReader(reader);
validatingReader.Schemas.Add(XmlSchemaCache.GetInstance().GetSchema("MYSCHEMA"));
validatingReader.ValidationType = ValidationType.Schema;
XmlReader readerToUse = validatingreader

XPathDocument document = new XPathDocument(readerToUse );
document.createnavigator() --> here my code crashes.

why? in the incoming (XXX) xml file, the default namespace is missing. Now i can't add the namespace to the file manually. So my question is now, how can i add the namespace is added to the reader, before i do document.createnavigator, without using DOM.

i hope someone can help me out Wink | ;)


AnswerRe: XML problem Pin
Timothy_198210-Apr-06 20:19
Timothy_198210-Apr-06 20:19 
QuestionReading/loading website source or text... Pin
pwolfamv10-Apr-06 2:31
pwolfamv10-Apr-06 2:31 
AnswerRe: Reading/loading website source or text... Pin
J. Lamb10-Apr-06 2:46
J. Lamb10-Apr-06 2:46 
AnswerRe: Reading/loading website source or text... Pin
Guffa10-Apr-06 4:07
Guffa10-Apr-06 4:07 
GeneralRe: Reading/loading website source or text... Pin
pwolfamv10-Apr-06 11:02
pwolfamv10-Apr-06 11:02 
QuestionPING from console applciation Pin
J. Lamb10-Apr-06 2:04
J. Lamb10-Apr-06 2:04 
AnswerRe: PING from console applciation Pin
Vasudevan Deepak Kumar10-Apr-06 2:19
Vasudevan Deepak Kumar10-Apr-06 2:19 
QuestionQuotes in C# Pin
Mark0610-Apr-06 1:39
Mark0610-Apr-06 1:39 
AnswerRe: Quotes in C# Pin
alexey N10-Apr-06 1:49
alexey N10-Apr-06 1:49 
GeneralRe: Quotes in C# Pin
Mark0610-Apr-06 2:01
Mark0610-Apr-06 2:01 
GeneralRe: Quotes in C# Pin
Jakob Farian Krarup10-Apr-06 3:50
Jakob Farian Krarup10-Apr-06 3:50 
AnswerRe: Quotes in C# Pin
albCode10-Apr-06 4:03
albCode10-Apr-06 4:03 
GeneralRe: Quotes in C# Pin
Guffa10-Apr-06 6:19
Guffa10-Apr-06 6:19 
QuestionSaving/Loading a List to file. Pin
anderslundsgard10-Apr-06 0:59
anderslundsgard10-Apr-06 0:59 
AnswerRe: Saving/Loading a List to file. Pin
leppie10-Apr-06 1:35
leppie10-Apr-06 1:35 
Questiontlb import failes Pin
V.9-Apr-06 23:37
professionalV.9-Apr-06 23:37 
QuestionProblem in DB Pin
mehrdadc489-Apr-06 23:03
mehrdadc489-Apr-06 23:03 

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.