Click here to Skip to main content
15,905,073 members
Home / Discussions / C#
   

C#

 
AnswerRe: Screen Capture Pin
Christian Graus29-Nov-08 13:49
protectorChristian Graus29-Nov-08 13:49 
GeneralRe: Screen Capture Pin
krinaljariwala29-Nov-08 20:54
krinaljariwala29-Nov-08 20:54 
QuestionScreen Handling Pin
krinaljariwala28-Nov-08 23:22
krinaljariwala28-Nov-08 23:22 
QuestionScreen Capture Pin
krinaljariwala28-Nov-08 22:49
krinaljariwala28-Nov-08 22:49 
Questionwhere have vnc OpenSource? Pin
lockepeak28-Nov-08 22:32
lockepeak28-Nov-08 22:32 
AnswerRe: where have vnc OpenSource? Pin
Thomas Weller28-Nov-08 23:23
Thomas Weller28-Nov-08 23:23 
AnswerRe: where have vnc OpenSource? Pin
Garth J Lancaster28-Nov-08 23:25
professionalGarth J Lancaster28-Nov-08 23:25 
Questiongenerating XML file issue Pin
George_George28-Nov-08 21:49
George_George28-Nov-08 21:49 
Hello everyone,

I want to generate an XML file like below. My confusion is what technologies could I use to concatenate all information into a single XML document.

The root confusion is, I have a class called teacher which matches the teacher sub-section (ID, name and major) -- which I could use serialization technologies to generate teacher part XML information.

For other parts, like department, I also have a class to represent the information -- I could also use serialization technologies to serialize the information to XML -- but it has no relationship between teachers. So, my confusion is, how to concatenate different parts altogether, like department, club and teachers, and also make the whole XML document looks like below to reflect the relationships and hierarchies between them?

<?xml version="1.0" encoding="utf-8"?>
<Department>
  <DepartmentInfo ID ="100">
    <Location> San Jose </Location>
    <Type> Computer Science</Type>
  </DepartmentInfo>
    <Clubs>
      <Club ID="200">
        <Name>Football</Name>
      </Club>
      <Club ID="201">
        <Name>Basketball</Name>
      </Club>
    </Clubs>
    <Teachers>
      <Teacher ID="300">
        <Name>Thomas</Name>
        <Major>Algorithm</Major>
      </Teacher>
      <Teacher ID="301">
        <Name>Zhou</Name>
        <Major>Linear Programming</Major>
      </Teacher>
    </Teachers>
</Department>


thanks in advance,
George
AnswerRe: generating XML file issue Pin
Wendelius28-Nov-08 22:27
mentorWendelius28-Nov-08 22:27 
GeneralRe: generating XML file issue Pin
George_George28-Nov-08 22:35
George_George28-Nov-08 22:35 
GeneralRe: generating XML file issue Pin
Wendelius28-Nov-08 22:48
mentorWendelius28-Nov-08 22:48 
GeneralRe: generating XML file issue Pin
George_George28-Nov-08 23:49
George_George28-Nov-08 23:49 
GeneralRe: generating XML file issue Pin
User 665829-Nov-08 0:22
User 665829-Nov-08 0:22 
GeneralRe: generating XML file issue Pin
George_George29-Nov-08 1:25
George_George29-Nov-08 1:25 
GeneralRe: generating XML file issue Pin
Wendelius29-Nov-08 0:28
mentorWendelius29-Nov-08 0:28 
GeneralRe: generating XML file issue Pin
George_George29-Nov-08 1:27
George_George29-Nov-08 1:27 
GeneralRe: generating XML file issue Pin
Wendelius29-Nov-08 1:39
mentorWendelius29-Nov-08 1:39 
GeneralRe: generating XML file issue Pin
George_George30-Nov-08 3:59
George_George30-Nov-08 3:59 
GeneralRe: generating XML file issue Pin
Wendelius30-Nov-08 4:24
mentorWendelius30-Nov-08 4:24 
GeneralRe: generating XML file issue Pin
George_George30-Nov-08 18:32
George_George30-Nov-08 18:32 
GeneralRe: generating XML file issue Pin
Wendelius30-Nov-08 18:34
mentorWendelius30-Nov-08 18:34 
AnswerRe: generating XML file issue [modified] Pin
darkzangel29-Nov-08 10:15
darkzangel29-Nov-08 10:15 
GeneralRe: generating XML file issue Pin
George_George30-Nov-08 18:26
George_George30-Nov-08 18:26 
AnswerRe: generating XML file issue Pin
N a v a n e e t h29-Nov-08 16:21
N a v a n e e t h29-Nov-08 16:21 
GeneralRe: generating XML file issue Pin
George_George30-Nov-08 18:27
George_George30-Nov-08 18:27 

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.