Is the <ClinicalDocument> tag the first thing in this CCDA document file? Or are there one or two xml instructions at the very top like this (or maybe both on the same line):
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="_CDA_Stylesheet.xsl"?\>
In order for the CCDA Document to function as a valid "well-formed" xml document, it needs to have this xml instruction as the first thing in the file,
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
above the root or Document Element, which is the <ClinicalDocument > tag in the CCDA.
The second xml instruction should indicate what xsl stylesheet is used to display the document in a web browser like Chrome, Edge, IE whatever.
If the 2nd xml instruction in your file looks something like this:
<?xml-stylesheet type="text/xsl" href="_CDA_Stylesheet.xsl"?\>
Then you would know that the stylesheet that the CCDA needs is an xsl stylesheet file with the name:
_CDA_Stylesheet.xsl
and it needs to be located in the same folder as the ccda xml document.
Or, the xsl stylesheet could be located in a folder that all ccda.xml users have access to, then the relative path to that xsl file can be included in the "href" attribute's value in the ccda.xml document's 2nd XML Instruction, something like:
<?xml-stylesheet type="text/xsl" href=".\..\xslLibrary\_CDA_Stylesheet.xsl"?\>
If you have edited the ccda.xml file in Notepad, and made sure that the 2 xml instructions are at the top of the document, and you have put both the CCDA document and its required stylesheet (*.xsl) file into the same folder, you should be able to browse to the ccda.xml document and display it in your web browser.
This will allow you to read the document in a coherent, inexpensive and relatively easy manner like so:

If, however, you are not looking for a clerical/clinical use of the document, you
can use Microsoft Access 2012 or 2016 and "import" the "external" xml file with
"Structure and Data" - and I think this will load it into a database with tables that
are named after each xml element in the document. I don't recommend this, as it
loads the xml data elements as unrelated tables in MS Access. If, however, you could
transform the standard ccda into a specially designed xml/xslt document with
appropriate relational attributes added into the xml, you may be able to come up with
an xml document that imports easily into MS Access - then you could export each table
as an Excel csv or tab-delimited file.
by the way, I found my example xslt stylesheet by searching HL7.org website looking for testing information. If you do find a suitable xsl stylesheet for ccda, you will have to edit the 2nd XML instruction to enter the appropriate stylesheet name.
Answer from Cwinds on Stack OverflowIs the <ClinicalDocument> tag the first thing in this CCDA document file? Or are there one or two xml instructions at the very top like this (or maybe both on the same line):
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="_CDA_Stylesheet.xsl"?\>
In order for the CCDA Document to function as a valid "well-formed" xml document, it needs to have this xml instruction as the first thing in the file,
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
above the root or Document Element, which is the <ClinicalDocument > tag in the CCDA.
The second xml instruction should indicate what xsl stylesheet is used to display the document in a web browser like Chrome, Edge, IE whatever.
If the 2nd xml instruction in your file looks something like this:
<?xml-stylesheet type="text/xsl" href="_CDA_Stylesheet.xsl"?\>
Then you would know that the stylesheet that the CCDA needs is an xsl stylesheet file with the name:
_CDA_Stylesheet.xsl
and it needs to be located in the same folder as the ccda xml document.
Or, the xsl stylesheet could be located in a folder that all ccda.xml users have access to, then the relative path to that xsl file can be included in the "href" attribute's value in the ccda.xml document's 2nd XML Instruction, something like:
<?xml-stylesheet type="text/xsl" href=".\..\xslLibrary\_CDA_Stylesheet.xsl"?\>
If you have edited the ccda.xml file in Notepad, and made sure that the 2 xml instructions are at the top of the document, and you have put both the CCDA document and its required stylesheet (*.xsl) file into the same folder, you should be able to browse to the ccda.xml document and display it in your web browser.
This will allow you to read the document in a coherent, inexpensive and relatively easy manner like so:

If, however, you are not looking for a clerical/clinical use of the document, you
can use Microsoft Access 2012 or 2016 and "import" the "external" xml file with
"Structure and Data" - and I think this will load it into a database with tables that
are named after each xml element in the document. I don't recommend this, as it
loads the xml data elements as unrelated tables in MS Access. If, however, you could
transform the standard ccda into a specially designed xml/xslt document with
appropriate relational attributes added into the xml, you may be able to come up with
an xml document that imports easily into MS Access - then you could export each table
as an Excel csv or tab-delimited file.
by the way, I found my example xslt stylesheet by searching HL7.org website looking for testing information. If you do find a suitable xsl stylesheet for ccda, you will have to edit the 2nd XML instruction to enter the appropriate stylesheet name.
To display an XML document in human-readable format you need (typically) an XSLT stylesheet. It seems your XML is in a vocabulary called HL7 (health level 7?). I don't know much about HL7 except that it has a reputation for being very complex, so it's quite likely that the stylesheets needed will also be very complex.
A quick google showed a project for creating HL7 stylesheets here:
https://wiki.hl7.org/index.php?title=CDA_R2.1_Stylesheet_Project
You might find something there that is useful to you.
Videos
I don’t really work with GIS, however, for my job I need to view and XML file (not land XML). Mainly I just need to see what’s in it to determine if I even need it. Is there a free software I can use for this?
Late answer here: Ubuntu repository has a very good utility called xmlto that could help you. It converts xml to a variety of formats, including plain text, epub, pdf.
Online, there is Oxgarage which has many conversion options.
I wrote up a very simple Python script that will read in an xml file, and output its contents into another file:
import sys
inFile = open(sys.argv[1], 'r')
outFile = open(sys.argv[2], 'w')
read = True
for i in inFile.read():
if i == '<':
read = not read
if read:
outFile.write(i)
if i == '>':
read = not read
Save this as readxml.py and then call it from the shell like this: $ python readxml.py input.xml output.txt . It's really rudimentary, so it might not be what you're looking for exactly, but it's something!
I tried to open it in a notepad, but everything was cluttered.
I have these instructions for how to open.
-------
Locations:
Drag and drop cheats.xml into the cheat list pane using the P.C. software.
-------
I don't understand.