diff --git a/translators/CTX.js b/translators/CTX.js index e590447d5..d7aa958d3 100644 --- a/translators/CTX.js +++ b/translators/CTX.js @@ -129,7 +129,12 @@ function detectInString(text) { * specification. */ function contextObjectXMLToCOinS (text) { - var doc = new XML(text); + try { + var doc = new XML(text); + } + catch (e) { + return []; + } /* Here and elsewhere, we are using the E4X syntax for XML */ var objects = doc..*::["context-object"];