Results 1 to 16 of 16

Thread: XPath Search Syntex {Resolved}

Threaded View

  1. #1

    Thread Starter
    ^:^...ANGEL...^:^ wrack's Avatar
    Join Date
    Mar 2002
    Location
    Melbourne, AUSTRALIA
    Posts
    2,695

    Thumbs up 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...?
    Last edited by wrack; Nov 20th, 2003 at 08:05 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width