From 3643767bbc1dd02b0f823d379cc734fed5691104 Mon Sep 17 00:00:00 2001 From: Eric Olson Date: Sun, 24 May 2015 10:30:15 -0500 Subject: [PATCH] Get all nodes under Change XPath query to get all nodes under the node of interest, regardless of their depth. This concatenates the resulting text() nodes together. --- ora/ooxml_util_pkg.pkb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ora/ooxml_util_pkg.pkb b/ora/ooxml_util_pkg.pkb index 6cf17f5..97e7365 100755 --- a/ora/ooxml_util_pkg.pkb +++ b/ora/ooxml_util_pkg.pkb @@ -401,7 +401,7 @@ begin if l_type = 's' then l_string_index := to_number (l_returnvalue); l_xml := get_xml (p_xlsx, 'xl/sharedStrings.xml'); - l_returnvalue := xml_util_pkg.extract_value (l_xml, '/sst/si[' || (l_string_index + 1) || ']/t/text()', g_namespace_xlsx_sharedstrings); + l_returnvalue := xml_util_pkg.extract_value (l_xml, '/sst/si[' || (l_string_index + 1) || ']//t/text()', g_namespace_xlsx_sharedstrings); end if; return l_returnvalue; @@ -453,7 +453,7 @@ begin if l_type = 's' then l_string_index := to_number (l_returnvalue(i)); - l_returnvalue(i) := xml_util_pkg.extract_value (l_shared_strings, '/sst/si[' || (l_string_index + 1) || ']/t/text()', g_namespace_xlsx_sharedstrings); + l_returnvalue(i) := xml_util_pkg.extract_value (l_shared_strings, '/sst/si[' || (l_string_index + 1) || ']//t/text()', g_namespace_xlsx_sharedstrings); end if; end loop;