SAXException {
// Create a document where e1 parent of e2 parent of e3 and where e2
// has no styles set.
DOMFactory factory = DOMFactory.getDefaultInstance();
Document document = factory.createDocument();
Element root = factory.createElement("root");
document.addNode(root);
Element e1 = factory.createElement("e1");
e1.setStyles(StylesBuilder.getCompleteStyles("line-height: normal"));
root.addTail(e1);