I have to create XML on the fly and the inner text of an element needs to have a <br/> in it like :
<ElementName>So meText <br/> Some more text </ElementName>
if I try:
ElementName.Inn erText = SomeText <br/> Some more text ;
the < and > get encoded and it doesn't work.
I have tried Creating a br node using the createnode method but this puts the <br/> at the end of the text rather than in where I want it.
Any ideas on the best way to do this?
And I'm not able to use cData due to the XML spec that I'm working to.
<ElementName>So meText <br/> Some more text </ElementName>
if I try:
ElementName.Inn erText = SomeText <br/> Some more text ;
the < and > get encoded and it doesn't work.
I have tried Creating a br node using the createnode method but this puts the <br/> at the end of the text rather than in where I want it.
Any ideas on the best way to do this?
And I'm not able to use cData due to the XML spec that I'm working to.
Comment