// IResource resource = new MockFile(
// deviceRAM.getDeviceRepositoryName());
IResource resource = new MockFile(repository.getPath());
// Create a tree for the dialog.
LPDMODOMFactory factory = new LPDMODOMFactory();
// Create first subtree
Element parent1 = factory.element("parent1");
Element child1a = factory.element("child1a");
child1a.setAttribute("attr1", "value1");
child1a.setAttribute("attr2", "value2");
Element child1b = factory.element("child1b");
parent1.addContent(child1a);
parent1.addContent(child1b);
// Create second subtree
Element parent2 = factory.element("parent2");
parent2.setAttribute("attr1", "value1");
parent2.setAttribute("attr2", "value2");
parent2.setAttribute("attr3", "value3");
parent2.setAttribute("attr4", "value4");
Element child2a = factory.element("child2a");
Element child2b = factory.element("child2b");
parent2.addContent(child2a);
parent2.addContent(child2b);
// Create the root element and add content
Element rootNode = factory.element("root");
rootNode.addContent(parent1);
rootNode.addContent(parent2);
XPath rootPath = new XPath(rootNode);
XPath parent1Path = new XPath(parent1);