3 Replies Latest reply on Dec 7, 2009 8:48 AM by Justin Putney

    how to delete space in an XML file

    ocean_side5465

      I am trying to delete some copy but when I do it, it leaves a huge black space (previewed in Firefox and Safari on Mac) which is the space left when I deleted the script and I don't know how to close up the black space (like I would do in indesign or Word). I am doing something wrong but I don't know how to fix this simple thing. Can someone please help me? What exactly do I need to delete to make this work?

       

      I need to delete the 6 lines from the script below:

      <font color="#ffffff">>>  </font>Lorem ipsum dolor sit<br>
      <font color="#ffffff">>>  </font>Consectetuer adipiscing elit sed<br>
      <font color="#ffffff">>>  </font>Diam nonummy nibh euismod<br>


      <font color="#ffffff">>>  </font>Lorem ipsum dolor sit<br>
      <font color="#ffffff">>>  </font>Consectetuer adipiscing elit sed<br>
      <font color="#ffffff">>>  </font>Diam nonummy nibh euismod<br>

       

      Here is the script:

      About us
      ]]></pageText>

       

      <pageText><![CDATA[
      <font color="#c2c2c0" >LOREM IPSUM DOLOR SIT</font>
      amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit.
      Quis nostrud exerci tation ullamcorper.
      ]]></pageText>

       


      <pageText><![CDATA[
      <a href="#">
      <font color="#ffffff">>>  </font>Lorem ipsum dolor sit<br>
      <font color="#ffffff">>>  </font>Consectetuer adipiscing elit sed<br>
      <font color="#ffffff">>>  </font>Diam nonummy nibh euismod<br>
      </a>
      ]]></pageText>

       

      <pageText><![CDATA[
      <a href="#">
      <font color="#ffffff">>>  </font>Lorem ipsum dolor sit<br>
      <font color="#ffffff">>>  </font>Consectetuer adipiscing elit sed<br>
      <font color="#ffffff">>>  </font>Diam nonummy nibh euismod<br>
      </a>
      ]]></pageText>

       

      <pageText><![CDATA[
      <font color="#ffffff" >IPSUM DOLOR SIT AMET, ADIPISCING </font>
      elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy.
      <font color="#ffffff" ><a href="asfunction:_root.more_click_func,0">more >></a></font>
      <br><br>
      <font color="#c2c2c0" >LOREM IPSUM DOLOR SIT</font>
      amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit.
      Quis nostrud exerci tation ullamcorper.
      <br><br>
      <font color="#c2c2c0" >LOREM IPSUM DOLOR SIT</font>
      amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit.
      Quis nostrud exerci tation ullamcorper.
      <br><br><br><br>
      ]]></pageText>

       


      </texts>

      ---------

        • 1. Re: how to delete space in an XML file
          Justin Putney Level 2

          Not being familiar with your other files, I can't make a definitive determination, but here's

          an educated guess: get rid of the entire pageText node that encloses the pieces you want to remove. For example:

           

          <pageText><![CDATA[


          <a href="#">


          <font color="#ffffff">>>  </font>Lorem ipsum dolor sit<br>


          <font color="#ffffff">>>  </font>Consectetuer adipiscing elit sed<br>


          <font color="#ffffff">>>  </font>Diam nonummy nibh euismod<br>


          </a>


          ]]></pageText>

          • 2. Re: how to delete space in an XML file
            ocean_side5465 Level 1

            Hi, thanks for your help. My text disappeared when I tried that.

             

            When I tried the same thing in another area, text disappeared and then it said "undefined" in the browser.

             

            This file is acting strange. When I click on the words in the browser where there should be copy displayed it disappears and when I click on the sentence again it reappears. Also when I roll my mouse over the copy the words highlight in white when they are black.

             

            Is there anything I should be looking for when I delete stuff?

             

            Or is there anything else I can post that would help?

            • 3. Re: how to delete space in an XML file
              Justin Putney Level 2

              The FLA (and/or actionscript) file(s) are really necessary to diagnose this issue. XML is a completely generic and open format, what's happening with the display depends on what the Flash file is doing with the XML data.