Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
/ blafxml Public

BlafXML is a Scala/Java library for fast processing of big XML files, it combines a pull and a dom parser with parallel computing for a good compromise between ease of use and performance/memory-usage

License

Notifications You must be signed in to change notification settings

mdread/blafxml

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BlaFXML

BlaFXML is a Scala/Java library to process big XML files combining the java streamig api for xml and a dom parser

Scala example

BlafParser(reader).forEach("news"){ xml =>
    // do whatever you want with NodeSeq
    println((xml \ "title").text)
}.forEach("author"){ xml =>
    // do whatever you want with NodeSeq
    println((xml \ "name").text)
} process

Java example

new JBlafParser(reader).forEach("news", new BlafFunction(){
    @Override
    public void process(Document xml) {
        // do whatever you want with org.w3c.dom.Document
        System.out.println(xml.getFirstChild().getNodeName());
    }
}).forEach("author", new BlafFunction(){
    @Override
    public void process(Document xml) {
        // do whatever you want with org.w3c.dom.Document
        System.out.println(xml.getFirstChild().getNodeName());
    }
}).process();

Maven dependencies (for java)

<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
<version>2.9.1</version>
<groupId>com.typesafe</groupId>
<artifactId>config</artifactId>
<version>0.4.1</version>
<groupId>net.caoticode</groupId>
<artifactId>blafxml</artifactId>
<version>0.0.1-SNAPSHOT</version>
...

About

BlafXML is a Scala/Java library for fast processing of big XML files, it combines a pull and a dom parser with parallel computing for a good compromise between ease of use and performance/memory-usage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.