Lesson 3
XML in Maven and Android
POM and manifest patterns.
Maven POM
A minimal POM nests coordinates and build metadata:
<project xmlns="http://maven.apache.org/POM/4.0.0">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>demo-app</artifactId>
</project>
Teams format POMs before review so dependency diffs stay readable. Validate after merging conflict markers or manual edits.
Android manifest
Manifests declare package name, permissions, and components. Namespace attributes (android:*) are common. A single unclosed <activity> breaks the entire build—line/column errors save time.
SVG and sitemaps
SVG is XML markup for graphics; sitemaps list URLs for crawlers. Both benefit from consistent indentation when humans edit them in PRs.
Key takeaway
Pick project-appropriate examples, validate locally, then format. Build tools assume well-formed XML, not pretty spacing.