| Author: ABitSmart 18 Sep 2009 | Member Level: Diamond | Rating:  Points: 2 |
You can use XSLT to transform this XML to a format you need.
Something like this,
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="DocumentElement"> <markers> <xsl:apply-templates/> </markers> </xsl:template>
<xsl:template match="marker"> <marker> <xsl:for-each select="*"> <xsl:attribute name="{name()}"> <xsl:value-of select="text()"/> </xsl:attribute>
</xsl:for-each> </marker> </xsl:template> </xsl:stylesheet>
Kind regards, ABitSmart DNS Web-master, DNS MVM My blog Thoughts.exe
|