Xml + Html

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… ?


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

like that… ?

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

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


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

anyone ? plz…

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

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



<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:(

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


<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…

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… ?