File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes Help parse using JAXP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Help parse using JAXP" Watch "Help parse using JAXP" New topic

Help parse using JAXP

Patricia Fulk
Ranch Hand

Joined: Sep 10, 2001
Posts: 62
Can someone help me out. I am trying to load xml into an object and it is giving me problems. The xml is as follows:
<name>test company name</name>
<name>Large Value</name>
<name>Large, Mid, Small Blend</name>
I am trying to get the class name and percents into an object but I keep getting a null pointer exception. Here is the code:

If someone could help I would really appreciate it.
I agree. Here's the link:
subject: Help parse using JAXP
jQuery in Action, 3rd edition