public final class XmlHelper extends Object
JsonHelper
.Constructor and Description |
---|
XmlHelper() |
Modifier and Type | Method and Description |
---|---|
static Object |
convert(AttributeConverter<? extends Object> converter,
String xml,
String name)
Convert a XML attribute.
|
static String |
get(String text,
String tag)
Get a sub-text between tags from a text.
|
static XmlMatch |
get(String text,
String tag,
int startPos)
Get a XML match between tags from a text, starting at a certain position.
|
public static String get(String text, String tag)
text
- the text.tag
- the tag.public static XmlMatch get(String text, String tag, int startPos)
text
- the text.tag
- the tag.startPos
- the position to start.public static Object convert(AttributeConverter<? extends Object> converter, String xml, String name)
converter
- converterxml
- xmlname
- attribute nameCopyright © 2016. All rights reserved.