简体   繁体   English

在Java Applet中读取XML

[英]Reading XML in Java Applet

I know: 我知道:

  • I have to sign the applet so it can read files 我必须签署小程序,以便它可以读取文件
  • How to parse XML files 如何解析XML文件

My Questions would be: 我的问题是:

  • Should I keep the XML file in the .jar or separate? 我应该将XML文件保存在.jar中还是单独保存?
  • Are there some best practices tutorials? 是否有一些最佳做法教程? if so please link me 如果是这样,请链接我

If you ship your XML with the applet, then you won't need to sign it, as you're not really reading files, but just loading additional resources. 如果您将XML与applet一起交付,则您不需要对其进行签名,因为您并不是真正在读取文件,而只是加载其他资源。

Only you can answer where the XML should be, because we don't know what it's used for, how often it changes and if its the same for every user of your applet. 只有可以回答XML的位置,因为我们不知道XML的用途,更改的频率以及每个applet用户的更改是否相同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM