generated from LCAS/ros2-teaching-ws
-
Notifications
You must be signed in to change notification settings - Fork 7
Preparation Materials ‐ week 2
francescodelduchetto edited this page Feb 6, 2024
·
1 revision
- XML Does Not DO Anything
- XML was designed to store and transport data.
- XML was designed to be both human- and machine-readable.
- XML was designed to carry data - with focus on what data is
<!-- Comment -->
<element></element>
<element />
<gangster name='George "Shotgun" Ziegler'>
<gangster name="George "Shotgun" Ziegler">
- File Extention = .xml
- Internet media-type = application/xml text/xml
- XML documents must have a root element
- XML elements must have a closing tag
- XML tags are case sensitive
- XML elements must be properly nested
- XML attribute values must be quoted
<root>
<child>
<subchild>.....</subchild>
</child>
</root>
<!-- XML Elements vs. Attributes -->
<!-- WAY 1 -->
<note date="2008-01-10">
<to>Tove</to>
<from>Jani</from>
</note>
<!-- WAY 2 -->
<note>
<date>2008-01-10</date>
<to>Tove</to>
<from>Jani</from>
</note>
<!-- WAY 3 -->
<note>
<date>
<year>2008</year>
<month>01</month>
<day>10</day>
</date>
<to>Tove</to>
<from>Jani</from>
</note>
Parts for the workshops are extracted, edited from and/or inspired by the following sources.
- Official ROS humble tutorials: https://docs.ros.org/en/humble/Tutorials.html
- Elephant Robotics docs: https://docs.elephantrobotics.com/docs/gitbook-en/