[jdom-interest] Problem
Pablo Chepalich
pch at montevideo.com.uy
Thu Jun 7 10:29:27 PDT 2001
> Hi,
> I have some problems when I try to execute this lines of code:
>
> line1: org.w3c.dom.Document oDoc =
> (org.w3c.dom.Document)domBuilder.build(new
> File("C:/Prueba/Pruebas/XmlExcel/prueba.xml"));
>
> line 2: generateObjs( oDoc)
>
> jdom returns me a ClassCastException in line 1
>
> I want to do this
> public generateObjs(org.w3c.dom.Node oNode){
> switch(oNode.getNodeType()){
> case oNode.DOCUMENT_NODE:
> ---
> ---
> break
>
> case Node.ELEMENT_NODE:
> ---
> NodeList childrens = oNode.getChildNodes();
> for(---){
> generateObjs((Node)childrens.item(i));
> }
> break
> }
> }
any sugestion...
More information about the jdom-interest
mailing list