We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 693c3b4 commit 634f73fCopy full SHA for 634f73f
1 file changed
xml/People.java
@@ -3,11 +3,12 @@
3
// the XOM library from http://www.xom.nu }
4
// {RunFirst: Person}
5
import nu.xom.*;
6
+import java.io.File;
7
import java.util.*;
8
9
public class People extends ArrayList<Person> {
10
public People(String fileName) throws Exception {
- Document doc = new Builder().build(fileName);
11
+ Document doc = new Builder().build(new File(fileName));
12
Elements elements =
13
doc.getRootElement().getChildElements();
14
for(int i = 0; i < elements.size(); i++)
0 commit comments