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

  • SEARCH
  • Home
  • 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 7437383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:23:30+00:00 2026-05-29T10:23:30+00:00

I am writing a program which updates id attribute values in an xml data,in

  • 0

I am writing a program which updates id attribute values in an xml data,in actionscript 3.
Any 2 id s must not duplicate to each other even they are of items of different tag names.
Please give answers how to get the list of every such element that it has the id attribute .

Than you in advance.

  • 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-05-29T10:23:30+00:00Added an answer on May 29, 2026 at 10:23 am

    I am not sure what exactly you need. But I may give some advice on xml nodes and setting unique ids.

    For example take this xml structure as var myXML:XML.

    
    

    <root>
    <node uid="" name="node1">
    <node uid="" name="node1.1"/>
    <node uid="" name="node1.2"/>
    </node>
    <node uid="" name="node2">
    <node uid="" name="node2.1">
    <node uid="" name="node2.1.2"/>
    </node>
    </node>
    </root>

    public function updateUIDs():void
    {
    var allNodeItems:XMLList = myXML..node;
    var len:int = allNodeItems.length();
    var i:int;
    var node:XML;
    var uid:String;

    for(i = 0; i < len; i++)
    {
    node = allNodeItems[i] as XML;
    uid = UIDUtil.createUID();

    trace("Setting uid=" + uid+" to node: "+node.@name);
    node.@uid = uid;
    }

    }

    Hope this answers your question.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a simple program in C# which stores some data and then use
I am writing a program which has two panes (via CSplitter ), however I
I'm writing a program which has both an ASP.NET configuration system and a Silverlight
I am writing a program which if I compile on a Suse 10 32-bit
I'm writing a program which will use scan conversion on triangles to fill in
I'm writing a program which will allow to load a specific managed .DLL file
I am writing a C# program which captures signals from a external device, and
I'm writing a C++ program which needs to be able to read a complex
Right now I am writing a simulation program which output is formatted according to
I wrote a program which includes writing and reading from database. When I run

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.