A pretty self-explanatory question really, just wondering why empty tags in Ant build.xml files always seem to omit the space before the closing />, even though this is a requirement for valid XML 1.0? Perhaps it’s a convention that I wouldn’t know about since I’m new to Ant, but I’m just curious.
A pretty self-explanatory question really, just wondering why empty tags in Ant build.xml files
Share
A space before the closing
/>isn’t a requirement. The following are equivalent:<foo/><foo />Some XML editors will actually strip this space when formatting (oXygen in particular).