• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to develope XML using JBuilder?

 
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When I compile some XML format file in JBuilder 6, the compiler told me that JBuilder cannot find the dtd file. of course the dtd file cannot be found, my computer cannot directly connect to the internet. So, i downloaded the dtd file from internet, then placed it under the WEB-INF directory, and modified the XML file, but it seems cannot work.
If somebody has encountered this kind of problem and already got the solution, please help me, thanks!
 
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If the DTD is not a part of the XML file, then the DOCTYPE should include the location of the file. In your case, since the DTD resides on the local machine, you should give the complete file path to the DTD. You may also copy the DTD file to the same directory as the XML file and simply specify the DTD file name(without the complete path) in the DOCTYPE.
Also make sure the standalone="yes" is NOT SET in the <?xml declaration.
Hope that helps.
 
Sean Li
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm sorry, it seems cannot work.
My code is:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD Jsp Tag Library 1.2//EN"
"D:\source\CallCenter\WEB-INF\web-jsptaglibrary.dtd">
......
when compile by JB6, the error message appears again:
"SimplePrimeExample.jsp": org.apache.jasper.JasperException: Parse Error in the tag library descriptor: Relative URI "D:\source\CallCenter\WEB-INF\web-jsptaglibrary.dtd"; can not be resolved without a document URI.
And i tried putting the dtd file in the same location with the xml file, the result is the same.
Please help me to resolve this question. Thanks!
 
Sean Li
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It seems nobody can help me. what a pity.
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try the following -
  • Remove the PUBLIC "-//Sun Microsystems, Inc.//DTD Jsp Tag Library 1.2//EN from DOCTYPE declaration
  • Prefix the file path with "file://".

  • It is very clear from the error message that the parser is unable to locate the DTD file. If nothing works, you might want to try copying the DTD to the same directory as the XML.
     
    Whatever. Here's a tiny ad:
    a bit of art, as a gift, that will fit in a stocking
    https://gardener-gift.com
    reply
      Bookmark Topic Watch Topic
    • New Topic