Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Attributes, ParentNodes, and "child" nodes ...

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: John Cowan <cowan AT ccil.org>
  • To: Mike Colbert <mbcolbert AT yahoo.com>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Attributes, ParentNodes, and "child" nodes ...
  • Date: Thu, 16 Mar 2006 00:27:54 -0500

Mike Colbert scripsit:

> It certainly feels broken. Now I'm left guessing what methods in nu.xom
> with parameters of type Node actually do when passed an Attribute. Not
> to mention what methods that return Node or Nodes will ever return
> an Attribute. A lot of this is easy to guess, but that doesn't save you
> much
> work when guessing is not enough.

There are plenty of contexts where passing an arbitrary Node won't work:
addChild accepts a Node, but a Document cannot be passed, e.g.

--
My confusion is rapidly waxing John Cowan
For XML Schema's too taxing: cowan AT ccil.org
I'd use DTDs http://www.ap.org
If they had local trees -- http://www.ccil.org/~cowan
I think I best switch to RELAX NG.




Archive powered by MHonArc 2.6.24.

Top of Page