From 996b450861e9f33a32a9bcd7ee00dc3f5226e7fc Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 27 Apr 2013 22:21:40 +0100 Subject: Split code for reading office XML into separate module --- lib/office-xml-reader.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 lib/office-xml-reader.js (limited to 'lib/office-xml-reader.js') diff --git a/lib/office-xml-reader.js b/lib/office-xml-reader.js new file mode 100644 index 0000000..011ab4d --- /dev/null +++ b/lib/office-xml-reader.js @@ -0,0 +1,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); +} -- cgit v1.2.3