XML Database (MOSC)

MOSC Banner

Read XML node parsed to table

edited Jan 9, 2018 5:01PM in XML Database (MOSC) 2 commentsAnswered ✓

Hi

I need to read a list of XML files from the server and get the information for an specific node in order to insert it in a custom table.

I have two options to read the xml, both two work fine but I can't read from the table nor the column the specific info that I need.

-Option 1

declare

  dir VARCHAR2(100);

  file VARCHAR2(100);

  name VARCHAR2(100);

  theBFile   BFILE;

  theCLob    CLOB;

  theDocName VARCHAR2(200) := NVL(name,file);

  x XMLTYPE;

 

  src_offset number:=1;

  dest_offset number:=1;

  lang_ctx number:=dbms_lob.default_lang_ctx;

  warning integer;

 

BEGIN

  -- (3) Get a BFile handle to the external file

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center