private IConstructor convertContent(Content content, boolean trim) throws Skip {
if (content instanceof Element) {
return convertElement((Element)content, trim);
}
if (content instanceof CDATA) { // CDATA first (is subtype of Text)
CDATA cdata = (CDATA)content;
return vf.constructor(Factory.Node_cdata, getString(trim, cdata));
}
if (content instanceof Text) {
Text text = (Text)content;
return vf.constructor(Factory.Node_charData, getString(trim, text));