使用XML插入到

使用XML插入到,xml,postgresql,select,insert,Xml,Postgresql,Select,Insert,我试图创建一个INSERT INTO语句,从XML字段插入数据,其中节点包含“\u 01”和格式为“yyyy-mm-dd”的今天日期 INSERT INTO productReference(preference, pcreatedon, customerID, id_number) SELECT preference, pcreatedon, customerID, CAST(xpath('/Product/id_number/text()', XMLProduct) as t

我试图创建一个INSERT INTO语句,从XML字段插入数据,其中节点包含“\u 01”和格式为“yyyy-mm-dd”的今天日期

    INSERT INTO productReference(preference, pcreatedon, customerID, id_number)
    SELECT preference, pcreatedon, customerID, CAST(xpath('/Product/id_number/text()', XMLProduct) as text[]) 
    FROM "dbProducts".tbl_ordereditems 
    WHERE CAST(xpath('/Product/id_number/text()', XMLProduct) as text) LIKE '%[_01]%'
    AND CAST(xpath('/Product/id_number/text()', XMLProduct) as text) LIKE CAST(CURRENT_DATE AS text)
    LIMIT 10;
我发现错误,无法解析XML文档


非常感谢您的任何帮助

展示文档样本什么文档。。。。。。。。。。。。。。。。