# Flash and XML

**URL:** https://forum.kirupa.com/t/flash-and-xml/80265
**Category:** Uncategorized
**Created:** [February 21, 2005, 1:13am UTC](https://forum.kirupa.com/t/flash-and-xml/80265 "2005-02-21T01:13:32Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Tvirus](https://avatars.discourse-cdn.com/v4/letter/t/f07891/32.png) [@Tvirus](https://forum.kirupa.com/u/Tvirus)
#### Post date: [February 21, 2005, 1:13am UTC](https://forum.kirupa.com/t/flash-and-xml/80265/1 "2005-02-21T01:13:32Z")

</div>

Hi,

I am new with flash and XML. I have been playing a bit with XML, and made my own “Hello world” script. Jeej!

Now I have one question… I want my world to be like **world** , I mean… bold. How do I do this with XML? I understood that I can’t use other so called nodes in my XML file when typing a value, because it becomes a new node.

This is my XML code:

```auto

<pagemessage>
Hello world!
</pagemessage>

```

And this is my Flash AS:

```auto

aboutText = new XML();
aboutText.ignoreWhite = true;
timeline = this;
baseurl = _url.substr(0,_url.lastIndexOf("/")+1);

aboutText.onLoad = function(){
	aboutTag = this.firstChild;
	theval.text = aboutTag.firstChild;
}

aboutText.load(baseurl + "hello.xml");

```

I know from PHP that I can use things like str\_replace, is there something like it in flash? So I can replace values?

Hope someone has an answer for me,

Bert regards,  
Paul Peelen
