Forum Stats

  • 3,825,752 Users
  • 2,260,558 Discussions
  • 7,896,660 Comments

Discussions

Extracting XML version and encoding from XML prolog in XMLType

User_ITSY5
User_ITSY5 Member Posts: 2 Green Ribbon

Hi,

Is it possible to extract XML version and encoding from XML prolog in XMLType with XML functions?

Let's say we have:

<?xml version="1.0" encoding="UTF-8"?>

<root>

</root>

I need to get either version and encoding values or whole XML prolog preferably with XML functions, f. ex. XMLTABLE. String/CLOB functions would be the second choice if that is not possible.

Tagged: