In this section, we explain how we generate XML documents, a key process in our technological solutions at Q2BSTUDIO. Our approach is based on creating XML trees in a structured and efficient manner.
Tree creation. We use a bottom-up method for generating XML documents. First, we create several node templates, which allow us to generate XML nodes with similar structures. Then, we select one of these nodes as the root element. The remaining nodes are randomly assigned to a parent node, allowing recursive structures within the document. We carefully adjust the number of generated nodes to ensure a balance between complexity and performance.
Node generation. Each element node is instantiated from a previously established template. Unlike relational databases, XML documents do not need to adhere to a specific schema, but we aim to generate nodes with structural similarities to evaluate different behaviors. To do this, we use randomly generated node templates, defining attributes and text content for each node type. When creating an instance of the template, we assign unique values to attributes and text content according to the associated data types. For example, for a Book type node, we define attributes such as id and year, and representative textual content. This approach allows us to evaluate how XML processors handle diverse data structures.
At Q2BSTUDIO, we combine these approaches with our knowledge in software development to offer robust and efficient technological solutions. Our experience in creating and manipulating XML structures allows us to guarantee the quality and performance of the systems we develop for our clients.



