Jump to content

error while reading xml file mac os java applet

Recommended Posts

Hi:Every once in a while, I get the following exception when trying to read in my XML file. The file looks ok and seems to be valid. Any hints would be appreciated.I am trying to read the config file in mac os via applet and i get the above error.The same file while read form windows system works properlyjava.util.InvalidPropertiesFormatException: org.xml.sax.SAXParseException: Premature end of file.Best regards,SAGAR.This is my file syntax.<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"><properties><comment>Configuration File</comment><entry key="x1">y1</entry><entry key="x2">y2</entry><entry key="x3">y3</entry><entry key="x4">y4</entry></properties>

Link to post
Share on other sites
  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...