Returns an attribute value of the element as a String . If the defaultValue parameter is specified and the attribute doesn't exist, then defaultValue is returned. If no defaultValue is specified and the attribute doesn't exist, null is returned. @webref xml:method
(String name)
| 766 | * @webBrief Gets the content of an attribute as a <b>String</b> |
| 767 | */ |
| 768 | public String getString(String name) { |
| 769 | return getString(name, null); |
| 770 | } |
| 771 | |
| 772 | |
| 773 | public String getString(String name, String defaultValue) { |