1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-06-27 05:44:50 +02:00

Fix FormField.Option.toXML() to use correct element

Fixes SMACK-589
This commit is contained in:
Florian Schmaus 2014-07-30 21:58:10 +02:00
parent 5ead24e416
commit 0b6069d75f

View file

@ -313,7 +313,7 @@ public class FormField {
*/ */
public static class Option { public static class Option {
public static final String ELEMNT = "option"; public static final String ELEMENT = "option";
private final String value; private final String value;
private String label; private String label;
@ -352,7 +352,7 @@ public class FormField {
public XmlStringBuilder toXML() { public XmlStringBuilder toXML() {
XmlStringBuilder xml = new XmlStringBuilder(); XmlStringBuilder xml = new XmlStringBuilder();
xml.halfOpenElement(ELEMNT); xml.halfOpenElement(ELEMENT);
// Add attribute // Add attribute
xml.optAttribute("label", getLabel()); xml.optAttribute("label", getLabel());
xml.rightAngelBracket(); xml.rightAngelBracket();