Is there any error in my dtd file???

i'm a learner to xml data binding.
my dtd file is :
<!ELEMENT movies (movie+)>
<!ATTLIST movies
version CDATA #REQUIRED
>
<!ELEMENT movie (title, cast, director?, producer*)>
<!ELEMENT cast (actor+)>
<!ELEMENT title (#PCDATA)>
<!ELEMENT director (#PCDATA)>
<!ELEMENT producer (#PCDATA)>
<!ELEMENT actor (#PCDATA)>
<!ATTLIST actor
headliner (true | false) 'false'
>
when i use jaxb parser to parse this dtd file,there is an error:
parsing a schema...
[ERROR] The markup in the document preceding the root element must be well-forme
d.
line 1 of movies.dtd
Failed to parse a schema.
my jaxb parser is in the jwsdp-1.5, what cause is this problem???

my example is copyed from the source of the book "java and xml databinding"
in my opinion, because the dtd file has something wrong, so the parsing action can't go on.
and my binding pattern is :
<?xml version="1.0"?>
<xml-java-binding-schema version="1.0-ea">
<options package="javajaxb.generated.movies" />
<element name="movies" type="class" root="true"/>
</xml-java-binding-schema>
please tell me what's wrong? thank you^_^

Similar Messages

  • Is there any error in this jsp file...??

    aftr database connection query is not running....
    <%@page import="java.sql.*"%>
    <%@page import="java.io.*"%>
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JSP Page</title>
    </head>
    <body bgcolor="#CEA69F">
    <%
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection conn=DriverManager.getConnection("jdbc:odbc:signupdsn");
    Statement stmt=conn.createStatement();
    out.write("<face='Jokerman'>\nYou are successfully Connected to database, ");
         String dom=request.getParameter("dofm");
         int age2=Integer.parseInt(request.getParameter("age2"));
         String dob2=request.getParameter("dob2");
         int age1=Integer.parseInt(request.getParameter("age1"));
         String dob1=request.getParameter("dob1");
         int w_fage=Integer.parseInt(request.getParameter("w_fage"));
         int w_mage=Integer.parseInt(request.getParameter("w_mage"));
         int h_fage=Integer.parseInt(request.getParameter("h_fage"));
         int h_mage=Integer.parseInt(request.getParameter("h_mage"));
         int w1age=Integer.parseInt(request.getParameter("w1age"));
         int w2age=Integer.parseInt(request.getParameter("w2age"));
         String husname=request.getParameter("hname");
         String reli2=request.getParameter("rel2");
         String mar_s2=request.getParameter("st2");
         String occ2=request.getParameter("occ2");
         String readd2=request.getParameter("add2");
         String id2=request.getParameter("id2");
         String h_fname=request.getParameter("h_fname");
         String h_fadd=request.getParameter("h_fadd");
         String h_mname=request.getParameter("h_mname");
         String h_madd=request.getParameter("h_madd");
         String wname=request.getParameter("wname");
         String mar_s1=request.getParameter("st1");
         String occ1=request.getParameter("occ1");
         String readd1=request.getParameter("add1");
         String id1=request.getParameter("id1");
         String w_fname=request.getParameter("w_fname");
         String w_fadd=request.getParameter("w_fadd");
         String w_mname=request.getParameter("w_mname");
         String w_madd=request.getParameter("w_madd");
         String priestn=request.getParameter("priestn");
         String priestadd=request.getParameter("priestadd");
         String strname=request.getParameter("street");
         String vill=request.getParameter("village");
         String dis=request.getParameter("district");
         String w1name=request.getParameter("w1name");
         String w1add=request.getParameter("w1add");
         String w2name=request.getParameter("w2name");
         String w2add=request.getParameter("w2add");
         String reli1=request.getParameter("rel1");
    stmt.executeUpdate("insert into marraige(hname,rel2,dob1,dob2,dofm,st2,occ2,add2,id2,h_fname,h_fadd,h_mname,h_madd,wname,rel1,st1,occ1,add1,id1,w_fname,w_fadd,w_mname,w_madd,priestn,priestadd,street,village,district,w1name,w1add,w2name,w2add,age2,age1,w_fage,w_mage,h_fage,h_mage,w1age,w2age) values('"+husname+"','"+reli2+"','"+dob1+"','"+dob2+"','"+dom+"','"+mar_s2+"','"+occ2+"','"+readd2+"','"+id2+"','"+h_fname+"','"+h_fadd+"','"+h_mname+"','"+h_madd+"','"+wname+"','"+reli1+"','"+mar_s1+"','"+occ1+"','"+readd1+"','"+id1+"','"+w_fname+"','"+w_fadd+"','"+w_mname+"','"+w_madd+"','"+priestn+"','"+priestadd+"','"+strname+"','"+vill+"','"+dis+"','"+w1name+"','"+w1add+"','"+w2name+"','"+w2add+"','"+age2+"','"+age1+"','"+w_fage+"','"+w_mage+"','"+h_fage+"','"+h_mage+"','"+w1age+"','"+w2age+"')");
    out.write("\n Data Inserted");
    out.write("<center> <br>please click here to continue<a href='loginh.jsp'>login</a>");
    catch(Exception e)
    System.out.print(e);
    %>
    Edited by: 999775 on Apr 12, 2013 8:44 AM

    sir,i hd also tried dis...bt still nt wrking...
    <%@page import="java.sql.*"%>
    <%@page import="java.io.*"%>
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <%
    String dom=request.getParameter("dofm");
         int ageh=Integer.parseInt(request.getParameter("age2"));
         String dobh=request.getParameter("dob2");
         int agew=Integer.parseInt(request.getParameter("age1"));
         String dobw=request.getParameter("dob1");
         int w_fagew=Integer.parseInt(request.getParameter("w_fage"));
         int w_magew=Integer.parseInt(request.getParameter("w_mage"));
         int h_fageh=Integer.parseInt(request.getParameter("h_fage"));
         int h_mageh=Integer.parseInt(request.getParameter("h_mage"));
         int w1agew=Integer.parseInt(request.getParameter("w1age"));
         int w2agew=Integer.parseInt(request.getParameter("w2age"));
         String husname=request.getParameter("hname");
         String relih=request.getParameter("rel2");
         String mar_s2=request.getParameter("st2");
         String occ2h=request.getParameter("occ2");
         String readd2=request.getParameter("add2");
         String idh=request.getParameter("id2");
         String h_fnameh=request.getParameter("h_fname");
         String h_faddh=request.getParameter("h_fadd");
         String h_mnameh=request.getParameter("h_mname");
         String h_maddh=request.getParameter("h_madd");
         String wnamew=request.getParameter("wname");
         String mar_s1=request.getParameter("st1");
         String occ1w=request.getParameter("occ1");
         String readd1=request.getParameter("add1");
         String idw=request.getParameter("id1");
         String w_fnamew=request.getParameter("w_fname");
         String w_faddw=request.getParameter("w_fadd");
         String w_mnamew=request.getParameter("w_mname");
         String w_maddw=request.getParameter("w_madd");
         String priestnm=request.getParameter("priestn");
         String priestad=request.getParameter("priestadd");
         String strname=request.getParameter("street");
         String vill=request.getParameter("village");
         String dis=request.getParameter("district");
         String w1namew=request.getParameter("w1name");
         String w1addw=request.getParameter("w1add");
         String w2namew=request.getParameter("w2name");
         String w2addw=request.getParameter("w2add");
         String reli1=request.getParameter("rel1");
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection conn=DriverManager.getConnection("jdbc:odbc:signupdsn");
    out.write("\nConnected to database");
    PreparedStatement ps=conn.prepareStatement("insert into marraige values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)");
         ps.setString(1,husname);
         ps.setString(2,relih);
         ps.setInt(3,ageh);
         ps.setString(4,dobh);
         ps.setString(5,mar_s2);
         ps.setString(6,occ2h);
         ps.setString(7,readd2);
         ps.setString(8,idh);
         ps.setString(9,h_fnameh);
         ps.setInt(10,h_fageh);
         ps.setString(11,h_faddh);
         ps.setString(12,h_mnameh);
         ps.setInt(13,h_mageh);
         ps.setString(14,h_maddh);
         ps.setString(15,wnamew);
         ps.setString(16,reli1);
         ps.setInt(17,agew);
         ps.setString(18,dobw);
         ps.setString(19,mar_s1);
         ps.setString(20,occ1w);
         ps.setString(21,readd1);
         ps.setString(22,idw);
         ps.setString(23,w_fnamew);
         ps.setInt(24,w_fagew);
         ps.setString(25,w_faddw);
         ps.setString(26,w_mnamew);
         ps.setInt(27,w_magew);
         ps.setString(28,w_maddw);
         ps.setString(29,priestnm);
         ps.setString(30,priestad);
         ps.setString(31,strname);
         ps.setString(32,vill);
         ps.setString(33,dis);
         ps.setString(34,dom);
         ps.setString(35,w1namew);
         ps.setInt(36,w1agew);
         ps.setString(37,w1addw);
         ps.setString(38,w2namew);
         ps.setInt(39,w2agew);
         ps.setString(40,w2addw);
              int x=0;
              x=ps.executeUpdate();
              if(x>0)
                   response.sendRedirect("./success.jsp");
              else
                   response.sendRedirect("./fail.jsp");
              ps.close();
              conn.close();
              catch(ClassNotFoundException e)
              out.println("CNF Error");
    %>

  • HT4407 Is there any way to download these files manually from another source? The download from boot camp keeps stopping at around 25% and then produces the error "Can't download Windows Support Software because of a network problem". Thx!

    Is there any way to download these files manually from another source? The download from boot camp keeps stopping at around 25% and then produces the error "Can't download Windows Support Software because of a network problem". Thx!

    No. This issue is dicussed here frequently. The only option is to be patient and try often. Search this forum for other posts about this issue.

  • Is there any way to get the files from other computer ?

    Hai all,
    I have 2 computers connected. I know the IP address of other computer. Is there any way to get the files from other computer. (for e.g. I want to get the files from specific folder. In Java netwroking is it possible? (Any programs)
    regards,
    Namanc

    Bro Take it easy.
    Think you need to send a Image file named ("abc.gif")
    now develop a server using ServerSocket and connect it in local IP and any PORT
    For example i think ur server is connected in "localhost" and 9000 port.
    Now make ur server educated using some commands.
    For example:
    FileName: <File Name String>
    [Means new file is sending by connected client]
    FileSize: <File size long or int value>
    [ So that ur server can determind about the total length of sender file]
    DataModeOpen
    [Now your client will send its image data, this command means your client software is sending data]
    fjadlkfjaofaijojfwoeiurfodkjflsajlfksa
    l23j4lj23lkjlasjfoq23j4rokjelfkjasldkf
    2o3j4lk2j3ljslakdjf2l3j4 l23kjlk23k4j
    DataModeClose
    [Means file sending finished]
    Close
    [Means your client connection is closed]
    Now develop a client supporting this command.
    For example(Server):
    String getFileName=null;
    long getFileSize=0;
    public handleCommand(String getCmd) {
        if(getCmd.startsWith("FileName")) {
                String[] splitData=getCmd.split(":");
                this.getFileName=   splitData[1];
                outPutStream.writeBytes("+OK");
        } else if(getCmd.startsWith("FileSize")) {
                String[] splitData=getCmd.split(":");
                this.getFileSize=Long.parseLong(splitData[1]);
                outPutStream.writeBytes("+OK");
        } else if(getCmd.startsWith("DataModeOpen")) {
               //data mode open so receive data
              receiveData();
              outPutStream.writeBytes("+OK");
        } else if(getCmd.startsWith("DataModeClose")) {
              //close client socket
             getClientSocket.close();
    }For client:
    DataInputStream dataIn=null;
    BufferedOutputStream bout=null;
    public sendFile(bytes[] getBytes) {
            //if ok found then do other or show error message
        if(sendCmd("FileName:"+getFileName)) {
            if(sendCmd("FileSize:"+getFileSize)) {
                if(sendCmd("DataModeOpen")) {
                   bout.write(getBytes);
                } else {
                   showError(3);
            } else {
                   showError(2);
       } else {
            showError(1);
    }i think it will help u

  • Is there any error guide available for BI Schedular??

    is there any error guide available for BI Schedular??
    I have scheduled a iBOT. in the instance tables it is showing the details of the instances howeverit is not showing any cache in caching. also there are some error logged in the error table.
    how to get the info what is causing the error and what error it is?

    hi abhi,
    Did u checked the log file after scheduling the ibot
    \OracleBI\server\Log\iBots
    we will get Scheduler conf guide and NQSERROR code guide
    thanks,
    saichand

  • Is there any way to create a file compatible with Premiere Pro

    Is there any way to create a file in Premiere elements that is compatible with Premiere Pro and that can be used in Premiere Pro

    Consternation
    The important information that I do not see mentioned nor offered by you.
    1.What version of Premiere Elements are you using and on what computer operating system it is running? What version of Premiere Pro do you want to use?
    The Premiere Pro Import Supported Formats seem to indicate that it will accept the Premiere Elements project.prel (project file) on Windows Only.
    Adobe Premiere Pro Help | Supported file formats
    This may or may not be possible depending on damaged projects or outdated elements.
    2. If you want to export your Premiere Elements Timeline to a file saved to the computer hard drive and subsequently import that into your Premiere Pro version, that "should" work. You would go to the Premiere Elements Publish+Share/Computer/ and make a selection based on what the Premiere Pro Import Supported file formats are and what you need. I can help you with that. But, details first.
    But, just a "beware"...when you get to Premiere Elements 11 or 12 (if that is the version involved) Publish+Share/Computer/ there are several categories, but all you see is Adobe Flash Video, MPEG, and AVCHD. The rest of the list that includes AVI and QuickTime which both need to be scrolled to all of the time to see them, not just sometimes, with the thin scroll bar to the right of the list of choices. You can export files
    with AVI file extension, under Publish+Share/Computer/AVI
    with MOV file extension, under Publish + Share/Computer/QuickTime
    And, if you do not have QuickTime installed on your computer with Premiere Elements, you are not going to have presets for the QuickTime export.
    Remember, there is more to an export than just its file extension. Know your other export properties as well.
    In many cases, you can customize the export settings to suit your requirements.
    Problems will exist if you are trying to go from Premiere Elements Windows to Premiere Pro Mac or vice versa.
    I would be glad for the opportunity to help you with this issue, but details are needed.
    Looking forward to your follow up.
    Thanks.
    ATR

  • Using pages, I saved the wrong file thereby overwriting the file I want.  Is there any way to get the file I want back?

    Is there any way to recover a file if you have overwritten it?

    When I do that: Pages>Revert to > I don't get a chance to "Browse all Versions"  Instead it says, "no Document"

  • SCF /SCANNOW - is there any option to exclude some files for the scan?

    Hi,
    please let me know is there any option to exclude some files in SCF /SCANNOW command?
    Appreciate your help!
    Regards,
    Prabu

    Prabu,
    Did your question answered? How is the current situation? Have you tried to replace that file manually successfully?
    Please give us a reply in order to know if you need further help. 
    Karen Hu
    TechNet Community Support

  • Is there any option to recover a file we saved with the same name that other by mistake in a MAC PC

    is there any option to recover a file we saved with the same name that other by mistake in a MAC PC

    There's a slim chance. +*Stop using the drive IMMEDIATELY.+*
    Then see: [Data Recovery|http://web.me.com/pondini/AppleTips/Recover.html].

  • Is there any way to use a file transfer protocol to upload files to icloud?

    Is there any way to use a file transfer protocol to upload files to icloud?

    Unfortunately, no.
    You will need a 3rd party web host to upload your websites to. Depending on the version of iWeb you are using you have a couple of publishing options:
    iWeb ’09 (3.0.4) you can publish to an FTP Server or a local folder. ( With the built in FTP in iWeb you will end up with an address like “www.YourDomain.com/sitename/Home.html )
    iWeb ’08 you can publish your website to a local folder
    Basically all Web Hosting companies are iWeb-compatible.
    If you’re looking for a good hosting I would recommend IX Web Hosting I have been using them to host my own websites for several years now and that their customer support is awesome too.
    http://jeffnitschke.com/IXWebHosting.html
    http://jeffnitschke.com/wordpress/2012/06/how-do-i-move-my-mobileme-site-ix-web- hosting-blog/
    "I may receive some form of compensation from my recommendation or link."

  • Is there any way to play all files in a directory by one url?

    Hi all,
    I am testing fms this days, I have put all my files(such as 1.mp3,2.mp3...n.mp3) in my directory.
    I can play single file fine with url like this:
    rtmp://localhost/mp3/mp3:x/2
    but i want to know is there any way to play all files in my direcotry?
    for example, user click the play button, the player(smp) automatic plays all files in the directory, link windows media server.
    Should I use playlist? Or there is another better way?
    Thanks a lot.

    Hi,
    FMS do not directly take a directory to play files, the file names have to be fetched some way (through script if needed) to make a playlist and then the play command needs to be repeated as many times.
    Thank you !

  • Is there any way to upload iWeb files updates only with a 3rd party ftp program to a new hoster, e.g. Godaddy? I see no posts newer than 2007

    Is there any way to upload iWeb files updates only with a 3rd party ftp program to a new hoster, e.g. Godaddy? I see no posts newer than 2007.

    If you are using iWeb V 3, there are two other options for publishing the site...
    http://www.iwebformusicians.com/iWeb/Publish-Website.html
    Some pointers for choosing hosting...
    http://www.iwebformusicians.com/iWeb/Website-Hosting.html

  • Is there any way to delete duplicate files en mas within the new itunes program?

    I've just installed the new itunes program on my laptop. I used the scan for media option to find music. Problem is almost every entry and there's several hundred of them is duplicated and in some cases triplicated within the itunes media library.
    Question ... Is there any way to delete duplicated files en mas withing the itunes library folder?
    Please don't tell me that I'm going to have to do it individually as that may take days.
    Thanks

    Apple's official advice on duplicates is here... HT2905: How to find and remove duplicate items in your iTunes library. It is a manual process and the article fails to explain some of the potential pitfalls such as lost ratings and playlist membership.
    Use Shift > View > Show Exact Duplicate Items to display duplicates as this is normally a more useful selection. You need to manually select all but one of each group to remove. Sorting the list by Date Added may make it easier to select the appropriate tracks, however this works best when performed immediately after the dupes have been created.  If you have multiple entries in iTunes connected to the same file on the hard drive then don't send to the recycle bin.
    Use my DeDuper script if you're not sure, don't want to do it by hand, or want to preserve ratings, play counts and playlist membership. See this thread for background, this post for detailed instructions, and please take note of the warning
    to backup your library before deduping.
    (If you don't see the menu bar press ALT to show it temporarily or CTRL+B to keep it displayed.)
    The most recent version of the script can tidy dead links as long as there is at least one live duplicate to merge stats and playlist membership to and should cope sensibly when the same file has been added via multiple paths.
    tt2

  • Is there any way to block PDF files sharing from iPad to any another device or cloud? We need to have certain PDFs visible and readable only from iPad.

    Is there any way to block PDF files sharing from iPad to any another device or cloud? We need to have certain PDFs visible and readable only from iPad.

    There are "container" apps emerging for the iPad.  Enough searching & I suspect there would be one for your needs. 
    All in one Application that emphasize security
    Good Collaboration Suite  Secure mobile app-to-app collaboration.
    The Good Collaboration Suite includes Good for Enterprise, Good Share and Good Connect secure mobile apps, simplifying access to email, calendar, contacts, tasks, instant messaging, browsing and document sharing. These apps are built using Good’s next-gen containerization   that includes secure data sharing between any Good secured app as well as app-level encryption independent of the device used."
    http://www1.good.com/applications/

  • Is there any way to recover lost files and folder? I shared my desktop and suddenly I lost every single file in it.

    Is there any way to recover lost files and folder? I shared my desktop and suddenly I lost every single file in it. I have a MacBook Air.
    Processor  1.8 GHz Intel Core i5.
    Memory  4 GB 1600 MHz DDR3

    From your backup

Maybe you are looking for

  • Clone Database Using Enterprise Manager

    Hi all, Can some on provide me link regarding a clone db using EM tools when i am trying do that i am getting error as OS credentials fail though i gave valid username and password (OS user) Thanks Much, Napi

  • Ni 5640R drivers

    Hi Sir, I am vasu.I have started working on your  NI-5640R(version 1.1) LabVIEW card with LabVIEW 8.2. i have some doubts on this card. i seen in C:\Program Files\National Instruments\LabVIEW 8.2\examples\instr\ni5640R\Driver four VIs. how can use th

  • Iphone 5 plays wrong alert tone for facebook notifications.

    It continues to play the "tri-tone" alert sounds, even after I've changed it under Settings<Sounds<Facebook Post.  How do I fix this?

  • Where is Katrina??

    There is a young lady named Katrina on here that has the answers to everything but she hasnt helped me yet.... Katrina where are you??? I need you so very badly this itunes problem is driving me insane....PLEASE HELP ME!! YOUR ALL I HAVE AT THIS POIN

  • Screen flicker on 2011 21.5 iMac after SSD install. V-sync cable?

    I've had my 2011 21.5 iMac for going on a year now; I decided to spruce things up by installing an SSD. I followed this very helpful video tutorial and all seemed well, but shortly after booting up I noticed a slight occasional flicker of the screen.