Hi, I have problem about JAXP If I have xml file and i parse it to Document,and then import node to my Document. Problem is I want to create attribute for that node such as id="4" how can I do this Thanks in advance
If element was created, insert it into the document using Node.insertBefore
Hope that helps! ------------------ Ajith Kallambella M. Sun Certified Programmer for the Java�2 Platform. IBM Certified Developer - XML and Related Technologies, V1. Co-author of Java 2 Certification Passport
Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
Thank you for your reply and I have a new problem I want to save dom object to xml source file by Tranformer.transform(. .) First it seem ok,but the line that define DTD in my xml file has disappeared. How can I solve this problem