I have the following XML Document displayed inside a Chrome Browser Control (CefSharp.Wpf):
<?xml-stylesheet type="text/xsl" href="#"?>
<xsl:stylesheet version="1.0" xmlns:data="x" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<data:data>
<log>
<entry>
<message>first</message>
</entry>
<entry>
<message>second</message>
</entry>
</log>
</data:data>
<xsl:template match="xsl:stylesheet">
<xsl:apply-templates select="data:data" />
</xsl:template>
<xsl:template match="log">
<html>
<body>
<xsl:for-each select="entry">
<xsl:value-of select="message" /><br />
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Now I want to add a new <entry>
via JavaScript (live log window). Is it even possible to change the XML 'live'? Even when I deleted a node, the browser didn't updated his view.
I don't want to reload the whole document when adding a new entry (takes ~80ms). I don't want to write direct HTML inside the browser, because the xsl-template part is stored as a template and can change.
Any other ideas are welcome! :)
Thanks in advance!