logo       
Google Custom Search
    AddThis Social Bookmark Button

RE: Using XPP3 in an Applet: msg#00003

Subject: RE: Using XPP3 in an Applet

Yes, this helped quite a bit.  Thank you very much for your quick response.

 

Jon Pierson

Entry Point Technologies, Inc.

Office:  713.592.0442

Mobile: 713.459.0199

 

-----Original Message-----
From: Aleksander Slominski [mailto:aslom@xxxxxxxxxxxxxxxxxxx]
Sent: Tuesday, February 04, 2003 8:09 PM
To: xmlpull-dev@xxxxxxxxxxxxxxx
Subject: Re: [xmlpull-dev] Using XPP3 in an Applet

 

sisyphus_shadow  wrote:

>I am trying to use XPP3 in a applet to parse data from a URL on the
>Web server.  I ran the example given in MyXmlPullApp.class and it
>worked fine.  Unfortunatly, with the applet I get the following
>error:
>
>java.security.AccessControlException: access denied
>(java.util.PropertyPermission org.xmlpull.v1.XmlPullParserFactory
>
>when calling the System.getPOropery while creating the factory.
>
>XmlPullParserFactory factory = XmlPullParserFactory.newInstance(
>    System.getProperty(XmlPullParserFactory.PROPERTY_NAME), null);
>
>I am relatively new to Java and could use some help.
>
>What do I need to do to parse XML in an Applet?
>
>Thanks for your help.

>
hi,

in such environment where only one parser implementation is available i
would create parser instance directly (for example by calling new*
org.xmlpull.mxp1.MXParser())* would not use
org.xmlpull.v1.XmlPullParserFactory

it is true that factory provides allow to hide implementation and to
allow switching different implementations without application source
code change - but this flexibility is rarely needed in applets anyway -
but on the other hand for applets size matters and not using
XmlPullParserFactory will keep applet size smaller ..

hope it helps,

alek


To unsubscribe from this group, send an email to:
xmlpull-dev-unsubscribe@xxxxxxxxxxxxxxx



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



To unsubscribe from this group, send an email to:
xmlpull-dev-unsubscribe@xxxxxxxxxxxxxxx



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>