As of ROS Electric, the tinyxml package has been replaced with a system dependency. Old documentation.

TinyXML is a simple, small, C++ XML parser that can be easily integrating into other programs.

Starting in ROS Electric, TinyXML is installed as a rosdep system dependency. This means that you compile against TinyXML without requiring any ROS-specific build tools.

ROS Electric: using the system install

#includes

To use the system dependency of tinyxml, simply

#include <tinyxml.h>

NOTE: the old ROS package used #include <tinyxml/tinyxml.h> instead. If you are updating old code, please change to the above.

CMakeLists.txt

You need to explicitly link against against the tinyxml library:

target_link_libraries(${PROJECT_NAME} tinyxml)

Package/stack dependencies

The tinyxml rosdep is defined in the ROS stack, which means that your code automatically has it available. You only need to add a declaration to your manifest.xml:

  <rosdep name="tinyxml" />

Make sure you removed <depend package="tinyxml" /> from your manifest

External Documentation

Please see the tinyxml website for documentation on using tinyxml.

Wiki: tinyxml (last edited 2011-08-02 23:27:58 by KenConley)