> Can i resolve this using XPath or does it required XSLT ?
I think you need XSLT:
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:param name="id" select="1"/>
<xsl:template match="ROOT">
<xsl:apply-templates select="FOLDER"/>
</xsl:template>
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="MODEL">
<xsl:if test="REPORT/MARKER/@id = $id">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:if>
</xsl:template>
</xsl:stylesheet>

Signature
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Olivier7777 - 08 Mar 2008 09:38 GMT
> I think you need XSLT:
I was pretty sure but ... you never know.
Anyway thank you for the example because i'm not very familiar with XSLT and
it will help me a lot to begin. So i gonna try to build this dynamically and
will come back if i'd turn in circle.
Have a nice day.
Oliv'.