Re: [Simple-support] cannot know the number of attributes through InputNode?
Brought to you by:
niallg
|
From: -=}\\*/{=- <rui...@gm...> - 2012-03-16 01:32:04
|
rehi,
since no one answers...
my current workaround...
private boolean hasAttributes(InputNode in) {
return in.getAttributes().iterator().hasNext();
}
[cheers] rui
On 20 February 2012 00:05, -=}\*/{=- <rui...@gm...> wrote:
> hi,
>
> i'm implementing a Converter and in the "read(InputNode in)"
> implementation i would like to test "in" for the presence of attributes.
>
> the NodeMap returned does not have a "int size()" or "boolean
> isEmpty()"... i can go and test the iterator but not much sense...
> what am i missing?
>
> thank you,
> rui
>
|