Module object_to_xml
[hide private]
[frames] | no frames]

Module object_to_xml

source code

object_to_xml

Loads a serialized graph object in memory and generates an XML file.

Example of an XML file:

<?xml version="1.0" ?>
<IP-Link>
    <ip_packet source_ip="202.30.242.24">
        <ip_packet destination_ip="192.168.1.2" weight="1"/>
    </ip_packet>
    <ip_packet source_ip="192.168.1.2">
        <ip_packet destination_ip="202.30.242.24" weight="1"/>
        <ip_packet destination_ip="200.151.67.119" weight="1"/>
        <ip_packet destination_ip="194.154.192.1" weight="1"/>
        <ip_packet destination_ip="207.46.134.155" weight="4"/>
    </ip_packet>
    <ip_packet source_ip="194.154.192.1">
        <ip_packet destination_ip="192.168.1.2" weight="1"/>
    </ip_packet>
    <ip_packet source_ip="200.151.67.119">
        <ip_packet destination_ip="192.168.1.2" weight="1"/>
    </ip_packet>
</IP-Link>


Version: $Revision: 0.2 $

Date: $Date: 2009/02/20 $

Author: Jerome Hussenet, Cedric Bonhomme

Copyright: Copyright (c) 2009 Jerome Hussenet, Copyright (c) 2009 Cedric Bonhomme

License: Python

Functions [hide private]
 
object_to_xml(obj_file, xml_file)
Gnerate an XML file.
source code