> I can modify the code to return the root Element and then add the PI > first and then set the root Element. Is there anyother way to add PI's > in the prologue just after the XML declartion Call doc.getMixedContent(), and you'll have a live list in which to put or remove objects. -jh-