[prev in list] [next in list] [prev in thread] [next in thread]
List: xmlbeans-dev
Subject: RE: get/set methods for <xsd:any> element
From: "Cezar Andrei" <cezar () bea ! com>
Date: 2004-03-23 21:17:12
Message-ID: 4B2B4C417991364996F035E1EE39E2E11F347B () uskiex01 ! amer ! bea ! com
[Download RAW message or body]
The code is now in CVS, give it a try.
I've put up a wiki page for this feature at: \
http://wiki.apache.org/xmlbeans/SelectChildrenAndAttributesFeature .
Cezar
-----Original Message-----
From: Eric Vasilik
Sent: Wednesday, March 10, 2004 12:32 PM
To: xmlbeans-dev@xml.apache.org
Subject: RE: get/set methods for <xsd:any> element
I would rather use selectChildren. It is shorter and feels similar to
selectPath (which it is a convenience for) And XmlCursor has:
toFirstChild
and similar methods. Children in this context are assumed to be
elements.
-----Original Message-----
From: David Remy
Sent: Wednesday, March 10, 2004 10:27 AM
To: xmlbeans-dev@xml.apache.org
Subject: RE: get/set methods for <xsd:any> element
> -----Original Message-----
> From: Eric Vasilik
> Sent: Wednesday, March 10, 2004 1:31 AM
> To: xmlbeans-dev@xml.apache.org
> Subject: RE: get/set methods for <xsd:any> element
>
>
> These methods should not be prefixed with "get". They can
> conflict with
> schema generated methods. I suggest:
>
> selectChildren ( ... )
> selectAttributes ( ... )
> selectAttribute ( ... )
so selectChildren would be elements. i think we have talked about this
before in the XmlCursor API but why not selectChildElements?
>
> I choose "select" prefix because there is a precedent of the existing
> method on XmlObject already:
>
> selectPath( ... )
>
> These new select methods are convenience methods for the,
> more powerful,
> selectPath method.
I agree with your reasoning. +1
</snip>
- ---------------------------------------------------------------------
To unsubscribe, e-mail: xmlbeans-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/
- ---------------------------------------------------------------------
To unsubscribe, e-mail: xmlbeans-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/
- ---------------------------------------------------------------------
To unsubscribe, e-mail: xmlbeans-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic