Need to parse a XML file having something like this:
<Report xmlns="XXXXX"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="XXXXX https://www.somesite.com?x=3&y=4">
<Tablix1><val>asdasdasd</val></Tablix1>
</Report>
on my XSL file i've got something like this:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsi="XXXXX">
<xsl:template match="/">
<xsl:value-of select="xsi:Report/xsi:Tablix1/xsi:val" />
</xsl:template>
</xsl:stylesheet>
can't seem to get this working because of the xml input having schemalocation
a &
within it...
Any clues on how to workaround it? I'm trying not to replace it before parsing...