# Xml + Html

**URL:** https://forum.kirupa.com/t/xml-html/25020
**Category:** programming
**Created:** [July 8, 2003, 5:05pm UTC](https://forum.kirupa.com/t/xml-html/25020 "2003-07-08T17:05:46Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![RvGaTe](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rvgate/32/126_2.png) [@RvGaTe](https://forum.kirupa.com/u/RvGaTe)
#### Post date: [July 8, 2003, 5:05pm UTC](https://forum.kirupa.com/t/xml-html/25020/1 "2003-07-08T17:05:46Z")

</div>

with my new flash portfolio, i use xml files to store my text,

but, when i use html inside the xml file, like b i u" etc

it gives an error in the xplorer, wich is clear by me, becoz xml uses the same kind of tags en closes them the same way…

so how is it possible to save html text inside an xml node… ?

```php

<xmlfile>
<text>How doz <b>this</b> works ?</text>
</xmlfile>

```

like that… ?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 8, 2003, 5:13pm UTC](https://forum.kirupa.com/t/xml-html/25020/2 "2003-07-08T17:13:40Z")

</div>

just found out that the normal B U and I do work… but i cant use the BR coz it dozn’t close it…

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 9, 2003, 5:14pm UTC](https://forum.kirupa.com/t/xml-html/25020/3 "2003-07-09T17:14:54Z")

</div>

how can i use the html break code in an xml node ?

```php

<xmlfile>
<text>How doz <br/>this<br/> works ?</text>
</xmlfile>

```

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 16, 2003, 10:38pm UTC](https://forum.kirupa.com/t/xml-html/25020/4 "2003-07-16T22:38:31Z")

</div>

anyone ? plz…

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 16, 2003, 10:44pm UTC](https://forum.kirupa.com/t/xml-html/25020/5 "2003-07-16T22:44:32Z")

</div>

I’ve never tried so I am not sure, but I think a br tag would be something like this \<BR /\> At least that is how it is in XHTML :x

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 6, 2003, 5:30pm UTC](https://forum.kirupa.com/t/xml-html/25020/6 "2003-08-06T17:30:57Z")

</div>

one time I soved that by pressin’ enter when editing the xml:)

```php

<news>
<item1>these are my news.

Check 'em out!</item1>
</news>

```

When I loaded that into flash, it worked fine, printing the linebreaks.

If you’re editing your XML with a cms -app of your own through a server-side language then I can’t help.

sry:(

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 6, 2003, 6:05pm UTC](https://forum.kirupa.com/t/xml-html/25020/7 "2003-08-06T18:05:56Z")

</div>

> \*Originally posted by RvGaTe \*  
> \*\*how can i use the html break code in an xml node ?

```php

<xmlfile>
<text>How doz <br/>this<br/> works ?</text>
</xmlfile>

```

\*\*

How can u use them? im not to sure i do not use XML, but to put you on the right tracks:

its **\< br \>** and not **\< br/ \>** as you have displayed it, in normal html you code would look like this

(of course take the spaces out after **\<** and before **\>** )

How doz  
this  
works?

thats if you used the correct **\< br \>** tags…

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 6, 2003, 7:33pm UTC](https://forum.kirupa.com/t/xml-html/25020/8 "2003-08-06T19:33:00Z")

</div>

ok, thats 1 problem solved, but what if i want to use the \< b \> and \< u \> and \< i \> tags… those dont work in xml without getting xtra nodes

how can this be solved… ?
