Skip to content

Instantly share code, notes, and snippets.

@digvijaybhakuni
Created March 25, 2015 20:08
Show Gist options
  • Save digvijaybhakuni/3d33390d042274601434 to your computer and use it in GitHub Desktop.
Save digvijaybhakuni/3d33390d042274601434 to your computer and use it in GitHub Desktop.
package com.dgstack.dev;
import java.io.FileNotFoundException;
import java.util.List;
import javax.xml.stream.XMLStreamException;
import com.dgstack.dev.vo.UserVO;
/**
* @author digvijayb
*/
public class StAXReaderExce {
/**
* @param args
*/
public static void main(String[] args) {
try {
String path = "/home/digvijayb/App/test/user.xml";
StAXReader stAXReader = new StAXReader();
List<UserVO> list = stAXReader.getUserList(path);
System.out.println(list);
} catch (FileNotFoundException | XMLStreamException e) {
e.printStackTrace();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment