Re: Accessing DOM elements

Emiliano Heyns <[email protected]> Thu, 03 Apr 2003 14:40:00 +0200
Newsgroups gmane.comp.java.xwt.general
Message-ID <[email protected]>
Adam Megacz wrote:

> The dom elements are writeable; you can cache stuff in the parent
> node.

I see. So I could construct a hash for quick access.

>>and how do I access its content?
> 
> In XML, text sections are children; in other words:
> 
> <foo>
>    bar
>    <baz>
> </foo>
> 
> foo has two children, bar and baz.  bar and baz are siblings.

So this would look exactly the same as
<foo><bar/><baz/></foo>? I can't differentiate between elements and 
text? How is whitespace handled, then? And would

<foo>
   bar
   baz
   <quux/>
</foo>

have 3 children or two?

Emile

Emile


_______________________________________________
http://lists.xwt.org/listinfo/dev