Reference to undeclared namespace prefix when parsing MSXML

前端 未结 3 1140
一生所求
一生所求 2021-02-02 13:15

How do I solve the

Reference to undeclared namespace prefix: \'%s\'

problem with Microsoft\'s msxml implementation?


I\'m using a

3条回答
  •  萌比男神i
    2021-02-02 13:56

    doc.setProperty('SelectionNamespaces', 'xmlns:rss="http://purl.org/rss/1.0/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cb="http://www.cbwiki.net/wiki/index.php/Specification_1.1"');
    

    Dont forget to load the xsd file or schema to the xmldoc object

    is the way to go

    I dont have enough reputation to comment. But that bit there saved me a lot of time.

    Thank you so much

提交回复
热议问题