* @param messages error messages
*/
private void checkForInvalidNestedTags(String prefix, Node clayNode, List messages) {
List children = clayNode.getChildren();
next: for (int i = 0; i < children.size(); i++) {
Node child = (Node) children.get(i);
if ((!child.isComment() && !child.isCdata()) && child.isWellFormed()) {
if (child.getQname() != null && child.getName() != null) {
if (child.getQname().equals("jsp") && child.getName().equals("text")) {
continue next;
} else if (!child.getName().equals("symbol") || !prefix.equals(child.getQname())) {
messages.add(getMessage(prefix, clayNode, child));
}
}
}