(Submitting on behalf of a Snowflake User)
Using:
<clinical_study>
<!-- This xml conforms to an XML Schema at:
https://clinicaltrials.gov/ct2/html/images/info/public.xsd -->
<required_header>
<download_date>ClinicalTrials.gov processed this data on September 13, 2019</download_date>
<link_text>Link to the current ClinicalTrials.gov record.</link_text>
<url>https://clinicaltrials.gov/show/NCT00010010</url>
</required_header>
<id_info>
<org_study_id>CDR0000068431</org_study_id>
<secondary_id>NYU-0004</secondary_id>
<secondary_id>P-UPJOHN-NYU-0004</secondary_id>
<secondary_id>NCI-G00-1906</seco
I'm getting null instead of getting the root element contents. I've read "How to Easily Load and Query XML Data with Snowflake Part 2" from Snowflake's documentation, and am using:
SELECT XMLGET(src_xml, 'clinical_study'):"$",
*
FROM STG_XML
;
...but it's giving me NULL as I'm trying to get the content of root elements using above SQL.
Any ideas, recommendations, and/or workarounds?