Some `pom.xml` files contain attributes, e.g. `<links combine.children="append">` in javadoc configurations. Therefore we need to support attributes.