Phil Troy wrote:
> Hi!
>
> I am using Eclipse, and have added xpp3_min-1.1.4c.jar to be an
> external jar for my current Eclipse project. I have added imports for
> xmlPullParser as follows:
>
> import org.xmlpull.v1.XmlPullParser;
> import org.xmlpull.v1.XmlPullParserException;
> import org.xmlpull.v1.XmlPullParserFactory;
>
> I build my project in Eclipse and get the following error "the
> import org.xmlpull.v1.XmlPullParserFactory cannot be resolved.
>
> (I am guessing that XmlPullParserFactory is not in the jar mentioned
> above.)
>
> How do I fix this problem?
>
min version (xpp3_min-1.1.4c.jar) is minimal and it does not have parser
factory - you have two options:
1. create parser directly using its public constructor (new MXParser()
should work)
2. download standard xpp3 jar version
http://www.extreme.indiana.edu/dist/java-repository/xpp3/jars/xpp3-1.1.4c.jar
and then you can use XmlPullParserFactory
HTH,
alek
> Philip M. Troy, Ph.D.,
> Decision Support Systems Analyst
> PhilTroy@...
> www.PhilTroy.com
>
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
--
The best way to predict the future is to invent it - Alan Kay