* @param htmlParser the parent node
* @param messages the list of {@link HtmlParserMessage}
*/
private static void addParserMessages(final Element htmlParser, final List messages) {
for (Iterator iter = messages.iterator(); iter.hasNext();) {
final HtmlParserMessage msg = (HtmlParserMessage) iter.next();
final Element elt = addNewElement(htmlParser,
msg.getType().toString());
elt.setAttribute("url", msg.getURL().toString());
elt.setAttribute("line", String.valueOf(msg.getLine()));
elt.setAttribute("col", String.valueOf(msg.getColumn()));
elt.appendChild(htmlParser.getOwnerDocument().createTextNode(msg.getMessage()));
}
}