1 Reply Latest reply on Sep 9, 2008 8:51 PM by kglad

    How to Correctly Parse Single Quotes in XML Loading?

    lokimelt
      This is probably an easy one as it's a classic problem - I'm just not sure how to do it in ActionScript since I'm relatively new. I have single quotes in a description in my XML file:

      <pet filename="images/cleo.jpg" thumb="images/thumbs/cleo.jpg" petname="Cleo" month="November 2006">Cleopatra (aka Cleo, aka Orange, aka Mama) is an amazing 9 year old Red Tri Aussie. She's my special baby.</pet>

      When I load the XML and trace it, it's parsed as:

      Cleopatra (aka Cleo, aka Orange, aka Mama) is an amazing 9 year old Red Tri Aussie. She&aposs my special baby.

      Is there an easy way to replace these &apos with '?

      Thanks,
      tom