A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Saving special characters to XML

  1. #1
    Pixel junkie
    Join Date
    Sep 2002
    Location
    Copenhagen, Denmark
    Posts
    120

    Saving special characters to XML

    Hi there!

    I'm trying to find a way to save special characters ( like !, #, , ", ', ?....) to an xml document.
    I need it in order to identify an id-tag (?), in the movie that displays the content of the xml...


    the XML document looks like this:

    <?xml version="1.0" ?>
    <myNode>
    <title>Flash XML FAQ</title>
    <body id="body">This is going to be the content</body>
    </myNode>


    This is the code that displays the content:

    xmlOutput = this.body.childNodes[0].nodeValue;


    The code that saves to xml (Through PHP):

    xmlContent = "<myNode><body id="body ">" + varRoughIns + "</body></myNode>";

    The highlighted part is the problem. Flash won't recognize the "body" in the code. What can I do to work around this problem...

    Please bear in mind that I'm a newbie to XML...Thanks

  2. #2
    Pixel junkie
    Join Date
    Sep 2002
    Location
    Copenhagen, Denmark
    Posts
    120
    Sorry, This is the xml document...

    <myNode>
    <body id="body">This is going to be the content</body>
    </myNode>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center