2 Replies Latest reply on Mar 31, 2011 1:03 AM by liedzeit

    How to get rid of text content but not picture boxes?

    liedzeit Level 2

      I have an xml element that corresponds to a textFrame. The xml element has two children corresponding to picture boxes. Now I want to read in xml and fill textFrame and picture boxes. Before doing this I need to empty the textFrame.

      Unfortunately xml.texts[0].contents="" also deletes the picture boxes.

      The only rather silly solution I have found is to step thru all xml.characters and test for the number of associatedXMLElements. "Real" characters have one the picture boxes have two.

      There must be a more sensible way but I cannot think of any.