Austin (archive)
Usenet Archive
- Joined
- Apr 14, 2002
- Messages
- 43
- Reaction score
- 0
Hello
I am wondering if anyone knows if there is a way to store string literals within an XML tag.
For instance I would like to store HTML formatting data for an attribute but it keeps getting picked up as a tag by the XML parser.
eg...
<name>John</name>
<prettyName><HTML><BR>John</BR></HTML><prettyName>
The second line causes the parser to think <HTML> and <BR> are XML tags when they are not. I have tried <prettyName>"<HTML><BR>John</BR></HTML>"<prettyName> and <prettyName>'<HTML><BR>John</BR>'</HTML><prettyName> with no success.
prettyData should be = <HTML><BR>John</BR></HTML>
not returned as prettyData
<HTML>
<BR> = John </BR>
</HTML>
Does anyone know how to achieve my desired effect without having to declre tags manually for the html properties that I need, then reassemble into HTML later?
Kind Regards
A.Hulley
I am wondering if anyone knows if there is a way to store string literals within an XML tag.
For instance I would like to store HTML formatting data for an attribute but it keeps getting picked up as a tag by the XML parser.
eg...
<name>John</name>
<prettyName><HTML><BR>John</BR></HTML><prettyName>
The second line causes the parser to think <HTML> and <BR> are XML tags when they are not. I have tried <prettyName>"<HTML><BR>John</BR></HTML>"<prettyName> and <prettyName>'<HTML><BR>John</BR>'</HTML><prettyName> with no success.
prettyData should be = <HTML><BR>John</BR></HTML>
not returned as prettyData
<HTML>
<BR> = John </BR>
</HTML>
Does anyone know how to achieve my desired effect without having to declre tags manually for the html properties that I need, then reassemble into HTML later?
Kind Regards
A.Hulley