S
Sébastien de Mapias
Hi,
When I unmarshall an XML file to a node list (or rather,
parse it to an org.w3c.dom.Document to traverse all its
children), by doing the following:
~ Document doc = db.parse(xmlFile);
~ NodeList nl = doc.getChildNodes();
~ for (int i = 0; i<nl.getLength(); i++) {
~ NodeList lme = nl.item(i).getChildNodes();
~ System.out.print(lme);
~ ...
it always shows something like "[xmlElemName: null]".
I do not understand what this ": null" mean (always appears
so, whether my node contains a value and/or attributes or not).
Any idea ?
Thanks.
Regards,
SR
When I unmarshall an XML file to a node list (or rather,
parse it to an org.w3c.dom.Document to traverse all its
children), by doing the following:
~ Document doc = db.parse(xmlFile);
~ NodeList nl = doc.getChildNodes();
~ for (int i = 0; i<nl.getLength(); i++) {
~ NodeList lme = nl.item(i).getChildNodes();
~ System.out.print(lme);
~ ...
it always shows something like "[xmlElemName: null]".
I do not understand what this ": null" mean (always appears
so, whether my node contains a value and/or attributes or not).
Any idea ?
Thanks.
Regards,
SR