I have a text frame that looks like this:
starting with a reference to the pageitem, I want to be able to get a list of the tag names and the text that corresponde to them. In this example the red tag is "text1" the green tag is "text2" and the blue tag is "text3" so I would like:
text1 -> somewhere
text2 -> over the rainbow
text3 -> way up high
The only way I have been able to access the tags and values is by parsing the structure xml but I have found that xml is pretty slow in indesign and since I already have a reference to the object when I need to know the tags I just assumed there should be an easier way.
Thanks for the help, hope I was descriptive enough.
Not quite! however you did point me in the right direction.Apprently this is how the structure is pieced together:
myObject.associatedXMLElement.getElements().xmlElements.texts.contents = "somewhere"