1 Reply Latest reply on Dec 3, 2009 6:11 AM by danny_run

    how to typecast string to xml DOM element in java

    sathiyabala Level 1




            i need a string to be converted to xml DOM element in java, can any help me


            i have done in this way


      NodeList children = lParentRule.getElementsByTagName(





      (int i = 0; i < children.getLength(); i++) {

      Node nod = children.item(i);





      Element parentcustom = (Element)nod.getNodeName();   // i get typecast error at this line




      i need to convert the string to element


      can any one help me


      Thanks in Advance