Bring your big brain here... xml and as3

 
var library:XML=<library/>;
library.book = <book/>;
[email protected] = 124;
library.book.(@bookID = 124)[email protected] = 1; 
library.book.(@bookID = 124)[email protected] = 2;
library.book.(@bookID = 124)[email protected] = 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