File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes Xpath Requirement help!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Xpath Requirement help!!" Watch "Xpath Requirement help!!" New topic
Author

Xpath Requirement help!!

manj ananda
Greenhorn

Joined: Jun 14, 2001
Posts: 16
Take a look at this Xpath symbol and the applied result that follows :-

//GGG/following::*

<AAA>
<BBB>
<CCC/>
<ZZZ/>
</BBB>
<XXX>
<DDD>
<EEE/>
<FFF>
<HHH/>
<GGG>
<JJJ>
<QQQ/>
</JJJ>
<JJJ/>
</GGG>
<HHH/> </FFF>
</DDD>
</XXX>
<CCC>
<DDD/>
</CCC>

</AAA>
</pre>
Now i am not justified with the axis -"following",
Can anyone help me out there, Ajith again..!


SCJP2, IBM XMLC, SCWCD
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

IHMO, I would read this as follows:
Select all nodes following the node GGG
Hence the output would be:
<HHH>, <CCC> and <DDD> nodes since they start
after (follow) <GGG> ends.
Did I understand the qstn correctly or am I
missing something?
regds.
- satya

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
manj ananda
Greenhorn

Joined: Jun 14, 2001
Posts: 16
thanks,
yea! that was up to my expectation
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Xpath Requirement help!!