aboutsummaryrefslogtreecommitdiff
path: root/lib/office-xml-reader.js
blob: 011ab4db8e7e7525cd752cf52fc005636f87534f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
var xmlreader = require("./xmlreader");


exports.read = read;

var xmlNamespaceMap = {
    "http://schemas.openxmlformats.org/wordprocessingml/2006/main": "w",
    "http://schemas.openxmlformats.org/officeDocument/2006/relationships": "r",
    "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing": "wp",
    "http://schemas.openxmlformats.org/drawingml/2006/main": "a",
    "http://schemas.openxmlformats.org/drawingml/2006/picture": "pic"
};


function read(xmlString) {
    return xmlreader.read(xmlString, xmlNamespaceMap);
}