Altova Mailing List Archives

Re: simple xpath expression not working

From: "Joe Fawcett" <joefawcett@-------.--->
Date: 10/5/2003 10:33:00 AM
"Kirk" <mcsdsmurf@h...> wrote in message
> I am trying to use a simple xpath expression, it looks like this:
> //MenuItem[@User=1]
> the xml document looks like this:
> <?xml version="1.0" encoding="utf-8" ?>
> <MenuRoot>
>  <Page ID="101">
>   <MenuData ImagesBaseURL="images/" xmlns="ASP.NET Menu MenuData Schema">
>    <MenuGroup>
>     <MenuItem Label="Home" ID="1" User="0"></MenuItem>
>     <MenuItem Label="Reports" User="1">
>      <MenuGroup ExpandOffsetY="1" ExpandOffsetX="-1">
>       <MenuItem Label="Department" ID="7" />
>       <MenuItem Label="Division" ID="8" />
>      </MenuGroup>
>     </MenuItem>
>    </MenuGroup>
>   </MenuData>
>  </Page>
> can anyone tell me why the xpath expression is not finding the MenuItem
> where User=1?
> Thanks
> Kirk




These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.