parameters: (self, filepath, file_content)
docstring: Append Node and Fill Content
docstring_summary: Append Node and Fill Content
docstring_tokens: Append Node and Fill Content
function: def add_node_with_content(self, filepath, file_content):
          """Append Node and Fill Content"""
          self.nodes_list.append(self.dom.createElement("node"))
          node_name = os.path.basename(filepath)
          if node_name.lower().endswith(".htm"): node_name = node_name[:-4]
          elif node_name.lower().endswith(".html"): node_name = node_name[:-5]
          #print node_name, len(self.nodes_list)
          self.nodes_list[-1].setAttribute("name", node_name)
          self.nodes_list[-1].setAttribute("prog_lang", cons.RICH_TEXT_ID)
          self.nodes_list[-2].appendChild(self.nodes_list[-1])
          if file_content: self.rich_text_serialize(file_content)
function_tokens: def add_node_with_content ( self , filepath , file_content ) : self . nodes_list . append ( self . dom . createElement ( "node" ) ) node_name = os . path . basename ( filepath ) if node_name . lower ( ) . endswith ( ".htm" ) : node_name = node_name [ : - 4 ] elif node_name . lower ( ) . endswith ( ".html" ) : node_name = node_name [ : - 5 ] #print node_name, len(self.nodes_list) self . nodes_list [ - 1 ] . setAttribute ( "name" , node_name ) self . nodes_list [ - 1 ] . setAttribute ( "prog_lang" , cons . RICH_TEXT_ID ) self . nodes_list [ - 2 ] . appendChild ( self . nodes_list [ - 1 ] ) if file_content : self . rich_text_serialize ( file_content )