Xquery Node returns HTML code and browser don't read it

theathoma

New Member
i have a XML code looking like this:\[code\]<description><div style="text-align: justify;">El Casino de Asturias alberga una sala polivalente para cualquier tipo de acto desde conferencias, convenciones o reuniones de trabajo, hasta banquetes y celebraciones. Dispone de programación mensual de conciertos y actividades y de una variada carta de cócteles.<br/><br/><h4><span style="font-weight: bold;">Descuento del 30% con la tarjeta turística Gijón Card (Sólo en la entrada al recinto, no incluye espectáculos)<br/></span></h4></div></description>\[/code\]i know that it's in spanish but just look at the html code there's some "divs","ul"(obiusly "li" too) in the middle of the XMLwell.... when i create a XQuery query on it i put this description in a row of a table like this:\[code\]<table id="pubs" border="1"> { for $dir in doc("/db/Ocio/pubs.xml")//dir order by $dir/name return <tr> <td><p>{$dir/description/text()}</p></td> </tr> }</table>\[/code\]the problem is that when i display this on the web the text is EXACTLY the xml text, my browser don't parse the HTML code and show things like \[code\]"<ul><li>somethins...</li></ul>"\[/code\] and i don't know how to force the browser to parse the html, i googled it, but all solutions give me how to create html with Xquery, not to force browser to parse HTML.thank you so muuch in advance :3 and happy new year
 
Back
Top