HELP:Representing a graph using XML!

admin

Administrator
Staff member
Hello all! I'm a beginner in programming world! I want to represent a directed graph where the nodes represent an object with a set of inputs! The object is represented by a URL! I've thought of something like this

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href=http://www.webdeveloper.com/forum/archive/index.php/"xml.xsl" type="text/xsl"?>
<Composite-Service name="CS-1">
<Atomic-Service name="Service-1" type="Supply" cost="100" url="http://icis-renwei3:8080/Service-1.owl">
<InputList>
<Item name="Input-1" type="Optional">
Input-1
</Item>
<Item name="Input-2" type="Compulsory">
Input-2
</Item>
</InputList>
<OutputList>
<Item name="Output-1" type="Compuslory">
Output-1
</Item>
</OutputList>
<FromService>
<Item name="Service-1">
Service-1
</Item>
<Item name="Service-2>
Service-2
</Item>
</FromService>
<ToService>
<Item name="Service-3">
Service-3
</Item>
</ToService>
</Atomic-Service>
</Composite-Service>

I want to know if I'm going in the right direction? Kindly help and reply ASAP!
Thanks and Regards!
Sanjeev!
 
Back
Top