I'm having a hell of a time figuring this out. ;o)
OK, thanks to Oleg, I finally figured out how to get XHTML in my XML by
using writeRaw to get it to not encode the XHTML going in.
However, I can't get it back out. I'm transforming my XML using XSLT:
Dim trasformedXML As New System.IO.StringWriter
xslt.Transform(doc, Nothing, trasformedXML, Nothing)
lbl_rulesText.Text = trasformedXML.ToString
The element that also has XHTML in it is transformed SANS the HTML tags.
<xsl:value-of select="text" />
That's returning the text of the node, but none of the HTML elements.
At first, I thought that, well, since it's XHTML, I have more nodes
underneath the TEXT node. But that doesn't explain why it returns all of the
text even the text nested in P tags/nodes.
So, am I just crazy for trying to store unencoded xhtml in an xml file?
Should I encode the html and then pull the XML in as a dataset so I can
select that specific 'field' and unencoded then? Another/better option?
-Darrel
--
================================================== ===============
Win prizes searching google:
http://www.blingo.com/friends?ref=hM...nTqhv-2GE1FNtA