extends: Type we extend (i.e. via the BPMN 2.0 extension attributes)
xml / serialize: additional meta-data impecting XML serialization of a type
I recommend you to dive a bit deeper into bpmn-moddle as well as moddle-xml, especially the test cases to learn about how to build the meta-model so that it maps to proper XML in the end.