Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: how to write HTML tags in an attribute's value [Thread Next] Re: how to write HTML tags in an attribute's valueTo: NULL Date: 4/4/2005 8:37:00 PM Thanks for your information, and let me think again by taking your inputs into account. "Bjoern Hoehrmann" wrote: > * Hitesh wrote in microsoft.public.xml: > >I am not able to find a way where in i can write the text with some > >formating in an attribute's value in my XML. > > XML per se does not have any means for formatting, so how you do that > would depend on the XML format you use. Further, XML does not include > means to add structure to attribute values, you would have to define > your own microsyntax (or re-use some other syntax). > > >If it was the case that i have to write the formated text in a nodes > >innertext then i can use the CDATA section but i am unable to do that. > > Note that > > <x><![CDATA[<p>...</p>]]></x> > > and > > <x><p>...</p></x> > > are equivalent, if such escaped "HTML" is sufficient for your purpose > you could just do > > <x y="<p>...</p>">...</x> > > That's not very good design though. If that does not work for you, I > am afraid there is no solution for your problem. > -- > Björn Höhrmann · mailto:bjoern@h... · http://bjoern.hoehrmann.de > Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de > 68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ > | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
