Skip to content

Commit 4c019b8

Browse files
committed
Fix hard dependency for XML
1 parent 674fe34 commit 4c019b8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

specs/RestClientSpecs.bas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ Public Function Specs() As SpecSuite
317317
Request.Format = xml
318318
Request.Method = httpGET
319319

320-
Set XMLBody = New MSXML2.DOMDocument60
320+
Set XMLBody = CreateObject("MSXML2.DOMDocument")
321321
XMLBody.async = False
322322
XMLBody.LoadXML "<Point><X>1.23</X><Y>4.56</Y></Point>"
323323
Request.AddBody XMLBody

specs/RestHelpersSpecs.bas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Public Function Specs() As SpecSuite
170170
End With
171171

172172
With Specs.It("should convert to XML")
173-
Set XMLBody = New MSXML2.DOMDocument60
173+
Set XMLBody = CreateObject("MSXML2.DOMDocument")
174174
XMLBody.async = False
175175
XMLBody.LoadXML "<Point><X>1.23</X><Y>4.56</Y></Point>"
176176

src/RestHelpers.bas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ End Function
286286
' @return {Object} XML
287287
' --------------------------------------------- '
288288
Public Function ParseXML(Encoded As String) As Object
289-
Set ParseXML = New MSXML2.DOMDocument
289+
Set ParseXML = CreateObject("MSXML2.DOMDocument")
290290
ParseXML.async = False
291291
ParseXML.LoadXML Encoded
292292
End Function

0 commit comments

Comments
 (0)