T
thinkmarco
Hi,
I have this doubt that I expose with an example.
I mark a lot of documents with the tag "city" and the attribute "nation".
for example
<xml>
...... bla bla bla
..... <CITY nation="England">London</CITY>
..... <CITY nation="USA">New York</CITY>
..... <CITY nation="France">Paris</CITY>
......
..... <CITY nation="Italy">Venice</CITY>
.....
</xml>
In a second moment I want add a second attribute, for example type="sea"
to indicate that the city is near to the sea. Some city could not have
this attribute
<xml>
...... bla bla bla
..... <CITY nation="England">London</CITY>
..... <CITY nation="USA" type="sea" >New York</CITY>
..... <CITY nation="France">Paris</CITY>
......
..... <CITY nation="Italy" type="sea" >Venice</CITY>
.....
</xml>
My question is: can I use XQuery (or xpath) to search directly all the
CITY where tha attribute "type" is not specified?
Thanks in advance
Marco Righi
I have this doubt that I expose with an example.
I mark a lot of documents with the tag "city" and the attribute "nation".
for example
<xml>
...... bla bla bla
..... <CITY nation="England">London</CITY>
..... <CITY nation="USA">New York</CITY>
..... <CITY nation="France">Paris</CITY>
......
..... <CITY nation="Italy">Venice</CITY>
.....
</xml>
In a second moment I want add a second attribute, for example type="sea"
to indicate that the city is near to the sea. Some city could not have
this attribute
<xml>
...... bla bla bla
..... <CITY nation="England">London</CITY>
..... <CITY nation="USA" type="sea" >New York</CITY>
..... <CITY nation="France">Paris</CITY>
......
..... <CITY nation="Italy" type="sea" >Venice</CITY>
.....
</xml>
My question is: can I use XQuery (or xpath) to search directly all the
CITY where tha attribute "type" is not specified?
Thanks in advance
Marco Righi