Thread
:
how to parse an xml file
View Single Post
#
3
(
permalink
)
07-31-2007, 02:03 AM
brianhks
Senior Member
Join Date: Jul 2007
Posts: 134
Because the file is in your classes folder you can use the ClassLoader to get at it. Try this:
Code:
builder.parse(this.getClass().getClassLoader().getResourceAsStream(xmlFile));
That will get you what you want.
brianhks
View Public Profile
Send a private message to brianhks
Find all posts by brianhks