(options)
| 1503 | |
| 1504 | |
| 1505 | function DocumentXmlReader(options) { |
| 1506 | var bodyReader = options.bodyReader; |
| 1507 | |
| 1508 | function convertXmlToDocument(element) { |
| 1509 | var body = element.first("w:body"); |
| 1510 | |
| 1511 | var result = bodyReader.readXmlElements(body.children) |
| 1512 | .map(function(children) { |
| 1513 | return new documents.Document(children, { |
| 1514 | notes: options.notes, |
| 1515 | comments: options.comments |
| 1516 | }); |
| 1517 | }); |
| 1518 | return new Result(result.value, result.messages); |
| 1519 | } |
| 1520 | |
| 1521 | return { |
| 1522 | convertXmlToDocument: convertXmlToDocument |
| 1523 | }; |
| 1524 | } |
| 1525 | |
| 1526 | },{"../documents":4,"../results":24}],9:[function(require,module,exports){ |
| 1527 | exports.read = read; |
nothing calls this directly
no outgoing calls
no test coverage detected