Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] Birds of a feather invitation

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: [XOM-interest] Birds of a feather invitation
  • Date: Fri, 21 Mar 2003 12:14:47 -0500

Next week on Wednesday evening, there will be a XOM Birds of a Feather session at Software Development 2003 West. The gathering takes place at the pool of the Westin Santa Clara in the heart of Silicon Valley. <http://www.thewestinsantaclara.com/home.htm> Beverages and munchies will be available. Officially this event is for conference attendees. Unofficially, since I'm paying for the beer, I figure I can invite whomever I want, and all members of this mailing list should consider themselves invited. :-)

I don't know what we'll be talking about. It depends on who shows up, and what they're interested in. This past week in London the hot topic was whether XOM should use interfaces or classes. Personally, I'm very committed to classes, so I don't see any realistic chance of that changing, but a possible fork was discussed. :-)
--

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo AT metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
| Processing XML with Java (Addison-Wesley, 2002) |
| http://www.cafeconleche.org/books/xmljava |
| http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA |
+----------------------------------+---------------------------------+
| Read Cafe au Lait for Java News: http://www.cafeaulait.org/ |
| Read Cafe con Leche for XML News: http://www.cafeconleche.org/ |
+----------------------------------+---------------------------------+
From brian AT mbari.org Fri Mar 21 18:05:02 2003
Return-Path: <brian AT mbari.org>
Delivered-To: xom-interest AT lists.ibiblio.org
Received: from cumulus.shore.mbari.org (cumulus.shore.mbari.org
[134.89.10.85])
by happyhouse.metalab.unc.edu (Postfix) with ESMTP id ADB4520011
for <xom-interest AT lists.ibiblio.org>;
Fri, 21 Mar 2003 18:05:00 -0500 (EST)
Received: by cumulus.shore.mbari.org with Internet Mail Service (5.5.2655.55)
id <GXKCHSM9>; Fri, 21 Mar 2003 15:04:59 -0800
Message-ID: <4E14C492D376D51194290090278750B601348243 AT cumulus.shore.mbari.org>
From: "Schlining, Brian" <brian AT mbari.org>
To: "'xom-interest AT lists.ibiblio.org'" <xom-interest AT lists.ibiblio.org>
Date: Fri, 21 Mar 2003 15:04:59 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2655.55)
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C2EFFE.4BC1D100"
Subject: [XOM-interest] ParentNode.hasChildren() bug?
X-BeenThere: xom-interest AT lists.ibiblio.org
X-Mailman-Version: 2.1.1
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: Fri, 21 Mar 2003 23:05:02 -0000

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C2EFFE.4BC1D100
Content-Type: text/plain

I found a behavior with ParentNode.hasChildren() that surprised me. Not sure
if this is a bug or designed behavior but when I try the following code
snippet....

Element element = new Element("test")
Attribute attribute = new Attribute("name", "value");
element.addAttribute(attribute);
boolean gotKids = element.hasChildren();

....gotKids evaluates to false. The documentation says that "hasChildren"
returns true if the node has child nodes. Since Attribute is a node shouldn't gotKids
evaluate to true?

P.S. I'm not on the XOM mailing list so please direct a copy of any replies to brian AT mbari.org <mailto:brian AT mbari.org>
Thanks
B
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Brian Schlining
brian AT mbari.org
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


