We dont know the details, but when using a Variable of DataType: String() - a String Array you will not get the content, but the DataType when it is involved e.g. log Message, Write Line, using ToString()…
Also have a look at String.Join(" | ", yourOutPutVar)
@Manish_Bedi
we assume that all doubts are clarified now and also demonstrated the working suggestion within the immediate panel. So let’s close the topic by
import xml.etree.ElementTree as ET
def extract_file_file_values(xml_data):
"""
Extracts all values within "File File" tags from the given XML data.
Args:
xml_data: The XML data as a string.
Returns:
A list of values extracted from "File File" tags.
"""
root = ET.fromstring(xml_data)
file_file_values = []
for element in root.iter('File'):
if element.tag == 'File':
file_file_values.append(element.text)
return file_file_values
# Example usage:
# Assuming xml_data is the string containing the XML content
xml_data = """
<root>
<File>Value1</File>
<OtherTag>Some other data</OtherTag>
<File>Value2</File>
<AnotherTag>More data</AnotherTag>
<File>Value3</File>
</root>
"""
extracted_values = extract_file_file_values(xml_data)
print(extracted_values) # Output: ['Value1', 'Value2', 'Value3']