xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: dvholten AT computer.org
- To: xom-interest <xom-interest AT lists.ibiblio.org>
- Cc:
- Subject: [XOM-interest] XOM article
- Date: Mon, 16 May 2005 12:01:46 GMT
Hello,
it might excite you to know, that an article (in german) about XOM was
published in:
JAVA Spektrum, 03/ 2005, page 50-52, author Marcel Tilly
dvholten
>From stibrany AT cezap.ii.fmph.uniba.sk Tue May 17 04:02:35 2005
Return-Path: <stibrany AT cezap.ii.fmph.uniba.sk>
X-Original-To: xom-interest AT lists.ibiblio.org
Delivered-To: xom-interest AT lists.ibiblio.org
Received: from mx1.roburnet.sk (puff.roburnet.sk [62.168.65.194])
by lists.ibiblio.org (Postfix) with SMTP id 44A3D4C005
for <xom-interest AT lists.ibiblio.org>;
Tue, 17 May 2005 04:02:34 -0400 (EDT)
Received: (qmail 10542 invoked from network); 17 May 2005 08:02:28 -0000
Received: from unknown (HELO ?10.14.5.32?) (10.14.5.32)
by mx1.roburnet.sk with SMTP; 17 May 2005 08:02:28 -0000
Message-ID: <4289A514.2070108 AT cezap.ii.fmph.uniba.sk>
Date: Tue, 17 May 2005 10:02:28 +0200
From: Peter Stibrany <stibrany AT cezap.ii.fmph.uniba.sk>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: xom-interest AT lists.ibiblio.org
X-Enigmail-Version: 0.89.5.0
X-Enigmail-Supports: pgp-inline, pgp-mime
Content-Type: text/plain; charset=ISO-8859-2; format=flowed
Content-Transfer-Encoding: 7bit
Subject: [XOM-interest] Checking arguments for correctnes in getters?
X-BeenThere: xom-interest AT lists.ibiblio.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: xom-interest.lists.ibiblio.org
List-Unsubscribe: <http://lists.ibiblio.org/mailman/listinfo/xom-interest>,
<mailto:xom-interest-request AT lists.ibiblio.org?subject=unsubscribe>
List-Archive: <https://lists.ibiblio.org/sympa/arc/xom-interest>
List-Post: <mailto:xom-interest AT lists.ibiblio.org>
List-Help: <mailto:sympa AT lists.ibiblio.org?subject=HELP>
List-Subscribe: <http://lists.ibiblio.org/mailman/listinfo/xom-interest>,
<mailto:xom-interest-request AT lists.ibiblio.org?subject=subscribe>
X-List-Received-Date: Tue, 17 May 2005 08:02:35 -0000
Hello.
I just spent few minutes on finding bug in my test code:
assertNull(copy.getAttribute("xm:hello", NS));
This test passed regardless of copy element having "xm:hello" attribute
or not. Problem is with my "xm:hello" argument, correct form should be
without "xm:" prefix:
assertNull(copy.getAttribute("hello", NS));
This works and check for hello attribute.
Clearly, this is not bug in XOM, but in my code.
I'd like to ask ... what do you think about checking attribute name for
correctnes in getters like getAttribute? Was this considered before? If
yes, why did you chose returning null instead of throwing exception in
case of invalid attribute name? When I passed invalid URI in
getAttribute(), I received exception.
I am asking because I am newbie programmer, and I'd like to learn more
about making design decisions like this.
Thank you for your replies.
-Peter Stibrany
- [XOM-interest] XOM article, dvholten, 05/16/2005
Archive powered by MHonArc 2.6.24.