Click here to Skip to main content
15,921,694 members
Home / Discussions / C#
   

C#

 
GeneralRe: mouse hover / mouse leave Pin
ee9903526-Oct-04 7:10
ee9903526-Oct-04 7:10 
GeneralRe: mouse hover / mouse leave Pin
Heath Stewart26-Oct-04 10:19
protectorHeath Stewart26-Oct-04 10:19 
GeneralRe: mouse hover / mouse leave Pin
ee9903527-Oct-04 7:45
ee9903527-Oct-04 7:45 
GeneralRe: mouse hover / mouse leave Pin
Heath Stewart27-Oct-04 14:08
protectorHeath Stewart27-Oct-04 14:08 
QuestionRAS API Wrapped in C#??? Pin
mrr26-Oct-04 5:57
mrr26-Oct-04 5:57 
AnswerRe: RAS API Wrapped in C#??? Pin
Heath Stewart26-Oct-04 7:03
protectorHeath Stewart26-Oct-04 7:03 
AnswerRe: RAS API Wrapped in C#??? Pin
Alex Korchemniy26-Oct-04 11:57
Alex Korchemniy26-Oct-04 11:57 
GeneralXmlElement.SetAttribute not working as expected Pin
Colin Angus Mackay26-Oct-04 5:10
Colin Angus Mackay26-Oct-04 5:10 
Hello,

I have some code which writes out an XML file. In the root element of the file I am trying to write the location of the schema file. However it isn't being written out as I expect.

An extract of my code is as follows
XmlElement rttElement = doc.CreateElement("roadTimeTable");
rttElement.SetAttribute("xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance");
rttElement.SetAttribute("xsi:noNamespaceSchemaLocation",schemaFileName);
but the result is
<?xml version="1.0" encoding="UTF-8"?>
<roadTimeTable xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" noNamespaceSchemaLocation="traffic_schema.xsd">
{omitted for brevity}
As you can see the xsi: prefix on the attribute xsi:noNamespaceSchemaLocation is missing.

How do I get this to output properly? Or am I missing something and there is a better way to write out the location of the schema file?


Do you want to know more?


Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.
GeneralRe: XmlElement.SetAttribute not working as expected Pin
Heath Stewart26-Oct-04 7:00
protectorHeath Stewart26-Oct-04 7:00 
QuestionC++ header to .NET? Pin
hagay_ar26-Oct-04 4:44
hagay_ar26-Oct-04 4:44 
AnswerRe: C++ header to .NET? Pin
Heath Stewart26-Oct-04 6:23
protectorHeath Stewart26-Oct-04 6:23 
GeneralC# with some code in MFC Pin
ee9903526-Oct-04 4:40
ee9903526-Oct-04 4:40 
GeneralRe: C# with some code in MFC Pin
Judah Gabriel Himango26-Oct-04 5:20
sponsorJudah Gabriel Himango26-Oct-04 5:20 
GeneralRe: C# with some code in MFC Pin
Heath Stewart26-Oct-04 6:30
protectorHeath Stewart26-Oct-04 6:30 
GeneralSleep function in C# Pin
Ariadne26-Oct-04 4:16
Ariadne26-Oct-04 4:16 
GeneralRe: Sleep function in C# Pin
Judah Gabriel Himango26-Oct-04 4:24
sponsorJudah Gabriel Himango26-Oct-04 4:24 
GeneralRe: Sleep function in C# Pin
Gary Thom26-Oct-04 4:29
Gary Thom26-Oct-04 4:29 
GeneralSending Messages between Networked Computers. Pin
acidik26-Oct-04 3:29
acidik26-Oct-04 3:29 
GeneralPlus: Error message when adding a MessageQueue control... Pin
acidik26-Oct-04 4:18
acidik26-Oct-04 4:18 
GeneralRe: Sending Messages between Networked Computers. Pin
Judah Gabriel Himango26-Oct-04 4:31
sponsorJudah Gabriel Himango26-Oct-04 4:31 
GeneralRe: Sending Messages between Networked Computers. Pin
Heath Stewart26-Oct-04 6:39
protectorHeath Stewart26-Oct-04 6:39 
GeneralRe: Sending Messages between Networked Computers. Pin
Judah Gabriel Himango26-Oct-04 8:47
sponsorJudah Gabriel Himango26-Oct-04 8:47 
GeneralRe: Sending Messages between Networked Computers. Pin
Dave Kreskowiak26-Oct-04 4:48
mveDave Kreskowiak26-Oct-04 4:48 
GeneralRe: Sending Messages between Networked Computers. Pin
S. Senthil Kumar26-Oct-04 6:28
S. Senthil Kumar26-Oct-04 6:28 
GeneralRe: Sending Messages between Networked Computers. Pin
ppp00114-Aug-05 23:43
ppp00114-Aug-05 23:43 

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.