Want to get text from the next line
I have text coming in CCDA file as below:
<td>
<content ID="1234">
virus vaccine
<sup>1</sup>
</content>
</td>
I want to get the entire value available inside the content tag. Can anybody please help me out how to get this?
Product version: IRIS 2024.3
Discussion (0)0
Comments
Hi Fahima,
Perhaps something along these lines will be useful to you (Note: You need to add some more checks, but you get the gist)
set status=##class(%XML.TextReader).ParseFile(<filepath>,.textreader)
do textreader.ReadStartElement("content")
while textreader.Read() {
if (textreader.NodeType="endelement")&&(textreader.Name="content") {
quit
}
// Handle values of content element here
}