Created
March 25, 2015 20:08
-
-
Save digvijaybhakuni/3d33390d042274601434 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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