Abstract: The present disclosure concerns systems and methods and computer program products for processing hierarchical document data (e.g., XML, JSON documents) and storing them in relational database structures. The methods herein read input document data and analyze the schema of the document to create both dynamic data tables and metadata tables for the destination tabular structure storage. Thereafter, the key-value data stored in the document is extracted, transformed, and mapped to a generated table structure that references the metadata tables. In this way, information can be stored in tabular or relational databases or structures and reconstructed into the original document if necessary.