1

I need to load and parse this huge xml file in Oracle 11g. will be having a structure something like this :

<condition>
   <if test='check'>
       <name>abc</name>
   </if>
   <else>
        <name>efg</name>
   </else>
</condition>

Based on applied 'check', I need to create objects.

Earlier I was doing this parsing in python using lxml. Even before that, I used to use dom based parser in python, but its performance was pretty bad.

Also, I need to validate this file before parsing, using a DTD file.

So, whats the best option to use while switching to oracle. Or maybe in Java. I can use that thru java stored procedure.

4

1 回答 1

0

如果您使用的是 9i 或更高版本,您可能对 PL/SQL 的 XML Parser感兴趣。支持 DTD 验证。

于 2012-07-10T11:33:13.477 回答