------_=_NextPart_001_01C2EFFE.4BC1D100
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:st1=3D"urn:schemas-microsoft-com:office:smarttags" =
xmlns=3D"http://www.w3.org/TR/REC-html40";>

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 10">
<meta name=3DOriginator content=3D"Microsoft Word 10">
<link rel=3DFile-List href=3D"cid:filelist.xml AT 01C2EFBB.382951B0">
<o:SmartTagType =
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
name=3D"PersonName"/>
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:DoNotRelyOnCSS/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:DocumentKind>DocumentEmail</w:DocumentKind>
<w:EnvelopeVis/>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
</w:WordDocument>
</xml><![endif]--><!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;
text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;
text-underline:single;}
p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig
{margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
span.EmailStyle17
{mso-style-type:personal-compose;
mso-style-noshow:yes;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;
font-family:Arial;
mso-ascii-font-family:Arial;
mso-hansi-font-family:Arial;
mso-bidi-font-family:Arial;
color:windowtext;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */=20
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple =
style=3D'tab-interval:.5in'>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I found a behavior with ParentNode.hasChildren() =
that surprised
me. Not sure if this is a bug or designed behavior but when I try the =
following
code snippet....<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Element element =3D new =
Element("test")<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Attribute attribute =3D new Attribute("name", =
"value");<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>element.addAttribute(attribute);<o:p></o:p></span></f=
ont></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>boolean gotKids =3D =
element.hasChildren();<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>....gotKids evaluates to false. The documentation =
says
that "hasChildren" returns true if the node has child nodes. Since =
Attribute
is a node shouldn't gotKids evaluate to =
true?<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>P.S. I'm not on the XOM mailing list so please =
direct
a copy of any replies to <a =
href=3D"mailto:brian AT mbari.org";>brian AT mbari.org</a><o:p></o:p></span></f=
ont></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Thanks<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>B<o:p></o:p></span></font></p>

<p class=3DMsoAutoSig><font size=3D3 face=3DArial><span =
style=3D'font-size:12.0pt;
font-family:Arial;mso-no-proof:yes'>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</=
span></font><span
style=3D'mso-no-proof:yes'><o:p></o:p></span></p>

<p class=3DMsoAutoSig><font size=3D3 face=3DArial><span =
style=3D'font-size:12.0pt;
font-family:Arial;mso-no-proof:yes'>Brian =
Schlining<o:p></o:p></span></font></p>

<p class=3DMsoAutoSig><st1:PersonName><font size=3D3 face=3DArial><span
=
style=3D'font-size:12.0pt;font-family:Arial;mso-no-proof:yes'>brian@mbar=
i.org</span></font></st1:PersonName><font
face=3DArial><span =
style=3D'font-family:Arial;mso-no-proof:yes'><o:p></o:p></span></font></=
p>

<p class=3DMsoAutoSig><font size=3D3 face=3DArial><span =
style=3D'font-size:12.0pt;
font-family:Arial;mso-no-proof:yes'>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</=
span></font><font
face=3DArial><span =
style=3D'font-family:Arial'><o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>

------_=_NextPart_001_01C2EFFE.4BC1D100--
From elharo AT metalab.unc.edu Fri Mar 21 18:13:09 2003
Return-Path: <elharo AT metalab.unc.edu>
Delivered-To: xom-interest AT lists.ibiblio.org
Received: from mail.speakeasy.net (mail11.speakeasy.net [216.254.0.211])
by happyhouse.metalab.unc.edu (Postfix) with ESMTP id AD84020011
for <xom-interest AT lists.ibiblio.org>;
Fri, 21 Mar 2003 18:13:08 -0500 (EST)
Received: (qmail 10710 invoked from network); 21 Mar 2003 23:13:17 -0000
Received: from unknown (HELO [192.168.254.4]) ([216.254.85.72])
(envelope-sender <elharo AT metalab.unc.edu>)
by mail11.speakeasy.net (qmail-ldap-1.03) with SMTP
for <xom-interest AT lists.ibiblio.org>; 21 Mar 2003 23:13:17 -0000
Mime-Version: 1.0
X-Sender: elharo AT mail.ibiblio.org
Message-Id: <p04330106baa14ba06089@[192.168.254.4]>
Date: Fri, 21 Mar 2003 18:10:51 -0500
To: xom-interest AT lists.ibiblio.org
From: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
Subject: [XOM-interest] New version of XOM slides posted
X-BeenThere: xom-interest AT lists.ibiblio.org
X-Mailman-Version: 2.1.1
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: Fri, 21 Mar 2003 23:13:09 -0000

I've posted a new version of the "What's Wrong with XML APIs (and how to fix them)" slides on the web site:

http://www.cafeconleche.org/XOM/whatswrong/

This mostly fixes various anachronisms I noticed while presenting XOM to the UKUUG and XML UK user groups in London this past week. It also improves the formatting and adds a couple of bullet points here and there.

I'm increasingly unimpressed with the OpenOffice Impress program I use for this presentation. PowerPoint it's not. Before I give this talk again, I really have to port these notes to XML like the rest of my classes.
--

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo AT metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
| Processing XML with Java (Addison-Wesley, 2002) |
| http://www.cafeconleche.org/books/xmljava |
| http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA |
+----------------------------------+---------------------------------+
| Read Cafe au Lait for Java News: http://www.cafeaulait.org/ |
| Read Cafe con Leche for XML News: http://www.cafeconleche.org/ |
+----------------------------------+---------------------------------+
From elharo AT metalab.unc.edu Fri Mar 21 18:37:34 2003
Return-Path: <elharo AT metalab.unc.edu>
Delivered-To: xom-interest AT lists.ibiblio.org
Received: from mail.speakeasy.net (mail17.speakeasy.net [216.254.0.217])
by happyhouse.metalab.unc.edu (Postfix) with ESMTP id 5A48D20011
for <xom-interest AT lists.ibiblio.org>;
Fri, 21 Mar 2003 18:37:34 -0500 (EST)
Received: (qmail 22169 invoked from network); 21 Mar 2003 23:37:43 -0000
Received: from unknown (HELO [192.168.254.4]) ([216.254.85.72])
(envelope-sender <elharo AT metalab.unc.edu>)
by mail17.speakeasy.net (qmail-ldap-1.03) with SMTP
for <brian AT mbari.org>; 21 Mar 2003 23:37:43 -0000
Mime-Version: 1.0
X-Sender: elharo AT mail.ibiblio.org
Message-Id: <p04330108baa15187c3ad@[192.168.254.4]>
In-Reply-To: <4E14C492D376D51194290090278750B601348243 AT cumulus.shore.mbari.org>
References: <4E14C492D376D51194290090278750B601348243 AT cumulus.shore.mbari.org>
Date: Fri, 21 Mar 2003 18:34:41 -0500
To: "Schlining, Brian" <brian AT mbari.org>,
"'xom-interest AT lists.ibiblio.org'" <xom-interest AT lists.ibiblio.org>
From: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
Subject: Re: [XOM-interest] ParentNode.hasChildren() bug?
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
X-BeenThere: xom-interest AT lists.ibiblio.org
X-Mailman-Version: 2.1.1
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: Fri, 21 Mar 2003 23:37:34 -0000

At 3:04 PM -0800 3/21/03, Schlining, Brian wrote:


....gotKids evaluates to false. The documentation says that "hasChildren" returns true if the node has child nodes. Since Attribute is a node shouldn't gotKids evaluate to true?



No, an attribute is a node but it is not a child so this is not a bug. Attributes are on a different axis in XPath terms. Yes, this is a little weird, and it threw me when I first started working with XPath.


P.S. I'm not on the XOM mailing list so please direct a copy of any replies to <mailto:brian AT mbari.org>brian AT mbari.org


Interesting. In that case, you shouldn't have been able to post. I wonder how it got through? That may explain a little of the spam on the list lately.
--

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo AT metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
| Processing XML with Java (Addison-Wesley, 2002) |
| http://www.cafeconleche.org/books/xmljava |
| http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA |
+----------------------------------+---------------------------------+
| Read Cafe au Lait for Java News: http://www.cafeaulait.org/ |
| Read Cafe con Leche for XML News: http://www.cafeconleche.org/ |
+----------------------------------+---------------------------------+
From passani AT eunet.no Sat Mar 22 17:39:41 2003
Return-Path: <passani AT eunet.no>
Delivered-To: xom-interest AT lists.ibiblio.org
Received: from mail-relay.eunet.no (mail-relay.eunet.no [193.71.71.242])
by happyhouse.metalab.unc.edu (Postfix) with ESMTP id 531CF20022
for <xom-interest AT lists.ibiblio.org>;
Sat, 22 Mar 2003 17:39:41 -0500 (EST)
Received: from eunet.no (multiport046.multinet.no [195.139.231.111])
h2MMddSM053619 for <xom-interest AT lists.ibiblio.org>;
Sat, 22 Mar 2003 23:39:39 +0100 (CET)
(envelope-from passani AT eunet.no)
Message-ID: <3E7CE62A.6080102 AT eunet.no>
Date: Sat, 22 Mar 2003 23:39:38 +0100
From: luca passani <passani AT eunet.no>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
rv:1.0.2) Gecko/20030208 Netscape/7.02
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: xom <xom-interest AT lists.ibiblio.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: [XOM-interest] linux journal
X-BeenThere: xom-interest AT lists.ibiblio.org
X-Mailman-Version: 2.1.1
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: Sat, 22 Mar 2003 22:39:42 -0000

guys, I know that this may sound hard to believe, but they buglarized
my house and among other things they took a sack with the copy
of the linux journal which contained the XOM article I had purchased when I
was in the US.

Since I have failed to find the magazine again here in europe so far,
can anyone tell me where I can find the article or, at least, the source code
in the article? I am particularly interested in the bit
that does the parsing, since the tutorial on the cafeconleche site
fails to give a complete example and I understand the alternative is
to study the SAX/Xerces stuff before I get even the simple things done.

Thank you

Luca

PS: I am evaluating using XOM for handling the XML parsing
part of another open source project I am managing.
The guy who did the XML part used JAXB, but I am not convinced of his
choice. Elliote, are you interested in hearing about that project just to see if there
are any possible synergies?
in the affirmative case, do you want me to take the conversation off-line or
should I post here?




  • [XOM-interest] Birds of a feather invitation, Elliotte Rusty Harold, 03/21/2003

Archive powered by MHonArc 2.6.24.

Top of Page