ORA-31185: DOM Nodes do not belong to the same DOM Document ORACLE 报错 故障修复 远程处理
文档解释
ORA-31185: doM nodes do not belong to the same DOM Document
Cause: The specified PL/SQL DOM Node does not belong to the parent DOM Document of the referring DOM Node.
Action: Ensure that both the DOM Nodes are part of the same DOM Document.
ORA-31185: DOM Nodes do not belong to the same DOM Document 错误指出提供给XML库操作(例如Transform)的DOM Node是不属于同一个DOM Document的。
XML中的DOM Document是一组元素及属性构成的文档。DOM节点组成那些文档,而XML文档又表示成DOM树。
官方解释
添加XML文档时,如果提供的DOM Node不属于同一个DOM Document,就会出现ORA-31185错误信息。
常见案例
比如,使用Oracle的XML库进行DOM transformation时,如果提供的两个DOM节点不属于同一个DOM Document,就有可能收到ORA-31185错误信息。
一般处理方法及步骤
解决这类问题的正常方法是,将不同的DOM Node转换成新的Document,或者将两个DOM Node放入同一个Document中,以便进行操作。
步骤:
1.确保提供的DOM Node是属于同一个DOM Document。
2.如果不属于同一个DOM Document,则可以将它们转换成同一个新Document。
3.然后,将新Document用于XML库操作,例如Transform。
香港美国云服务器首选后浪云,2H2G首月10元开通。
后浪云(www.IDC.Net)提供简单好用,价格厚道的香港/美国云服务器和独立服务器。IDC+ISP+ICP资质。ARIN和APNIC会员。成熟技术团队15年行业经验。