Update of /cvsroot/krysalis/krysalis-barcode/src/java/org/krysalis/barcode/tools
In directory sc8-pr-cvs1:/tmp/cvs-serv18103/src/java/org/krysalis/barcode/tools
Modified Files:
ConfigurationUtil.java
Log Message:
Fix for building Configuration objects from a Level 1 DOM.
Index: ConfigurationUtil.java
===================================================================
RCS file: /cvsroot/krysalis/krysalis-barcode/src/java/org/krysalis/barcode/tools/ConfigurationUtil.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** ConfigurationUtil.java 29 Oct 2003 07:34:09 -0000 1.7
--- ConfigurationUtil.java 20 Nov 2003 20:06:38 -0000 1.8
***************
*** 117,121 ****
private static DefaultConfiguration processElement(Element el) {
! DefaultConfiguration cfg = new DefaultConfiguration(el.getLocalName());
NamedNodeMap atts = el.getAttributes();
for (int i = 0; i < atts.getLength(); i++) {
--- 117,125 ----
private static DefaultConfiguration processElement(Element el) {
! String name = el.getLocalName();
! if (name == null) {
! name = el.getTagName();
! }
! DefaultConfiguration cfg = new DefaultConfiguration(name);
NamedNodeMap atts = el.getAttributes();
for (int i = 0; i < atts.getLength(); i++) {
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.