# Regarding XML

**URL:** <https://forum.kirupa.com/t/regarding-xml/226804>\
**Category:** Uncategorized\
**Created:** [May 24, 2007, 5:53am UTC](https://forum.kirupa.com/t/regarding-xml/226804 "2007-05-24T05:53:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hunson](https://avatars.discourse-cdn.com/v4/letter/h/977dab/32.png) [@Hunson](https://forum.kirupa.com/u/Hunson)\
**Post date:** [May 24, 2007, 5:53am UTC](https://forum.kirupa.com/t/regarding-xml/226804/1 "2007-05-24T05:53:09Z")

</div>

guys i have a question about XML, see here is a XML i’ve created:

[AS]  
\<?xml version=“1.0” ?\>  
\<links\>  
\<link image = “launch.jpg” title = “New Website Predicted to Change the World” date = “Wednesday, May 30, 2007”/\>  
\<link image = “change.jpg” title = “New Website Changed the World” date = “Wednesday, June 4, 2007”/\>  
\</links\>  
[/AS]

as you can see, if i want any of them called up in flash i’ll use this:

[AS]  
newPiece.text1.text = xmlPath.attributes.title+"";  
[/AS]

now the question, let’s say i’m in the first attribute in XML, how do i change the **image** in flash without moving to another attribute?

in other words, in the first _\<link image=“launch.jpg”…_ how do i create an **array** for the image like \*launch.jpg,launch2.jpg…\*and how do i call it in flash?

i’m doing this because each XML attribute is a photo gallery, i can’t just an attribute for each and every image.

any of you guys have any idea? i’m thinking this should be easy.

i’m new to XML:P
