Package uk.ac.cam.ch.wwmm.chemicaltagger
Class ExtractFromXML
- java.lang.Object
-
- uk.ac.cam.ch.wwmm.chemicaltagger.ExtractFromXML
-
public class ExtractFromXML extends Object
Extracts text from XML Patents.- Author:
- lh359
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getContent(InputStream in, String searchTag)
Returns the content of a searchTag from an XML File.static String
getStringValue(nu.xom.Element xmlTag, String delimiter)
Parses an XML files and saves the output into DocumentContainer.
-
-
-
Method Detail
-
getStringValue
public static String getStringValue(nu.xom.Element xmlTag, String delimiter)
Parses an XML files and saves the output into DocumentContainer.- Parameters:
xmlTag
- (Element)delimiter
- (String)- Returns:
- stringValue (String)
-
getContent
public static String getContent(InputStream in, String searchTag) throws nu.xom.ParsingException, IOException
Returns the content of a searchTag from an XML File.- Parameters:
in
- (InputStream)searchTag
- (String)- Returns:
- content (String)
- Throws:
nu.xom.ParsingException
IOException
-
-