public void writeEndPage ( ) throws IOException { writer . openElement ( "document" ) ; writer . textElement ( "id" , Integer . toString ( _page . Id ) ) ; writer . textElement ( "group" , "0" ) ; writer . textElement ( "timestamp" , formatTimestamp ( _rev . Timestamp ) ) ; writer . textElement ( "title" , _page . Title . toString ( ) ) ; writer . textElement ( "body" , _rev . Text ) ; writer . closeElement ( ) ; _rev = null ; _page = null ; }
FIXME What s the group number here do? FIXME preprocess the text to strip some formatting?