可以使用elemtextString变量来获得元素标签名称,该变量是为事件类型START _ TAG设置的。
Use the elemtext String variable, which was set for event type START_TAG, to get the element tag name.
如果元素标签名称是“catalog ”,请获得“journal ”与“publisher ”的属性值,并设置“ journal ”与“ publisher ”TextView小部件上的属性值。
If the element tag name is "catalog", obtain the attribute values for "journal" and "publisher" and set the attribute values on the "journal" and "publisher" TextView widgets.
如果元素标签名称是“catalog ”,请获得“journal ”与“publisher ”的属性值,并设置“ journal ”与“ publisher ”TextView小部件上的属性值。
If the element tag name is "catalog", obtain the attribute values for "journal" and "publisher" and set the attribute values on the "journal" and "publisher" TextView widgets.
应用推荐