<commit_before>---
---

### Generating a XMLDocument
```javascript
// A XML
var doc = document.implementation.createDocument(null, 'root', null);

// RDF
var doc = document.implementation.createDocument('http://www.w3.org/1999/02/22-rdf-syntax-ns#', 'rdf:RDF', null);

// Common commands
var root = doc.documentElement;
var anElement = doc.createElement('div');
anElement.setAttribute('class', 'container');
anElement.textContent('Hello World');
root.appendChild(anElement);

// Serialize
var serializer = new XMLSerializer();
return serializer.serializeToString(doc);
```
<commit_msg>Small fix on note for XMLDocument (Javascript)<commit_after>---
---

### Generating a XMLDocument
```javascript
// A XML
var doc = document.implementation.createDocument(null, 'root', null);

// RDF
var doc = document.implementation.createDocument('http://www.w3.org/1999/02/22-rdf-syntax-ns#', 'rdf:RDF', null);

// Common commands
var root = doc.documentElement;
var anElement = doc.createElement('div');
anElement.setAttribute('class', 'container');
anElement.textContent = 'Hello World';
root.appendChild(anElement);

// Serialize
var serializer = new XMLSerializer();
return serializer.serializeToString(doc);
```

{'fraction_non_alphanumeric': 0.16362126245847175, 'fraction_numerical': 0.014950166112956811, 'mean_word_length': 5.513513513513513, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7545433', 'n_tokens_mistral': 379, 'n_tokens_neox': 358, 'n_words': 83}