473,796 Members | 2,788 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

store class diagram as XML

1 New Member
hi everyone...
i am making a class diagram and want to store the information of class diagram in an XML file....can anyone please tell me how do i store the association,agg reagation,inher itance between different classes in the following XML / any other XML

<?xml version="1.0" encoding="UTF-8"?>
<classdiag>
<class id="1">
<name>custome r</name>
<operation>rese rvation of tour</operation>
<operation>vi ew tour data</operation>
</class>

<class id="2">
<name>employe e</name>
<operation>acce ss</operation>
<operation>upda te</operation>
</class>
</classdiag>
Feb 22 '08 #1
1 2106
jkmyoung
2,057 Recognized Expert Top Contributor
This can really be done multiple ways depending on how you want to do it.
Imbricated relationships:
Eg main class: -> subclasses
Expand|Select|Wrap|Line Numbers
  1. <object>
  2.   <shape>
  3.     <circle/>
  4.     <oval/>
  5.     <polygon>
  6.       <triangle/>
  7.       <quadrilateral/>
  8.       <pentagon/>
  9.     </polygon>
  10.   </shape>
  11. </object>
  12.  
Relations, like in databases:
Expand|Select|Wrap|Line Numbers
  1. <relation superclass="1" subclass="2"/>
  2. <relation superclass="5" subclass="7"/>
  3. <relation superclass="7" subclass="8"/>
  4. <relation superclass="5" subclass="6"/>
  5. <relation superclass="1" subclass="4"/>
  6. <relation superclass="4" subclass="5"/>
  7.  
Feb 25 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

7
5467
by: DanielESFA | last post by:
Hey again :) Was wondering if there's a (free) program out there that'll convert my header files to a UML class diagram. I know that Visual Studio will do it, but I don't have that. I have Umbrello, that seems to want to do it, but generates nothing, just a blank page. TIA, Daniel :)
4
3995
by: Eduardo Bezerra | last post by:
Hi, Is there a convention to represent a class template in a UML class diagram ? Best regards, Eduardo
5
2115
by: A.M | last post by:
Hi, I am looking for a Diagram that visually shows how System.Web.HttpApplication class contains System.Web.UI.Page classes and how they interact together. I am trying to underestand the class architecture of ASP.NET. Can anybody refer me to a link or resource related to that ? Any help would be apprecited,
1
1276
by: alex | last post by:
Moving existing asp.net 1.1 app to 2.0 and using VS2005 I have noticed: 1) Class View window display ONLY name spaces and classes located in the new folder App_Code. 2) Using "Add New Item" on App_Code folder presents limited number of items -> no Web Page, no User Control, giving a hint that these items shouldn't go in this folder. Instead should go under the web root and other sub-folders. I haven't run a conversion wizard on my 1.1...
4
10155
by: thoducng | last post by:
Hi all: I want to create a class diagram, similar to MFC class diagram published long ago. I don't need a UML model, all I need is a class named and inheritance relationship. My classes are in different projects. Do you know any tool that help to do that automatically. Thanks Tho
3
2486
by: Alberto | last post by:
I have the professional version of visual studio 2005 and I'd like to know if I can create associations between classes in the classes diagram. Thank you.
3
1645
by: Lee Crabtree | last post by:
Are there any tools that will take an existing assembly and generate a class hierarchy from it? It seems like the kind of thing that would be possible with reflection, but I don't know enough about that namespace to tackle this. Lee Crabtree
1
4688
by: Jennifer Jazz | last post by:
My question is regarding the mapping of Class diagram to the C++ coding. There are 3 realtions in Class diagram 1) Assosication 2) Composition 3) Aggregation (Weak Composition). -----------------------------------------------------
0
2229
by: Tony Johansson | last post by:
Hello! I try to use the class diagram feature in VS 2005 but the drawing is different se below. If I have an Interface that "implement" two other interface these vill be shown with arrows pointing to the top interface which is correct. If I instead have a class that implement an interface these will not be shown with arrows in the class diagram. What is the reason for not using
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10461
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10239
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10190
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7555
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6796
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5447
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5579
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.