SAX parser not finding my DTD. Help please

I have written a small XML file and its DTD that are stored in the same folder which is C:/Work/pdftools. Here is a part of the code that is generating errors:
inputSource.setSystemId( "c:/Work/pdftools/userSettings.xml" );
parserAdapter.parse( inputSource );
So, I am setting the systemID on my inputSource that I want to parse.
But, i am encountering the following error:
"External entity not found: "c:/Work/pdftools/userSettings.dtd"
Does someone have any idea why is this happening?
Thanks

"c:/Work/pdftools/userSettings.dtd"Because that isn't a URL. Tryfile://c:/Work/pdftools/userSettings.xmlor something like that with 1 or 3 slashes after "file:".

Similar Messages

  • I just switched from Outlook to Mail and now the sent messages are not being displayed.  Help, please.

    I just switched from Outlook to Mail and now the sent messages are not being displayed.  Help, please.

    Back up all data. Rebuild the mailbox.

  • TS1702 Hello, I,m having problems with Polish spell check. It says in iPnstruction that this App (pages) should show my writing mistakes. Check spell button is on but but check spell is not working. Need help Please.

    Hello, I,m having problems with Polish spell check. It says in iPnstruction that this App (pages) should show my writing mistakes. Check spell button is on but but check spell is not working. Need help Please.

    Hello, I,m having problems with Polish spell check. It says in iPnstruction that this App (pages) should show my writing mistakes. Check spell button is on but but check spell is not working. Need help Please.

  • My Apple desktop computer, 2.4 GHz Intel duo core, OS 10.6.8, stopped recognizing the WD My Book connected via firewire. It works fine with the USB port so it's not the drive. Help please.

    My Apple desktop computer, 2.4 GHz Intel duo core, OS 10.6.8, stopped recognizing the WD My Book connected via firewire. It works fine with the USB port so it's not the drive. Help please?

    It can be the bridge. It could need firmware update. or the FW ports may be an issue. LaCie seemed to invent the phrase/tip 'resetting firewire ports' due to the issues with their drive cases.
    You can try an SMC Reset.
    So far I have avoided name-brand and tend to see them mentioned. Often with a new OS (though you are on 10.6.8, but when 10.6 came out there was a common complaint and thread of users: FW or USB worked but not the other interface).

  • Mail will not send messages. Help please: it receives OK but parks my outbound stuff in either Drafts or Outbox

    Mail will not send messages. Help please: it receives OK but parks my outbound stuff in either Drafts or Outbox

    Thanks for your answer. Apprciate it very much. Just prior to receiving your email, I got back online. However, as I had tried what you suggested (and a lot more as I am 'reasonably' competent), and had been so doing since yesterday afternoon, I do believe that what you suggested was correct - that it was my third rate ISP that was at fault.
    Nevertheless, many thanks once again.
    MJ

  • I reset the ipad. hoping it would help. but still it needs password for activation. the owner already forgot password for icloud as well as password of the email since it was not used since 2011. help please.

    I reset the ipad. hoping it would help. but still it needs password for activation. the owner already forgot password for icloud as well as password of the email since it was not used since 2011. help please.

    Your sister can go to https://iforgot.apple.com/ and see if she can recover her password.
    There is nothing anybody else can do.

  • I cannot upload an exel file from lap top to numbers in iPad, message says file not supported.   Any help please?

    I cannot upload an exel file from lap top to numbers in iPad, message says file not supported.   Any help please?

    File Sharing lets you transfer files between iPad and your computer. You can share files created with a compatible app and saved in a supported format.
    Apps that support file sharing appear in the File Sharing Apps list in iTunes. For each app, the Files list shows the documents that are on iPad. See the app’s documentation for how it shares files; not all apps support this feature.
    Connect iPad to your computer.
    In iTunes, select iPad in the Devices list, then click Apps at the top of the screen.
    In the File Sharing section, select an app from the list on the left.
    On the right, select the file you want to transfer, then click “Save to” and choose a destination on your computer.
    Transfer a file from your computer to iPad:
    Connect iPad to your computer.
    In iTunes, select iPad in the Devices list, then click Apps at the top of the screen.
    In the File Sharing section, click Add.
    Select a file, then click Choose (Mac) or OK (PC).
    The file is transferred to your device and can be opened using an app that supports that file type. To transfer more than one file, select each additional file.
    Delete a file from iPad: Select the file in the Files list, then tap Delete.
    or use dropbox

  • Had to uninstall Firefox, now I can't reinstall. Get error message "Can not find archive file." Please help!

    I believe I had some kind of virus attack. I got everything cleaned up. (I HOPE) In the process of cleaning the virus, I unintalled Firefox because it wouldn't open. Kept getting the error message that Firefox was already open and I had to close out of the sessions or restart the computer. After restarting the computer several times and not being able to find any open sessions in task manager, I uninstalled. When trying to reinstall, I get the error message "can not find archive file." I've tried downloading Firefox from cnet as well as the Mozilla site to no avail. Please help. I'm getting tired of using Chrome already!

    Hello,
    Certain Firefox problems can be solved by performing a ''Clean reinstall''. This means you remove Firefox program files and then reinstall Firefox. Please follow these steps:
    '''Note:''' You might want to print these steps or view them in another browser.
    #Download the latest Desktop version of Firefox from http://www.mozilla.org and save the setup file to your computer.
    #After the download finishes, close all Firefox windows (click Exit from the Firefox or File menu).
    #Delete the Firefox installation folder, which is located in one of these locations, by default:
    #*'''Windows:'''
    #**C:\Program Files\Mozilla Firefox
    #**C:\Program Files (x86)\Mozilla Firefox
    #*'''Mac:''' Delete Firefox from the Applications folder.
    #*'''Linux:''' If you installed Firefox with the distro-based package manager, you should use the same way to uninstall it - see [[Installing Firefox on Linux]]. If you downloaded and installed the binary package from the [http://www.mozilla.org/firefox#desktop Firefox download page], simply remove the folder ''firefox'' in your home directory.
    #Now, go ahead and reinstall Firefox:
    ##Double-click the downloaded installation file and go through the steps of the installation wizard.
    ##Once the wizard is finished, choose to directly open Firefox after clicking the Finish button.
    Please report back to see if this helped you!
    Thank you.

  • New MPB - iPod shows up in Finder but not in iTunes. Help please!

    I just completed a 95% successfull migration from my old MPB to my new MPB. iTunes seems to work fine, sees all my music and I have authorized the new mac to play the music.
    However, when I connect either of my two ipods I get the same result - it does not show up in iTunes but immediately shows up in Finder. Given the same thing happens with both ipods I suspect there is some silly little setting I have to go through. Can anybody help please?
    The MBP is a brand new 13" with the smaller processor. The iPods are a 2nd generation 40Gb and the 120Gb Classic.

    So I ended up reinstalling iTunes. That almost solved it, but when I also restored the iPods it seems to be OK.
    Must say I'm disappointed that a brand new Mac behaves this way (and ironically it did not even have the latest software installed...).

  • Why are all the events in the XML SAX parser not activated?

    Hi everyone,
    I have written a mini server that parses XML files into SQL queries.
    Below is a segment of my code;
              try          {                                                       
                   Class.forName( JDBC_DRIVER );
                   myConnection = DriverManager.getConnection( DATABASE_URL, "username", "password");                                                  
                   EventXMLParser myEXP = new EventXMLParser(directory, myConnection);
                   File[] xmlFiles = directory.listFiles();
                   for (File xmlFile : xmlFiles)               {     
                        myEXP.XMLtoDB(xmlFile);
                        outWriter.println("File:" + xmlFile.getName() + " DONE");
              } catch (SQLException e)     {
                   System.err.println("SQLException for establishing connection");
                   e.printStackTrace();
              } catch (ClassNotFoundException e)     {
                   System.err.println("CLASS NOT FOUND EXCEPTION HERE");
                   e.printStackTrace();
              } catch (Exception e)     {
                   System.err.println(e);
                   e.printStackTrace();
              finally {
                   outWriter.println("PARSING COMPLETED");
                   outWriter.close();
         }Where the constructor EventXMLParser constructs the following:
         public EventXMLParser(File path, Connection connection)     {
              super();
              try     {
                   this.XMLpath = path;
                   this.db_connection = connection;
                   this.xr = XMLReaderFactory.createXMLReader();
                   this.XMLSAXhandler  = new DefaultHandler(); //create a new own handler
                   this.xr.setContentHandler(XMLSAXhandler);
                   this.xr.setErrorHandler(XMLSAXhandler);
                   //System.out.println("DEBUG: db_connection is " + db_connection.toString());
              catch (Exception e)     {
                   System.out.println("Constructor Error!");
                   e.printStackTrace();
         }Below are all my helper methods within EventXMLParser.java
         public void XMLtoDB(String XMLpath) throws Exception  {
              try     {
                   //Input
                   System.out.println("XMLpath is : " + XMLpath);
                   /*FileReader r = new FileReader(XMLpath); debug
                   InputSource in = new InputSource(r);
                   xr.parse(in);
                   xr.parse(XMLpath);
                   /* Note that while parsing, the end of each event, </event>
                    * will trigger sendSQL to execute the query on the database
              catch (Exception e)     {
                   throw new Exception("Error with XMLtoDB!! Exception: " + e);
         public void sendSQL(Event event, Connection sql_connection) throws SQLException     {
                   //JDBC part
                   try     {
                        System.err.println("DEBUG sendSQL");
                        Statement sql_statement = sql_connection.createStatement();
                        ResultSet resultSet = sql_statement.executeQuery( event.toSQL() );
                   catch (SQLException e)     {
                        e.printStackTrace();
         /* Parsing XML
          * From here onwards it's all designed for the SAX Parsing with different event calling methods
         public void startDocument()     {
              System.err.println("Start Document");
         public void endDocument()     {
              System.err.println("End Document");
         public void startElement(String uri, String name, String qName, Attributes atts)     {
              CurrentElement= name;
              System.out.println("This is parsing");
         public void characters(char ch[], int start, int length)     {
              SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
              StringBuffer sb = new StringBuffer();
              for (int i = start; i < start + length; i++)     
                   sb.append(ch);
              String content = sb.toString();
              if (CurrentElement.equals("eid"))
                   temp.setEventID( (Integer.valueOf(content)).intValue() ) ;
              else if (CurrentElement.equals("sd"))
                   temp.setShort_description(content);
              else if (CurrentElement.equals("ld"))
                   temp.setLong_description(content);
              else if ( (CurrentElement.equals("dt")))
                   temp.setDate_Time( formatter.parse(content, new ParsePosition(0)) );
              else if (CurrentElement.equals("repeat"))
                   temp.setRepeat_pattern( (Integer.valueOf(content)).intValue() );
              else if (CurrentElement.equals("valid"))
                   temp.setValid_period(content);
              else if (CurrentElement.equals("status"))     {
                   temp.setStatus( (Integer.valueOf(content)).intValue() );
              else {}
         public void endElement(String uri, String name, String qName)     {
              System.err.println("DEBUG" + temp.toString()); /*debug*/
              if (name.equals("event"))     {
                   try     {
                        /*debug*/ temp.setUserID(1);
                        /*debug*/ System.err.println("DEBUG: " + temp.toString());
                        sendSQL(temp, db_connection);
                        //temp = new Event();
                   catch (SQLException e)     {
                        System.err.println(e);
                   }//end catch
              }//end try
    Where event is a public class Event     {
         //fields
         private int userID = 1; // = 1 only applies for testing
         private int eventID;
         private String short_description;
         private String long_description;
         private Date date_time = null;
         private int repeat_pattern;
         private String valid_period;
         private int status;     //1 for new, 0 for modification and -1 for delete
         SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
         //Constructors
         //every event requires the following: userID eventID and short_Description
         public Event(int uID, int eID, String shortDescrp)     {
              setUserID(uID);
              setEventID(eID);
              setShort_description(shortDescrp);
         public Event(int uid, int eid, String sd,
                                  String ld, Date d_t, int r_p, String v_p, int s)     {
              setUserID(uid);
              setEventID(eid);
              setShort_description(sd);
              setLong_description(ld);
              setDate_Time(d_t);
              setRepeat_pattern(r_p);
              setValid_period(v_p);
              setStatus(s);
         //set
         public void setUserID (int x)                         { this.userID = x ;}
         public void setEventID (int x)                         { this.eventID = x ;}
         public void setShort_description (String x)          { this.short_description = x ;}
         public void setLong_description (String x)          { this.long_description = x ;}
         public void setDate_Time(Date x)                    { this.date_time = x ;}
         public void setRepeat_pattern (int x)               { this.repeat_pattern = x ;}
         public void setValid_period (String x)               { this.valid_period = x ;}
         public void setStatus (int x)                         { this.status = x; }
         //get
         public int           getUserID()                              { return this.userID;}
         public int           getEventID()                         { return this.eventID;}
         public String      getShort_description()               { return this.short_description;}
         public String      getLong_description()               { return this.long_description;}
         public Date        getDate_Time()                         { return this.date_time;}
         public int         getRepeat_pattern()                    { return this.repeat_pattern;}
         public String      getValid_period()                    { return this.valid_period;}
         public int           getStatus()                              { return this.status; }
         //Event to SQL statements;
         public String toSQL()     {
              StringBuffer sb = new StringBuffer();
              ///if ( status == 1)     {
                   sb.append( "INSERT INTO events SET" );
                   sb.append( " userID = " + userID + ", ");
                   sb.append( "eventID = " + eventID + ", " );
                   sb.append( "short_description = " + "\'" + short_description + "\'" + ", "); //String
                   sb.append( "long_description = " + "\'" + long_description + "\'"  + ", "); //String
                   sb.append( "date_time = " + "\'" + formatter.format(date_time) + "\'" + ", ");
                   sb.append( "repeat_pattern = " + repeat_pattern + ", " );
                   sb.append( "valid_period = " + "\'" + valid_period + "\'" ); //String
                   sb.append( ";");
              //} else if ( status == 2)      {
              System.err.println(sb.toString());
              return sb.toString();
    }     My question is: I have taken my SQL query generated by toSQL() method in events and it worked.
    Here is the funny thing:
    Everything is correct syntax wise: No complaints what soever
    The mysql part works: Tested separately.
    So I tend to think that the problem lies within the SAX parser. I have written SAX2 parsers on this machine before and they have worked too. I tried inserting println statements all over startElement endElement etc etc only to find out that the SAX parser did not call any of the methods that I overided!! Why is that so?
    Can you guys spot where my SAX parser fails?

    I see.
    I try to correct this problem by removing super();
    so right now my code looks like this:
         static Event temp = new Event(0, 0, "null", "null", new Date(), 0, "null", 0);
         static String CurrentElement = null;
         static File XMLpath;
         static Connection db_connection;
         static XMLReader xr;
         static DefaultHandler XMLSAXhandler; 
         //Constructor,      Build the SAX Parser
         public EventXMLParser(File path, Connection connection)     {
              try     {
                   this.XMLpath = path;
                   this.db_connection = connection;
                   this.xr = XMLReaderFactory.createXMLReader();
                   this.XMLSAXhandler  = new DefaultHandler(); //create a new own handler
                   this.xr.setContentHandler(XMLSAXhandler);
                   this.xr.setErrorHandler(XMLSAXhandler);
                   //System.out.println("DEBUG: db_connection is " + db_connection.toString());
              catch (Exception e)     {
                   System.out.println("Constructor Error!");
                   e.printStackTrace();
         }This time, I created a new instance of default handler() which can be referenced by as the objects's XMLSAXhandler. However, that did not solve the problem, why does the problem still persist?
    Right now, there is only one instance of a default handler created. So why does all my parsing event functions still get ignored?

  • Could not find jrmc.exe. help required

    i have installed jrmc on windows. i want to access it remotely.
    http://download.oracle.com/docs/cd/E15289_01/doc.40/e15067/toc.htm
    according to instructions, it installed properly.
    i could not find jrmc.exe in my windows, to access it.
    anyone please help me out.
    thanks in advance.

    If you installed JRMC using the installer, you should have a new entry in your start menu.
    Which version of JRMC did you install?
    The installation dir default valyue for the latest JRMC is C:\Program Files\Java\jrockit-jdk1.6.0_29-R28.2.0-4.1.0
    If you don't find something there I suggest you try reinstalling.
    Klara, Mission Control QA

  • TS3276 my server went down and now my email is not working, can anyone help please?

    My website server went down and now my email is not working (though the server is back up)
    Does anyone know what I need to do?
    I'm told by my website hosts that I need to 'reconfigure authentication" but I have no idea how to do this, they are now closed for the weekend and I need it fixed before Monday morning. Could anyone tell me where to find step by step instructions. I've tried but have made matters worse and the couple of mail accounts that WERE still receiving email are now also not.
    Help please!

    Hi Eyen80,
    If you are having issues with your iPhone’s camera not functioning, you may want to troubleshoot using the steps in this article -
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/TS2802
    Specifically -
    Camera isn't functioning or has undesired image quality
    If the screen shows a closed lens or black image, force quit the Camera app.
    If you do not see the Camera app on the Home screen, try searching for it in Spotlight. If the camera does not show up in the search, check to make sure that Restrictions are not turned on by tappingSettings > General > Restrictions.
    Ensure the camera lens is clean and free from any obstructions. Use a microfiber polishing cloth to clean the lens.
    Cases can interfere with the camera and the flash. Try gently cleaning the lens with a clean dry cloth or removing the case if you see image or color-quality issues with photos.
    Try turning iPhone off and then back on.
    Tap to focus the camera on the subject. The image may pulse or briefly go in and out of focus as it adjusts.
    Try to remain steady while focusing:
    Still images: Remain steady while taking the picture. If you move too far in any direction, the camera automatically refocuses to the center.
    Note: If you take a picture with iPhone turned sideways, it is automatically saved in landscape orientation.
    Video: Adjust focus before you begin recording. You can also tap to readjust focus while recording. Exiting the Camera application while recording will stop recording and will save the video to the Camera Roll.
    Note: Video-recording features are not available on original iPhone or iPhone 3G.
    If your iPhone has a front and rear camera, try switching between them to verify if the issue persists on both.
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • Itunes 10.5.2x64 cannot install on winidows7 laptop.10.5.1x64 worked ok , tried to update now nothing, itunes will just not re-install , any help please!!

    Cannot get itunes 10.5.2x64 to install at all, 10.5.1x64 worked ok  on my Vaio win7 laptop.The update totally screwed everything,
    all I get is "the installer encountered errors before itunes could be configured.errors occured during installation.your system has not been modified."
    Any help please!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    Praise God - I found the solution after hours of work: (1) Uninstall all Apple programs (itunes, Quicktime, Bonjour, .....); (2) Go to "Common Files" and delete all Apple files - this might be difficult for some are locked from you - you may have to change the "Owner" of the file in order to delete it - if that doesn't work "Rename the Apple Follder to something like Apple Old - that's like deleting it.  Then download 10.5 from Apple and away you go - yippee.

  • Imy iPhone sounds are not working. Any help please

    I have an iPhone 4s. I Powered it offhand when I opened it again all the sounds like the keyboard sounds and the sound u here when u unlock the phone. Even the music in games are not working. However, when I listen to music or watch videos on YouTube there are no problems. Any help please??

    All the contacts sync configuration has been done, first I configured the iTunes to sync with outlook but nothing happen, then change to Gmail but same.
    My contacts on my iPhone, no contacts in outlook.
    No error msg

  • Something is using up all my data even when I'm not using apps. Help please!

    Something is using up my data even when I'm not using any apps. Please help!

    I turned off my mobile data and made no phonecalls or sent no text messages but 30 minutes later my phone credit was a euro less even though I had just topped up. I have had problems with my mobile data using up all of my network provider allowance and then the remaining balance on my phone. And this is even though I had not been using it much.

Maybe you are looking for

  • Problem w safari and hp laserjet printer

    Thanks for any help. My computer cannot find the hp laserjet 4050tn in printer preferences. It goes through a wireless router but I am not using wireless--using ethernet instead. My computer can find other computers on my LAN. While in Safari, if I t

  • WHTax Data in Accounting Information Screen of the Co Code View in FK01

    Hi Experts Is there any configuration other than the field status for Vendor Account Group, field status at company code level and field status per vendor creation activity for displaying fields in FK01/FK02. The With Holding Tax Data field group is

  • Error /SAPAPO/TSM 041 when loading from InfoCube to SNP planning area

    I am using APO V5.1. I have a 'backup' InfoCube with characteristics 9ARNAME and 9AVERSION which I'm loading to an SNP planning area via trans /SAPAPO/TSCUBE. The InfoCube is itself populated from the 9ARE aggregate of the SNP planning area. But I ge

  • How To pass the value within the page using jsp?

    How to passing the textbox value within the jsp page without using javascript or reload the page. I have a scenario like this: I have a textbox named as "accno" which allow user to key in the accno. After key in the accno, this accno value will used

  • Sandbox error when updating motion in app store

    Not sure why but it would download and then the install would error out and I would get a cryptic "sandbox" error. Strange. Never had that happen and why with an Apple product. I did have to do a system restore last night as the Thunderbolt update ma