0 Replies Latest reply on Sep 27, 2012 7:38 AM by Pooja_IDDev

    Untag XML Element

    Pooja_IDDev Level 1

      Hi all,

           I have xml Structure like

           <Cell>

                <P>

                     sample T<italic>e</italic>st

                </P>

           </Cell>

      I need to untag the "P" xml element.

      if(paraElement.markupTag.name == "P")

                      paraElement.untag();

      but when i untag "P" XML Element. Its inner XML Element "italic" also gets untag.

      I just want to untag "P" not "italic" XML Element, when i do it manually in InDesign it works perfectly.. But not able to achieve the same using script.

       

      Please help.

       

      Thanks in advance.