Skip to content

Document test data is missing xml:lang attribute when written #344

Closed
@wooldridge

Description

@wooldridge

The data written for the following test has changed:

describe('a language-specified XML string', function(){
      var uri = '/test/write/lang1.xml';
      before(function(done){
        db.documents.write({
          uri: uri,
          contentType: 'application/xml',
          lang: 'fr',
          content: '<doc>oui</doc>'
          })
        .result(function(response){done();})
        .catch(done);
      });

Running on ML9 EA4 writes this:

<?xml version="1.0" encoding="UTF-8"?>
<doc xml:lang="fr">oui</doc>

Running on the latest trunk writes this:

<?xml version="1.0" encoding="UTF-8"?>
<doc>oui</doc>

(The written data no longer has an xml:lang attribute.)

This change causes the test to fail. Test is in this file:

https://github.com/marklogic/node-client-api/blob/develop/test-basic/documents-core.js

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions