diff --git a/lib/xml/queue/QueueList.js b/lib/xml/queue/QueueList.js index f3ca6f1..956a959 100644 --- a/lib/xml/queue/QueueList.js +++ b/lib/xml/queue/QueueList.js @@ -31,7 +31,14 @@ class QueueList { if (this.MaxResults === undefined) { delete this.MaxResults; } - let xml = js2xml.parse('EnumerationResults', this); + + const options = { + format: { + pretty: false + } + } + + let xml = js2xml.parse('EnumerationResults', this, options); xml = xml.replace(``, ``); xml = xml.replace(``, ``); xml = xml.replace(/\>[\s]+\<'); diff --git a/lib/xml/queue/QueueMessageList.js b/lib/xml/queue/QueueMessageList.js index 416213e..d5cc50b 100644 --- a/lib/xml/queue/QueueMessageList.js +++ b/lib/xml/queue/QueueMessageList.js @@ -12,8 +12,13 @@ class QueueMessagesListXmlModel { } toXml() { + const options = { + format: { + pretty: false + } + } - return js2xml.parse('QueueMessagesList', this); + return js2xml.parse('QueueMessagesList', this, options); } } diff --git a/lib/xml/queue/QueueMessageText.js b/lib/xml/queue/QueueMessageText.js index c36cbd9..22581d0 100644 --- a/lib/xml/queue/QueueMessageText.js +++ b/lib/xml/queue/QueueMessageText.js @@ -27,7 +27,13 @@ class QueueMessageText { } toXml() { - return js2xml.parse('QueueMessage', this); + const options = { + format: { + pretty: false + } + } + + return js2xml.parse('QueueMessage', this, options); } }