qexo-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qexo-general] Selection using // does not seen to work


From: Seshukumar Venkata Adiraju
Subject: [Qexo-general] Selection using // does not seen to work
Date: Fri, 14 Mar 2003 17:02:05 +0530

I’m running a query on xml file

 

<Project>

<modelA>

<Property name=”MODELNAME”>Model 1 </Property>

<Property name=”MODELTYPE”>ClassDiagram</Property>

</modelA>

< modelB>

<Property name=”MODELNAME”>Model 2 </Property>

<Property name=”MODELTYPE”>ClassDiagram</Property>

</ modelB>

<somethingelse>

<Property name=”description”>some descrption</Property>

</ somethingelse >

 

I need to query and find the list of MODEL names

 

for $prop in $project//address@hidden"MODELNAME"]

return string($prop)

 

I get

Model1

Model2

Some description

 

I was expecting that the third line will not come.

This seems to work correctly in XPath

 

Please help

 

 

Seshu Kumar Adiraju

SETLabs, Infosys Technologies Limited

 

  In all chaos there is a cosmos,           
   in all disorder a secret order."             
                    --  Carl Jung          

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]