Poi non riesco a capire una cosa: perche' processando il file con questo codice....
codice:
File f = new File ("C:/12.xml");
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
Document document = builder.parse(f);
Element root = document.getDocumentElement();
NodeList nodeListRoot = root.getChildNodes();
if(nodeListRoot != null && nodeListRoot.getLength() > 0)
{
for(int i = 0 ; i < nodeListRoot.getLength();i++)
{
System.out.println(nodeListRoot.item(i).getNodeName());
}
}
ottengo come riusultato questo:
codice:
#text
SCALAR_PARAMETER
#text
SCALAR_PARAMETER
#text
SCALAR_PARAMETER
#text
SCALAR_PARAMETER
#text
SCALAR_PARAMETER
#text
TABULAR_PARAMETER
#text
Cos'e' quel #text???