Parsing and constructing XML-based office documents: OOXML and ODF