SQL Server – T-SQL LIKE predicate could not match spaces in XML-converted varchar

Recently, I'm trying to look for a specific pattern through conversion XML Data in varchar (max) However, I realize that this is not the best method, and found that it does not work as expected: –

configuration

declare @container-table (
    [Response] xml not null
);

declare @xml xml =
& # 39;
   
     
       ABC
       2018-12-31T23: 59: 59
     
   
   
     
       
         
       
     
   
 & # 39 ;;

add values ​​(@xml) to @container;

This query works

choose *
from @container
where poured (answer as varchar (max))
like & # 39;% <xsd: ResponseList xsi: nil = "true"% & # 39 ;;

Note that the wildcard character has 3 characters (i.e. & # 39; /> & # 39;) in front of the XML node

But that's not the case

choose *
from @container
where poured (answer as varchar (max))
like & # 39;% <xsd: ResponseList xsi: nil = "true"% - with spaces
or cast (answer as varchar (max))
like & # 39;%% & # 39; - entire XML node;

I suspect that this is probably due to escapes and has tried a few other alternatives, but in vain, if anyone can shed some light on the dark.