Accessing DOM elements
Emiliano Heyns <[email protected]> Thu, 03 Apr 2003 13:36:50 +0200
| Newsgroups | gmane.comp.java.xwt.general |
|---|---|
| Message-ID | <[email protected]> |
Hey all,
Is there a sample code for accessing DOM objects in XWT? I want to load
an XML file with translations, which would either look like:
<translations>
<main.title>Main title here</main.title>
<accounts.title>Accounts title</accounts.title>
<accounts.apply>Apply button text</accounts.apply>
<!-- ... -->
</translations>
or
<translations>
<main>
<title>Main title here</title>
</main>
<accounts>
<title>Accounts title</title>
<apply>Apply button text here</apply>
</accounts>
<!-- ... -->
</translations>
or maybe even
<translations>
<main title="Main title here">
<accounts title="Accounts title"
apply="Apply button text here"
</accounts>
<!-- ... -->
</translations>
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.
Emile
_______________________________________________
http://lists.xwt.org/listinfo/dev