Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Validating a DOM against a DTD?

Thread Tools

Validating a DOM against a DTD?

Stefan Ram
Posts: n/a
An XML-document model can be built in-memory using Java and be
associated with a DTD as given in the following article.

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
[possibly as of Java 1.5 or earlier]. But I have no idea how
to apply this to a DOM in memory.)

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Validating XML file against an XSD schema in an ASP.NET page simon ames ASP .Net 1 04-11-2004 09:01 AM
Validating ASP.NET against SQL Server Patrick.O.Ige ASP .Net 5 01-30-2004 12:27 AM
Validating against XSD given only a DOM Node Nazghal XML 0 12-09-2003 04:16 AM
Validating against XSD given only a DOM Node Nazghal Java 0 12-09-2003 04:16 AM
parsing XML to DOM, validating against a local DTD, using Xerces under JAXP? bugbear XML 0 08-28-2003 09:22 AM