XPath Search Syntex {Resolved}
Hi :)
Give the XML Schema provided here, how can I search for complexType where the name attribute's value is "OptTmsTimesheetEntry"
I have this XPath Syntex but it's not working...???
Code:
FXmlSchema : IXmlDocument;
aSelectNode : IDOMNodeSelect;
aNode : IDOMNode;
iRootNode: IXMlNode;
FXmlSchema := LoadXMLDocument(XmlSchemaLocation);
iRootNode := FXmlSchema.DocumentElement;
aSelectNode := FXmlSchema.DOMDocument.documentElement as IDOMNodeSelect ;
aNode := aSelectNode.selectNode('complexType[@name = "OptTmsTimesheetEntry"]');
I also tried this...
aNode := aSelectNode.selectNode('/xs:schema/xs:complexType/[@name = "OptTmsTimesheetEntry"]');
Any suggestions...?