dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: displaying full xml file in textArea

  1. #1
    Member
    Join Date
    Nov 2003
    Posts
    67

    displaying full xml file in textArea

    Right now i can display certain nodes in my textArea, depending on what I specify. But i would like to know how to display the full contents (all the nodes) of the xml file.

    here is the code i'm using for one of the nodes.

    PHP Code:
    myProducts.html true;
    myProducts.wordWrap true;
    myProducts.multiline true;
    awardsContent = new XML();
    awardsContent.ignoreWhite true;
    awardsContent.load("faq.xml");
    awardsContent.onLoad = function(success) {
        if (
    success) {
            var 
    rootNode this.firstChild;
            
                
    myProducts.text this.firstChild.firstChild.firstChild.nextSibling;
        }
    };
    stop(); 
    Also. for some reason I cannot display the xml file with HTML formatting, everything displays as regular text. Can someone please inform me? I thought it has something to do with "nodeValue", but wheni enter that after my script, it shows as NULL or nothing at all.

    Thanks.

  2. #2
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    - The right of the People to create Flash movies shall not be infringed. -
    | www.Flashscript.biz | Flashscript Biz Classes/Components |

  3. #3
    Member
    Join Date
    Nov 2003
    Posts
    67
    that tutorial is for the HTML question, right?



    Now i still need to find out how to display all of my xml file.

    thanks.

  4. #4
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    It is weird but even the html is false for the textarea still html is recognized. You have 2 choices: 1) you use a regular textfield; 2) you place your your xml file within the cData tags.
    - The right of the People to create Flash movies shall not be infringed. -
    | www.Flashscript.biz | Flashscript Biz Classes/Components |

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