|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.flexiblewebsolutions.xml.util.XMLStringParser
public class XMLStringParser
Pulls values from an xml file using a simple XML parser.
Constructor Summary | |
---|---|
XMLStringParser()
|
Method Summary | |
---|---|
static java.lang.String[] |
getAllNestedTags(java.lang.String pXmlString)
Retrieves all tags nested within the tol level of the XML string. |
static java.lang.String |
getEntireTag(java.lang.StringBuffer pXML,
int pStartIndex,
java.lang.String pStartTag)
Retreive entire xml tag, ignoring embedded ending tags with same name. |
static java.lang.String |
getEntireTag(java.lang.StringBuffer pXML,
int pStartIndex,
java.lang.String pEndTag,
java.lang.String pStartTag)
Retreive entire xml tag, ignoring embedded ending tags with same name |
static java.lang.String[] |
getMatchingNestedTags(java.lang.String pXmlString,
java.lang.String pTag)
Retrieves the tags nested within the top level of the XML string matching a tag name. |
static java.lang.String |
getValueForTag(java.lang.StringBuffer pString,
java.lang.String pTag)
Return the value for a single tag inside a xml block. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLStringParser()
Method Detail |
---|
public static java.lang.String getValueForTag(java.lang.StringBuffer pString, java.lang.String pTag)
pString
- -
XML string.pTag
- -
Name of tag to retrieve value for
public static java.lang.String getEntireTag(java.lang.StringBuffer pXML, int pStartIndex, java.lang.String pEndTag, java.lang.String pStartTag)
pXML
- XML StringpStartIndex
- Location in XML to begin looking for tag.pEndTag
- Ending TagpStartTag
- Starting XML tag
public static java.lang.String getEntireTag(java.lang.StringBuffer pXML, int pStartIndex, java.lang.String pStartTag)
pXML
- XML StringpStartIndex
- Location in XML to begin looking for tag.pStartTag
- Starting XML tag
public static java.lang.String[] getMatchingNestedTags(java.lang.String pXmlString, java.lang.String pTag)
pXmlString
- XML string containing values.pTag
- Name of tag to find values for.
public static java.lang.String[] getAllNestedTags(java.lang.String pXmlString)
pXmlString
- XML string containing values
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |