XML declaration in launch files?

asked 2018-01-18 00:24:02 -0600

tor gravatar image

updated 2018-01-18 00:25:32 -0600

Hi All:

What are the Pros and Cons for putting XML declaration [1] in launch files?

AFAIK, such declaration is helpful as we can use XML specific features for launch files in text editors. Is there any catch of doing so?

Thank you, tor

[1] https://msdn.microsoft.com/en-us/libr...

edit retag flag offensive close merge delete

Comments

I've seen both, and have not encountered any difference except for Syntax highlighting. But I cannot say for sure.

mgruhler gravatar image mgruhler  ( 2018-01-18 02:38:30 -0600 )edit

I believe roslaunch will handle or ignore those declarations, so this seems like mostly a style decision. (personally I find the standard XML headers annoying but mostly harmless).

ahendrix gravatar image ahendrix  ( 2018-01-18 02:54:51 -0600 )edit