jbruggeman
Programmer
Hi,
I use j2sdk version 1.4.0 (under windows NT workstation) - downloaded at
The code that produces a problem is:
<snip>
...
Import org.w3c.com;
...
Document menu = null;
File bestand = null;
...
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
dbf.setValidating(false);
DocumentBuilder DomParser = dbf.newDocumentBuilder();
bestand = new File(args[0]);
menu = DomParser.parse(bestand);
menu.normalize();
....
</snip>
This code does not produce a normalized menu object: the blank nodes are not omitted. In fact, nothing changes to the menu object when the normalize function is invoked. No error statements are received when compiling, no exceptions are thrown either.
Any clues ?
I use j2sdk version 1.4.0 (under windows NT workstation) - downloaded at
The code that produces a problem is:
<snip>
...
Import org.w3c.com;
...
Document menu = null;
File bestand = null;
...
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
dbf.setValidating(false);
DocumentBuilder DomParser = dbf.newDocumentBuilder();
bestand = new File(args[0]);
menu = DomParser.parse(bestand);
menu.normalize();
....
</snip>
This code does not produce a normalized menu object: the blank nodes are not omitted. In fact, nothing changes to the menu object when the normalize function is invoked. No error statements are received when compiling, no exceptions are thrown either.
Any clues ?