Injected XML fragment now properly indented
Adding dependency/plugin now correctly creates parent nodes if they weren't present