cwrc/CWRC-Writer — pull request #230 by nigelgbanks (2014-09-08 04:49:37+00:00)
Title: CWRC-Writer makes RDF xml invalid upon saving

When saving an XML document that contains RDF annotations, the function [buildAnnotations](https://github.com/cwrc/CWRC-Writer/blob/53d9227116e2428aadedc502be5051def17d8cdb/src/js/converter.js#L187-L277) is called to reinsert the RDF representing the annotations.

This function builds RDF XML namespace attributes like so:

```

```

Note the repeating prefix.

This is due to using the namespace prefix in the [default namespaces](https://github.com/cwrc/CWRC-Writer/blob/53d9227116e2428aadedc502be5051def17d8cdb/src/js/converter.js#L191-L192) and then adding them again when building the [RDF string](https://github.com/cwrc/CWRC-Writer/blob/53d9227116e2428aadedc502be5051def17d8cdb/src/js/converter.js#L270-L272).