Submit Search
Upload
JOOX - Java Object Oriented XML
•
1 like
•
2,190 views
Jakub Kubrynski
Follow
Technology
News & Politics
Report
Share
Report
Share
1 of 15
Download now
Download to read offline
Recommended
Wordpress 24/7
Wordpress 24/7
Антон Еремин
Clustering j boss7
Clustering j boss7
UAT
Sportify_company profile
Sportify_company profile
Sportify Asia
Sportify Intro
Sportify Intro
SPORTIFY
HAND FUN! Feb 15
HAND FUN! Feb 15
MBNBet
Designing for Performance: Database Related Worst Practices
Designing for Performance: Database Related Worst Practices
Christian Antognini
Growing up with agile - how the Spotify 'model' has evolved
Growing up with agile - how the Spotify 'model' has evolved
Peter Antman
Algorithmic Music Recommendations at Spotify
Algorithmic Music Recommendations at Spotify
Chris Johnson
Recommended
Wordpress 24/7
Wordpress 24/7
Антон Еремин
Clustering j boss7
Clustering j boss7
UAT
Sportify_company profile
Sportify_company profile
Sportify Asia
Sportify Intro
Sportify Intro
SPORTIFY
HAND FUN! Feb 15
HAND FUN! Feb 15
MBNBet
Designing for Performance: Database Related Worst Practices
Designing for Performance: Database Related Worst Practices
Christian Antognini
Growing up with agile - how the Spotify 'model' has evolved
Growing up with agile - how the Spotify 'model' has evolved
Peter Antman
Algorithmic Music Recommendations at Spotify
Algorithmic Music Recommendations at Spotify
Chris Johnson
Work sample coding tests
Work sample coding tests
Jakub Kubrynski
6 key tips for conducting an effective skill assessment interview
6 key tips for conducting an effective skill assessment interview
Jakub Kubrynski
JPA - Beyond copy-paste
JPA - Beyond copy-paste
Jakub Kubrynski
JVM Dive for mere mortals
JVM Dive for mere mortals
Jakub Kubrynski
-XX:+UseG1GC
-XX:+UseG1GC
Jakub Kubrynski
Consumer Driven Contracts - 4Developers 2015
Consumer Driven Contracts - 4Developers 2015
Jakub Kubrynski
REST - the good and the bad parts
REST - the good and the bad parts
Jakub Kubrynski
REST - the good and the bad parts
REST - the good and the bad parts
Jakub Kubrynski
What you won't read in books about RESTful services
What you won't read in books about RESTful services
Jakub Kubrynski
Introduction to Spring Boot!
Introduction to Spring Boot!
Jakub Kubrynski
Warsjawa profiling tools
Warsjawa profiling tools
Jakub Kubrynski
Warsjawa profiling
Warsjawa profiling
Jakub Kubrynski
Arquillian
Arquillian
Jakub Kubrynski
Spring Data
Spring Data
Jakub Kubrynski
Profiling
Profiling
Jakub Kubrynski
More Related Content
More from Jakub Kubrynski
Work sample coding tests
Work sample coding tests
Jakub Kubrynski
6 key tips for conducting an effective skill assessment interview
6 key tips for conducting an effective skill assessment interview
Jakub Kubrynski
JPA - Beyond copy-paste
JPA - Beyond copy-paste
Jakub Kubrynski
JVM Dive for mere mortals
JVM Dive for mere mortals
Jakub Kubrynski
-XX:+UseG1GC
-XX:+UseG1GC
Jakub Kubrynski
Consumer Driven Contracts - 4Developers 2015
Consumer Driven Contracts - 4Developers 2015
Jakub Kubrynski
REST - the good and the bad parts
REST - the good and the bad parts
Jakub Kubrynski
REST - the good and the bad parts
REST - the good and the bad parts
Jakub Kubrynski
What you won't read in books about RESTful services
What you won't read in books about RESTful services
Jakub Kubrynski
Introduction to Spring Boot!
Introduction to Spring Boot!
Jakub Kubrynski
Warsjawa profiling tools
Warsjawa profiling tools
Jakub Kubrynski
Warsjawa profiling
Warsjawa profiling
Jakub Kubrynski
Arquillian
Arquillian
Jakub Kubrynski
Spring Data
Spring Data
Jakub Kubrynski
Profiling
Profiling
Jakub Kubrynski
More from Jakub Kubrynski
(15)
Work sample coding tests
Work sample coding tests
6 key tips for conducting an effective skill assessment interview
6 key tips for conducting an effective skill assessment interview
JPA - Beyond copy-paste
JPA - Beyond copy-paste
JVM Dive for mere mortals
JVM Dive for mere mortals
-XX:+UseG1GC
-XX:+UseG1GC
Consumer Driven Contracts - 4Developers 2015
Consumer Driven Contracts - 4Developers 2015
REST - the good and the bad parts
REST - the good and the bad parts
REST - the good and the bad parts
REST - the good and the bad parts
What you won't read in books about RESTful services
What you won't read in books about RESTful services
Introduction to Spring Boot!
Introduction to Spring Boot!
Warsjawa profiling tools
Warsjawa profiling tools
Warsjawa profiling
Warsjawa profiling
Arquillian
Arquillian
Spring Data
Spring Data
Profiling
Profiling
JOOX - Java Object Oriented XML
1.
JOOX Jakub Kubrynski jkubrynski@gmail.com http://www.kubrynski.com/
2.
------------------------------------------- JOOX Java Object Oriented XML
3.
------------------------------------------- CORE PRINCIPLES - Simple
wrapper for org.w3c.dom - Inspired JOOQ - Matches jQuery API - Uses DOMParser internally
4.
------------------------------------------- GETTING JOOX - Maven dependency<
> groupId org.jooq /groupId< > < > artifactId joox /artifactId< > < > version 1.1.0 /version< > < > /dependency< > - Gradle 'org.jooq:joox:1.1.0'
5.
------------------------------------------- READING FILE import static
org.joox.JOOX.*; Match document = $(new File("pom.xml"));
6.
------------------------------------------- FINDING Match dependencies = document.find(„dependencies”);
7.
------------------------------------------- FILTERING Match dependencies = document.find(„dependency”) .filter(even()); -
or(...), and(...), all(), none() - even(), odd() - at(...), ids(...)
8.
------------------------------------------- XPATH Match dependencies = document.xpath(„//dependency”);
9.
------------------------------------------- ATTRIBUTES String xmlns = document.attr(„xmlns”); String
newValue = document.attr(„id”, „100”);
10.
------------------------------------------- MODIFICATION document .children("version") .content("1.0.1-SNAPSHOT"); Match trans =
$("trans"); trans.append($("id", "102")); trans.append($("client",$("name","Jan")));
11.
WHAT ELSE?
12.
------------------------------------------- JOOQ - create.selectFrom(BOOK) .where(PUBLISHED_IN.equal(2011)) .and(LANGUAGE.eq(„PL”)) .orderBy(TITLE) .limit(20) .offset(100)
13.
------------------------------------------- JOOR String world =
on("java.lang.String") .create("Hello World") .call("substring", 6) .call("toString") .get();
14.
------------------------------------------- LINKS - http://www.jooq.org/ - http://code.google.com/p/joox/ -
http://code.google.com/p/joor/
15.
DEMO!!
Download now