MSXML Evaluator
Functinality
XPath 1.0
XSLT 1.0
Schema 1.0
XDR
Component
MSXML 3.0
MSXML 4.0
MSXML 6.0
Namespaces for XPath
xmlns:ms='http://www.microsoft.com'
XML Content
<library xmlns="http://www.microsoft.com"> <book> <chapter></chapter> <chapter> <section> <paragraph a="b">1</paragraph> <paragraph a="b">2</paragraph> </section> </chapter> </book> </library>
Used for all functions.
XPath/XSL/Schema
Change will be remembered in memory when you switch to another function.
Result
HTML Output
/ms:library/ms:book/ms:chapter/ms:section/ms:paragraph/@a
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:m="http://www.microsoft.com"> <xsl:template match="/"> <html><body><table> <tr> <td>Attribute</td> <td>Value</td> </tr> <xsl:for-each select="m:library/m:book/m:chapter/m:section/m:paragraph"> <tr> <td><xsl:value-of select="@a"/></td> <td><xsl:value-of select="."/></td> </tr> </xsl:for-each> </table></body></html> </xsl:template> </xsl:stylesheet>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.microsoft.com" elementFormDefault="qualified"> <xs:element name="library"> <xs:complexType> <xs:sequence maxOccurs="unbounded"> <xs:element name="book"> <xs:complexType> <xs:sequence maxOccurs="unbounded"> <xs:element name="chapter"> <xs:complexType> <xs:sequence minOccurs="0" maxOccurs="unbounded"> <xs:element name="section"> <xs:complexType> <xs:sequence maxOccurs="unbounded"> <xs:element name="paragraph"> <xs:complexType> <xs:simpleContent> <xs:extension base="xs:integer"> <xs:attribute name="a" type="xs:string" /> </xs:extension> </xs:simpleContent> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:schema>
<Schema xmlns="urn:schemas-microsoft-com:xml-data"> <!-- AttributeType name="xmlns" --> <AttributeType name="a"/> <ElementType name="paragraph"> <attribute type="a"/> </ElementType> <ElementType name="section" model="closed"> <element type="paragraph"/> </ElementType> <ElementType name="chapter" model="closed"> <element type="section"/> </ElementType> <ElementType name="book" model="closed"> <element type="chapter"/> </ElementType> <ElementType name="library" model="closed"> <element type="book"/> </ElementType> </Schema>
Created by: MSXML Team. All rights reserved. © 2009 Microsoft.