General XMetaL Discussion

XMetaL Community Forum General XMetaL Discussion Delete element before and after a split location

  • Dinglewood

    Delete element before and after a split location

    Participants 1
    Replies 0
    Last Activity 7 years ago

    Hello,

    I work with XMetal Author 9.0 and I'm not sure how I have to deal with following problem, don't know what methods I should use :

    Structure of the document is below.

    I try to do a macro which allow user to split any document at any “” element while duplicating metadatas and footnotes elements.<br />I have no problem to do a copy of current document and create a new one with it, but I don't find the correct way to delete all <text> content following the split point in the original document and how to delete all </text><text> content before the split point in the new document I created.</p> <p><b>Before</b></p> <p><file><br />  <document><br />      <metadata><br />        …<br />      </metadata><br />      <text><br />        …<br />        <title>1. …
              …
              2. …
              …
              3. …
              …
         
         
            …
         

     
     
          …
     

      …

    After :


     
         
            …
         

         
            …
            1. …
              …
         

         
            …
         

     

     
         
            …
         

         
              2. …
              …
              3. …
              …
         

         
            …
         

     

     
          …
     

      …

    Reply

  • You must be logged in to reply to this topic.

Lost Your Password?

Products
Downloads
Support