S
steve_marjoribanks
The code below shows part of a method from my code. Everything compiles
fine apart from one error which says:
cannot find symbol
symbol: method getChildren(java.lang.String)
location: interface java.util.List
List content =
element.getChildren("interpretedData")
^
I don't see what's wrong though because it seems to be saying I can't
use the String as an argument but from what I can work out, I've stuck
to the method shown in the JDOM API
http://www.jdom.org/docs/apidocs/org/jdom/Element.html#getChildren(java.lang.String)
Any ideas? Thanks
Steve
public void process(Element element)
{
int numberOfPoints;
try
{
List content = element.getChildren("interpretedData")
.getChildren("Slope")
.getChildren("groundProfile")
.getChildren("groundSurface")
.getChildren("Line")
.getChildren("Points");
numberOfPoints = content.size();
groundSurfacePointsX = new float[numberOfPoints];
groundSurfacePointsY = new float[numberOfPoints];
int i=0;
fine apart from one error which says:
cannot find symbol
symbol: method getChildren(java.lang.String)
location: interface java.util.List
List content =
element.getChildren("interpretedData")
^
I don't see what's wrong though because it seems to be saying I can't
use the String as an argument but from what I can work out, I've stuck
to the method shown in the JDOM API
http://www.jdom.org/docs/apidocs/org/jdom/Element.html#getChildren(java.lang.String)
Any ideas? Thanks
Steve
public void process(Element element)
{
int numberOfPoints;
try
{
List content = element.getChildren("interpretedData")
.getChildren("Slope")
.getChildren("groundProfile")
.getChildren("groundSurface")
.getChildren("Line")
.getChildren("Points");
numberOfPoints = content.size();
groundSurfacePointsX = new float[numberOfPoints];
groundSurfacePointsY = new float[numberOfPoints];
int i=0;