Re: Accessing DOM elements

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

>>How would I access these in XWT? I've loaded them using 
>>main.translations = openFile("").getDOM(); for the time being, but I 
>>don't really know what to do with them from this point on.
> 
> http://www.xwt.org/reference.html#domrepresentation

I read that, but I don't know if that means I should access

main.translations.main.title or whatnot. Or should I cycle through
main.translations.children to find one with a name that matches 
'main.title'? That's going to be expensive (traversing the whole thing 
every time I need a translation string), and how do I access its content?

Emile


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