Validating a DOM against a DTD?

Discussion in 'Java' started by Stefan Ram, Jul 25, 2004.

  1. Stefan Ram

    Stefan Ram Guest

    An XML-document model can be built in-memory using Java and be
    associated with a DTD as given in the following article.

    http://www.cafeconleche.org/books/xmljava/chapters/ch10s03.html

    Can such a model be validated in-memory against that DTD?

    I would prefer it to check after every modification if the
    modification is valid. No validation at all seems to be done
    by the code of the above article. It also accepts element
    types not given in the DTD.

    (Something that might be related to DTD-validation is found in
    the package com.sun.org.apache.xerces.internal.impl.dtd
    [possibly as of Java 1.5 or earlier]. But I have no idea how
    to apply this to a DOM in memory.)
     
    Stefan Ram, Jul 25, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Patrick.O.Ige

    Validating ASP.NET against SQL Server

    Patrick.O.Ige, Jan 29, 2004, in forum: ASP .Net
    Replies:
    5
    Views:
    371
    Patrick.O.Ige
    Jan 30, 2004
  2. Nazghal
    Replies:
    0
    Views:
    329
    Nazghal
    Dec 9, 2003
  3. Ben Jessel
    Replies:
    0
    Views:
    404
    Ben Jessel
    Aug 5, 2004
  4. bugbear
    Replies:
    0
    Views:
    1,014
    bugbear
    Aug 28, 2003
  5. Nazghal
    Replies:
    0
    Views:
    397
    Nazghal
    Dec 9, 2003
Loading...

Share This Page