Click here to Skip to main content
15,891,529 members
Home / Discussions / C#
   

C#

 
AnswerRe: Killing a process Pin
EliottA8-Jun-09 9:36
EliottA8-Jun-09 9:36 
GeneralRe: Killing a process Pin
CodingYoshi8-Jun-09 9:53
CodingYoshi8-Jun-09 9:53 
GeneralRe: Killing a process Pin
EliottA8-Jun-09 9:56
EliottA8-Jun-09 9:56 
GeneralRe: Killing a process Pin
CodingYoshi8-Jun-09 10:00
CodingYoshi8-Jun-09 10:00 
GeneralRe: Killing a process Pin
EliottA8-Jun-09 10:01
EliottA8-Jun-09 10:01 
GeneralRe: Killing a process Pin
CodingYoshi8-Jun-09 10:05
CodingYoshi8-Jun-09 10:05 
GeneralRe: Killing a process Pin
EliottA8-Jun-09 10:07
EliottA8-Jun-09 10:07 
GeneralRe: Killing a process Pin
CodingYoshi8-Jun-09 10:19
CodingYoshi8-Jun-09 10:19 
GeneralRe: Killing a process Pin
EliottA8-Jun-09 10:26
EliottA8-Jun-09 10:26 
GeneralRe: Killing a process Pin
CodingYoshi8-Jun-09 10:30
CodingYoshi8-Jun-09 10:30 
GeneralRe: Killing a process Pin
EliottA8-Jun-09 10:36
EliottA8-Jun-09 10:36 
AnswerRe: Killing a process Pin
yunusdemiray8-Jun-09 20:11
yunusdemiray8-Jun-09 20:11 
GeneralRe: Killing a process Pin
CodingYoshi9-Jun-09 3:35
CodingYoshi9-Jun-09 3:35 
QuestionC# Images on Forms Pin
markymarky8-Jun-09 9:08
markymarky8-Jun-09 9:08 
AnswerRe: C# Images on Forms Pin
Henry Minute8-Jun-09 9:52
Henry Minute8-Jun-09 9:52 
GeneralRe: C# Images on Forms Pin
Luc Pattyn8-Jun-09 10:50
sitebuilderLuc Pattyn8-Jun-09 10:50 
GeneralRe: C# Images on Forms Pin
Henry Minute8-Jun-09 10:56
Henry Minute8-Jun-09 10:56 
GeneralRe: C# Images on Forms Pin
Luc Pattyn8-Jun-09 11:03
sitebuilderLuc Pattyn8-Jun-09 11:03 
GeneralRe: C# Images on Forms Pin
Henry Minute8-Jun-09 12:23
Henry Minute8-Jun-09 12:23 
GeneralRe: C# Images on Forms Pin
Luc Pattyn8-Jun-09 12:31
sitebuilderLuc Pattyn8-Jun-09 12:31 
GeneralRe: C# Images on Forms Pin
Henry Minute8-Jun-09 12:43
Henry Minute8-Jun-09 12:43 
QuestionDeploying Visual c# application on Lan Pin
Akshaylamba8-Jun-09 8:46
Akshaylamba8-Jun-09 8:46 
AnswerRe: Deploying Visual c# application on Lan Pin
Pete O'Hanlon8-Jun-09 9:36
mvePete O'Hanlon8-Jun-09 9:36 
AnswerRe: Deploying Visual c# application on Lan Pin
Mycroft Holmes8-Jun-09 14:24
professionalMycroft Holmes8-Jun-09 14:24 
QuestionProblem with XML Schema [modified] Pin
paradisonoir8-Jun-09 8:20
paradisonoir8-Jun-09 8:20 
Hi,
I would like log my keyboad strokes in a xml file. The attribute can be the key, and the value can be the timestamps or the other way ( doesn't matter). I would like to write the schema in the way that my output of schema would be exactly like this:

<LoggingActions>
  <Keyboad>
       <Entry key="a">0</Entry>
       <Entry key="b">1213</Entry>
       <Entry key="c">3445</Entry>
  </Keyboad>
</LoggingActions>


so far, this is my schema:

<xs:element name="MyEvents">
   <xs:complexType>
     <xs:sequence>
       <xs:element ref="LoggingActions"/>
     </xs:sequence>
   </xs:complexType>   </xs:element>

 <xs:element name="KeyboardEvent">
   <xs:complexType>
     <xs:sequence>
       <xs:element ref="MyKeyEntry"/>
       <xs:element ref="Time"/>
     </xs:sequence>
   </xs:complexType>   </xs:element>

 <xs:element name="MyKeyEntry">    <xs:complexType>
     <xs:sequence>
       <xs:element maxOccurs="unbounded"  ref="keyReference"/>     </xs:sequence> </xs:complexType>   </xs:element>

 <xs:element name="Time">
   <xs:complexType>
     <xs:sequence>
       <xs:element maxOccurs="unbounded"  ref="timeRef"/>
     </xs:sequence>
   </xs:complexType>   </xs:element>

 <xs:element name="keyReference" type="xs:string"/>  <xs:element name="timeRef" type="xs:int"/>


Instead, I am getting this xml as my output:

<LoggingActionsxmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<LoggedKey>
    <MyKeyEntry>a</MyKeyEntry> 
    <MyKeyEntry>b</MyKeyEntry> 
    <MyKeyEntry>c</MyKeyEntry> 
  </LoggedKey>

  <Time>
    <timeRef>0</timeRef> 
    <timeRef>1213</timeRef> 
    <timeRef>3445</timeRef> 
  </Time>
  </LoggingActions>


How can I combine these two together?

thanks,

modified on Monday, June 8, 2009 2:49 PM

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.