Programs and scripts can manipulate XML structure through the DOM

Document Object Model

XML Events (Oct. 2003)