Parse xml file

I’d like to view sdef files outside of “script editor”, but as Markdown file… I tried around for awhile but it seems I’m not able to build something useful to parse xml. I need the whole content not just some paragraphs

Did someone solve this same problem already by any chance?
I searched on macscripter.net and the web but couldn’t find anything helping me further :frowning:

Just open such a file with Xcode or Text Editor. That way it’s XML but there’s no out of the box solution to convert it to Markdown.

i know xml files are simple txt files viewable with any text editor,
what i need is to get the human readable content of sdef files rather its xml code structure. Therefore i wrote “parse” in the title of my post

Your goals were formulated in a vague manner. What does “parse” mean exactly? Do you need just the text or you want to retrieve the layout data as well?

System Events has XML Suite that deals with these files. In the absence of more specific requirements it’s hard to offer solutions.

That’s effecitvely what the Dictionary view in Script Editor or Script Debugger provides.