# Bring your big brain here... xml and as3

**URL:** https://forum.kirupa.com/t/bring-your-big-brain-here-xml-and-as3/290971
**Category:** Uncategorized
**Created:** [June 22, 2009, 10:25pm UTC](https://forum.kirupa.com/t/bring-your-big-brain-here-xml-and-as3/290971 "2009-06-22T22:25:32Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![letter](https://avatars.discourse-cdn.com/v4/letter/l/c89c15/32.png) [@letter](https://forum.kirupa.com/u/letter)
#### Post date: [June 22, 2009, 10:25pm UTC](https://forum.kirupa.com/t/bring-your-big-brain-here-xml-and-as3/290971/1 "2009-06-22T22:25:32Z")

</div>

```auto
 
var library:XML=<library/>;
library.book = <book/>;
library.book.@bookID = 124;
library.book.(@bookID = 124).page.@pageNumber = 1; 
library.book.(@bookID = 124).page.@pageNumber = 2;
library.book.(@bookID = 124).page.@pageNumber = 3;
trace(library);
// this traces: 
//<library>
// <book bookID="124">
// <page pageNumber="3"/>
// </book>
//</library>
 

```

I would like my book to have three pages… anyone with a big brain have some ideas?

Ps - trying to do it without a loop
