ORA-31185: DOM Nodes do not belong to the same DOM Document ORACLE 报错 故障修复 远程处理

文档解释 ORA-31185: DOM Nodes do not belong to the same DOM Docu…

文档解释

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。

香港美国云服务器首选港服(Server.HK),2H2G首月10元开通。
港服(Server.HK)(www.IDC.Net)提供简单好用,价格厚道的香港/美国云服务器和独立服务器。IDC+ISP+ICP资质。ARIN和APNIC会员。成熟技术团队15年行业经验。

为您推荐

港服(Server.HK)MongoDB教程:MongoDB 索引

MongoDB 索引 索引通常能够极大的提高查询的效率,如果没有索引,MongoDB在读取数据时必须扫描集合中的每个文件...

港服(Server.HK)PostgreSQL教程PostgreSQL 别名

PostgreSQL 别名 我们可以用 SQL 重命名一张表或者一个字段的名称,这个名称就叫着该表或该字段的别名。 创建...

港服(Server.HK)Memcached教程:Memcached stats 命令

Memcached stats 命令 Memcached stats 命令用于返回统计信息例如 PID(进程号)、版本号...

港服(Server.HK)Redis教程:Redis 数据类型

Redis 数据类型 Redis支持五种数据类型:string(字符串),hash(哈希),list(列表),set(集...

港服(Server.HK)Redis教程:Redis GEO

Redis GEO Redis GEO 主要用于存储地理位置信息,并对存储的信息进行操作,该功能在 Redis 3.2 ...
返回顶部