ImportXML Error: Imported XML content can not be parsed

ImportXML Error: Imported XML content can not be parsed

我猜这个公式在某些页面上不能正常工作。

我可以通过以下方法加载产品名称和价格,唯一不同的是 URL 和 class 名称。

=IMPORTXML("https://mall.han-don.com/goods/goods_list.php?cateCd=001002","//*[@class='prdName']//text()")

但是,它没有加载 'Imported XML content can not be parsed.' 消息。

使用这个:

=ARRAYFORMULA(REGEXEXTRACT(QUERY(SUBSTITUTE(ARRAY_CONSTRAIN(IMPORTDATA(
 "https://mall.han-don.com/goods/goods_list.php?cateCd=001002"), 10000, 1), """", ), 
 "where Col1 contains 'strong class=prdName>'"), ">(.+)</strong"))


=ARRAYFORMULA(QUERY({{"";"";SUBSTITUTE(ARRAY_CONSTRAIN(IMPORTDATA(
 "https://mall.han-don.com/goods/goods_list.php?cateCd=001002"), 10000, 1), """", )}, 
 {ARRAY_CONSTRAIN(IMPORTDATA(
 "https://mall.han-don.com/goods/goods_list.php?cateCd=001002"), 10000, 1);"";""}}, 
 "select Col2 where Col1 contains 'span class=cost prdPrice'")&".000원")