Creating Custom Extension Elements

Hi,
is there a standard way to create custom extension elements?

Currently I try it with your guide for Extension Elements. This generates namespaces called ns0, ns1, …
Am i doing something wrong? If not, how can you give them a custom name (not String::replace)?

Thank you!