Generate Xml file from any file.cc

391 views
Skip to first unread message

nagy....@fa-hists.edu.eg

unread,
May 21, 2014, 5:24:47 AM5/21/14
to ns-3-...@googlegroups.com
i hope some one to help me i want to know how to generate xml file from any protocol .cc thanks

Konstantinos

unread,
May 21, 2014, 5:40:54 AM5/21/14
to ns-3-...@googlegroups.com
What type of XML file? What would that file contain?
Two commonly XML outputs are from FlowMonitor and NetAnim. 
Both are explained in the documentation and corresponding examples exist in the source code. 

nagy....@fa-hists.edu.eg

unread,
May 21, 2014, 6:42:35 AM5/21/14
to ns-3-...@googlegroups.com
i want to run AODV , DSR and see the animation in animator but animator read file .xml

Konstantinos

unread,
May 21, 2014, 6:54:03 AM5/21/14
to ns-3-...@googlegroups.com
Please read the user documentation and particularly the NetAnim section. It explains how the output file is generated.

nagy....@fa-hists.edu.eg

unread,
May 21, 2014, 11:51:58 AM5/21/14
to ns-3-...@googlegroups.com

i can't run any protocol like aodv or dsr in animator becouse it file.cc but animator read file .xml please anyone help me thanks


On Wednesday, May 21, 2014 11:24:47 AM UTC+2, nagy....@fa-hists.edu.eg wrote:

Konstantinos

unread,
May 21, 2014, 11:59:19 AM5/21/14
to ns-3-...@googlegroups.com
I can't understand what is the problem. 
You will run the ".cc" file in NS-3 and it will generate the ".xml" file that you will open with animator.
The ".cc" should be a scenario that simulates a network running AODV or any other protocol. 
For example you can use the /src/aodv/examples/aodv.cc which simulates AODV. However, you need to add the parts that will generate the animator xml file as explained in the previous reply. 

Please read the tutorial to understand how NS3 works.

nagy....@fa-hists.edu.eg

unread,
May 28, 2014, 5:54:24 AM5/28/14
to ns-3-...@googlegroups.com

i want to add AODV in animator but animator read only file.xml but aodv.cc
please anyone help me thanks

On Wednesday, May 21, 2014 11:24:47 AM UTC+2, nagy....@fa-hists.edu.eg wrote:

Konstantinos

unread,
May 28, 2014, 6:17:10 AM5/28/14
to ns-3-...@googlegroups.com
As explained in my previous reply, you have to run the scenario (aodv.cc file) with NS-3 as stated in the tutorial. 
This will generate the xml file you want for the animation if you modify it accordingly (see the tutorial for NetAnim on how to generate the xml).
Reply all
Reply to author
Forward
0 new messages