Set path for DTD in java app

From: Moth (not_at_this.address)
Date: 10/11/04

  • Next message: MiBx: "Re: THE SINGLETON PATTERN ?"
    Date: Mon, 11 Oct 2004 10:47:22 GMT
    
    

    Obscure subject I know.

    I have an application which loads data from an xml file. That xml file has
    an associated dtd to ensure that it is correctly formatted. The dtd is in
    the same folder as the xml file. The application does not know the path of
    xml file and searches for it a run time. When it opens the xml file, it
    assumes that the dtd file is in the folder of the default path of the
    application rather than the same folder as the xml file. How do I get the
    xml parser to check for the dtd in the same path as the xml file?


  • Next message: MiBx: "Re: THE SINGLETON PATTERN ?"

    Relevant Pages

    • Re: How to read an XML file in Visual C++ 6
      ... the DTD could be part of the XML file itself ... I'd vote for putting it in the resources. ... It makes no sense to put a remote URL into a file which is going to be used locally. ...
      (microsoft.public.vc.mfc)
    • Serializing from XML with remote DTD
      ... I have an XML file which I am serializing into a class using the ... the XML file has a dtd in it that points to a remote ... mean, it's not trying to validate it, so why ...
      (microsoft.public.dotnet.languages.csharp)
    • Re: Convert flat file to XML document
      ... >I am a newbee and have a comma seperated flat-file and a DTD. ... >XML file as per the the definition in the DTD. ... As required add extra processing to your program so that you can ... The ultimate truth is that there is no ultimate truth ...
      (microsoft.public.dotnet.languages.csharp)
    • How to get Java to read in XML file and parse it against DTD?
      ... When using Java to read in an XML file, ... the XML file to be parsed against the specified DTD. ... I have an existing Java application that allows users to modify values ...
      (comp.lang.java.programmer)
    • Re: Confused About Validation
      ... DTDs have to be included or referred from an XML file. ... setting the validation type to DTD. ... > saying that Doctype is not defined. ... then use it to load / validate the xml files? ...
      (microsoft.public.dotnet.xml)