diff --git a/index.js b/index.js index 1a7a445..6713b48 100644 --- a/index.js +++ b/index.js @@ -58,7 +58,7 @@ function parse(xml) { node.attributes[attr.name] = attr.value; } - match(/\?>\s*(<\?.*\?>)\s*/); + match(/\?>\s*<\?.*?\?>/); return node; }