Adobe Air - Delete XML entry

Frigoprangoma

New Member
How to delete an XML entry with Adobe Air?This is how my XML looks like:\[code\]<?xml version="1.0" encoding="utf-8"?> <ENTRY "IMG_ID="01042012"/> <ENTRY "IMG_ID="03052012"/> <ENTRY "IMG_ID="09052012"/>\[/code\]This is my code to load the XML:\[code\]var xmlGallery:XML function readGalleryXml(e:Event = null):void { var fileGallery:File = File.applicationStorageDirectory.resolvePath("gallery.xml"); if (fileGallery.exists) { var streamGallery:FileStream = new FileStream(); try { streamGallery.openAsync(fileGallery,flash.filesystem.FileMode.READ); xmlGallery = new XML(streamGallery.readUTFBytes(streamGallery.bytesAvailable)); } finally { streamGallery.close(); } } }\[/code\]Thanks. Uli
 
Back
Top