The current XML.addElement is not symetric with XML.getElement
(inherited from ConcreteElement)

if I have:

XML main = new XML ("main");
XML sub = new XML ("sub");
main.addElement (sub);

and I want to get the element "sub"

main.getElement ("sub")    returns null
  I would need
main.getElement ((Integer.toString (sub.hashCode ());

this seems kind of awkward. I think XML should override getElement so it
takes
the same String passed as the type of the added element

--
Roger Talkov

Compaq Computer Corporation
DECwest Engineering (ZSO)

425-865-8782




--
------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to