Fix serialization problem due to prefix clash

Make the prefix unique by appending a number, starting from zero,
if the default prefix is already mapped to a different namespace.

Check if the namespace has already been mapped to a prefix.

Bug: 329804
1 file changed