how is it possible with java, to count the number of PolylinePoint elements in this xml snippet (important for you is the fact, that this xml is not a file but a string):
<LocationInformationRequest>
<InitialInput>
<GeoRestriction>
<Area>
<PolylinePoint>
<Longitude>88.1</Longitude>
<Latitude>88.2</Latitude>
<Altitude>88.3</Altitude>
</PolylinePoint>
<PolylinePoint>
<Longitude>88.4</Longitude>
<Latitude>88.5</Latitude>
<Altitude>88.6</Altitude>
</PolylinePoint>
<PolylinePoint>
<Longitude>88.7</Longitude>
<Latitude>88.8</Latitude>
<Altitude>88.9</Altitude>
</PolylinePoint>
</Area>
</GeoRestriction>
</InitialInput>
</LocationInformationRequest>
With xml as a file it is easy to solve this problem. But with a string it is more difficult. Any ideas?
Thanks for helping !