Click here to Skip to main content
14,644,752 members
Home » Discussions » C#
   

C#

 
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
MemberHenry 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
MemberHenry Minute8-Jun-09 12:43 
QuestionDeploying Visual c# application on Lan Pin
Akshaylamba8-Jun-09 8:46
MemberAkshaylamba8-Jun-09 8:46 
AnswerRe: Deploying Visual c# application on Lan Pin
Pete O'Hanlon8-Jun-09 9:36
subeditorPete 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
Memberparadisonoir8-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

GeneralRe: Problem with XML Schema Pin
harold aptroot8-Jun-09 8:31
Memberharold aptroot8-Jun-09 8:31 
GeneralRe: Problem with XML Schema Pin
paradisonoir8-Jun-09 8:53
Memberparadisonoir8-Jun-09 8:53 
QuestionTCP Client/Server and Speech Recognition Pin
soflp-pt8-Jun-09 7:53
Membersoflp-pt8-Jun-09 7:53 
QuestionI am getting some unhandled exception after installing when i include crystal reports in the project with reports its working. Pin
praveenkumar_vittaboina8-Jun-09 7:18
Memberpraveenkumar_vittaboina8-Jun-09 7:18 
Questionthreading and timercallback Pin
Saamir8-Jun-09 7:02
MemberSaamir8-Jun-09 7:02 
AnswerRe: threading and timercallback Pin
Luc Pattyn8-Jun-09 7:23
sitebuilderLuc Pattyn8-Jun-09 7:23 
GeneralRe: threading and timercallback Pin
Saamir8-Jun-09 7:29
MemberSaamir8-Jun-09 7:29 
GeneralRe: threading and timercallback Pin
Luc Pattyn8-Jun-09 7:53
sitebuilderLuc Pattyn8-Jun-09 7:53 
GeneralRe: threading and timercallback Pin
Saamir9-Jun-09 6:00
MemberSaamir9-Jun-09 6:00 
GeneralRe: threading and timercallback Pin
Luc Pattyn9-Jun-09 6:33
sitebuilderLuc Pattyn9-Jun-09 6:33 
AnswerRe: threading and timercallback Pin
yunusdemiray8-Jun-09 20:20
Memberyunusdemiray8-Jun-09 20:20 
GeneralRe: threading and timercallback Pin
Saamir9-Jun-09 6:01
MemberSaamir9-Jun-09 6:01 
GeneralRe: threading and timercallback Pin
Luc Pattyn9-Jun-09 6:32
sitebuilderLuc Pattyn9-Jun-09 6:32 
Questionis dataset performs well over Lists when navigating data in the memory Pin
prasadbuddhika8-Jun-09 5:30
Memberprasadbuddhika8-Jun-09 5:30 
AnswerRe: is dataset performs well over Lists when navigating data in the memory Pin
Henry Minute8-Jun-09 9:56
MemberHenry Minute8-Jun-09 9:56 
QuestionWeb Cam Problem Pin
S K Y8-Jun-09 5:23
MemberS K Y8-Jun-09 5:23 
AnswerRe: Web Cam Problem Pin
DaveyM698-Jun-09 5:31
professionalDaveyM698-Jun-09 5:31 

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.