4.3 Place Paragraphs into List Items

<..insert p node as first child..>
 if( liNode.hasChildNodes() ){
   liNode.insertBefore( g, liNode.getFirstChild() );
 } else {
   liNode.appendChild( g );
 }
-_-_-

<..insert p node after block node..>
 if( g.hasChildNodes() ){
    Node nextChild = liChild.getNextSibling();
    if( nextChild == null  ){
       liNode.appendChild( g );
    } else {
       liNode.insertBefore( g, nextChild );
    }
    g = ((Document) dom).createElement("p");
    g.setAttribute("class", "noindent");
 }
-_-_-