Skip to content

liveodds/xmlparser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

xmlparser

A simple String xml parser in Java

String parsing for efficiency for most types of xml.

Usage:

String result = new StringXMLParser().parse(xml, "searchTerm//child"); or

String result = new StringXMLParser().parse(xml, "searchTerm");

Example xml:

<result>
<id>1</id>
<amount>10</amount>
</result>

Let's say we want to read the amount tag: String result = new StringXMLParser().parse(xml, "amount");

or String result = new StringXMLParser().parse(xml, "result//amount");

Releases

No releases published

Packages

No packages published

Languages