diff --git a/Source/Chatbook/SendChat.wl b/Source/Chatbook/SendChat.wl index cd3a90bf..65bda248 100644 --- a/Source/Chatbook/SendChat.wl +++ b/Source/Chatbook/SendChat.wl @@ -1098,7 +1098,7 @@ extractBodyData // endDefinition; parseXMLResponse // beginDefinition; parseXMLResponse[ response_String ] := - If[ StringContainsQ[ response, "<" ~~ __ ~~ ">" ~~ ___ ~~ "" ], + If[ StringFormatQ[ response, "XML" ], parseXMLResponse[ Quiet @ ImportString[ response, "XML" ] ], $Failed ];