B
Brad Foster
How do I prevent apache xerces parser from substituting a &null; with a "".
This is what I am doing currently....
DOMParser myparser = new DOMParser();
myparser
..setFeature("http://apache.org/xml/features/dom/create-entity-ref-nodes",
false);
myparser
..setFeature("http://apache.org/xml/features/dom/include-ignorable-whitespace
", false);
myparser .setFeature ("http://xml.org/sax/features/namespaces", false);
myparser .setFeature ("http://xml.org/sax/features/validation", false);
myparser .parse (new InputSource(new FileInputStream(fileName)));
document = myparser .getDocument ();
When I try to get a value of an attribute which has &null; it seems to be
substituting it with a ""
This is what I am doing currently....
DOMParser myparser = new DOMParser();
myparser
..setFeature("http://apache.org/xml/features/dom/create-entity-ref-nodes",
false);
myparser
..setFeature("http://apache.org/xml/features/dom/include-ignorable-whitespace
", false);
myparser .setFeature ("http://xml.org/sax/features/namespaces", false);
myparser .setFeature ("http://xml.org/sax/features/validation", false);
myparser .parse (new InputSource(new FileInputStream(fileName)));
document = myparser .getDocument ();
When I try to get a value of an attribute which has &null; it seems to be
substituting it with a ""