This is a bug that comes from another bug I reported about the NodeMap.
This should be fixed in 1.5.1.

Erik Rydgren
Mandarinen systems AB
Sweden

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: den 20 juli 2001 10:05
To: [EMAIL PROTECTED]
Subject: [Bug 2702] New: - Can't find attribut specified by name


http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2702

*** shadow/2702 Fri Jul 20 01:05:26 2001
--- shadow/2702.tmp.19437       Fri Jul 20 01:05:26 2001
***************
*** 0 ****
--- 1,26 ----
+
+===========================================================================
=+
+ | Can't find attribut specified by name
|
+
+---------------------------------------------------------------------------
-+
+ |        Bug #: 2702                        Product: Xerces-C++
|
+ |       Status: NEW                         Version: 1.5
|
+ |   Resolution:                            Platform: Other
|
+ |     Severity: Normal                   OS/Version: Linux
|
+ |     Priority: Other                     Component: DOM
|
+
+---------------------------------------------------------------------------
-+
+ |  Assigned To: [EMAIL PROTECTED]
|
+ |  Reported By: [EMAIL PROTECTED]
|
+ |      CC list: Cc:
|
+
+---------------------------------------------------------------------------
-+
+ |          URL:
|
+
+===========================================================================
=+
+ |                              DESCRIPTION
|
+ Surprise with DOM_NamedNodeMap :
+ DOM_NamedNodeMap map=element.getAttributes();
+ DOM_Node=map.getNamedItem(map.item(0).getNodeName());
+ if (node.isNull) cout << "Node is null";
+
+ and this output "Node is null"
+ This problem occurs when the DOM_Document is parsed with the DOMParser but
not
+ create with Xerces. So, if in the text file the attribut are not in
alphabetic
+ order, the DOMParser doesn't order them but the algo for getNamedItem need
that
+ the attributes are in alphabetic order.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to