Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7839183
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T15:21:53+00:00 2026-06-02T15:21:53+00:00

I found where the problem occurs, but can’t understand the reason and way to

  • 0

I found where the problem occurs, but can’t understand the reason and way to correct it.

It works in other frame but with little difference:
XML it can’t delete after some successful deletes:

<work name="New Work Title 14" img="" logo="" link="" image=""></work>
<work name="New Work Title 15" img="" logo="" link="" image=""></work>
.... etc

XML from frame where the same script works:

<person name="New Object Name 8" poz="" mail="" thumb="" img=""/>

The first trace and third give same values after some successful deletes:

function deleteWork(){

    trace(siteDataXML[Work_Node].length()) // freezes on ~10

    trace(delete siteDataXML[Work_Node][Work_List.selectedIndex]) //always true

    trace(siteDataXML[Work_Node].length()) // freezes on ~10


    Work_DP.removeItemAt(Work_List.selectedIndex); //
    trace("dp ", Work_DP.length)                 // decreases as it should


    debug("Data Deleted. Autosaving...")
    Work_Save();

}

Can be the </work> be the reason, but in other test file it deletes similar xml node.
If I generate xml without </work> the delete works as it should.

Any Idea?
Hope someone can help.

UPDATE!

I think I found the reason.

Flash automatically converts

<work name="New Work Title 14" img="" logo="" link="" image=""></work>

to

<work name="New Work Title 14" img="" logo="" link="" image="" />

after this delete doesn’t delete node.

I added <![CDATA[]]> :

<work name="New Work Title 14" img="" logo="" link="" image=""><![CDATA[]]></work>

But why does this happen?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T15:21:55+00:00Added an answer on June 2, 2026 at 3:21 pm

    Cause of deadlines I couldn’t spend much time on it, and bypassed it by remaking the admin panel page script. Found better ways.

    I’m trying to simulate that problem on new clean file but can’t…

    I think that the solution should be to add <![CDATA[]]> to xmls to protect from conversation. If all XML-s are left in same format, the delete should work well.

    P.S.
    the the cdata is converted to escaped format when text is converted to xml and saved. The way to keep htmlText format with cdata is:

    someXML.someNode[i] = new XML('<test aaa="aaaa" bbb="bbbb" ccc="cccc"><![CDATA['+someTextField.htmlText+']]></test>')
    

    not so:

    someXML.someNode[i] = '<![CDATA['+someString+']]>'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Can main function call itself in C++? I found this problem very
We have encountered a very strange class not found problem in our web app
Seem to run into a service endpoint not found problem when trying to get
I'am currently working on GWTs Activity-Place implementation. Now I have found problem with the
I found a problem with host - client float standard in OpenCL. The problem
I found some problem. When i running apc_store and more times update a page
I found this problem in a book. Problem: What is the output of the
I've made a very simple aspect, and found a problem when debugging it (see
Related to a question I asked earlier here , I've found a problem which
I have two branches: trunk, production. I have found a problem in trunk, made

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.