Detecting language please wait for.......
I have an XML Parser that uses a "XML Group Element" entry to split some large XML files into more manageable chunks.
If I open my XML file source string list I see the various groups created by the parser.
I would like to access the title of each XML group via a macro.
I've spent quite some time examining the Automation help and I just cannot see how to get a handle on this information.
Can someone please put me out of my misery show me how to access this property?
Yes, I agree!
I've uploaded a small sample file and a small project to a Google Drive share:
Sample Project/XML File
To be clear, I'm traversing through a *source* string list called "xmlgrouptest". For each string, I want to obtain the XML group it lives in.
For example, in my project, if I'm currently reading string number 6 I want to be able to read "accmap.res" from the XML group, and if I'm reading string number 10 I want to obtain the "assetdisposal.res" XML group.
I don't mind if the XML group is "accmap" or "T./unjar/text/assets/accmap.res"
I also don't mind if this can only be performed via a translist (and not a sourcelist).
Ultimately, I will be using COM/C# to do the work, but a working sample of macro code will be enough for me to convert it to C#.
If you are looping the translation list PslTransList each item is of type PslTransString. Get the object number 6 then access the name of the parent resource with the following property:
Dim t As PslTransString
Set t = trn.String(your selection)
PSL.Output "Resource name:" & t.Resource.ID