my dog learned polymorphism*
The moose likes XML and Related Technologies and the fly likes DTD Validation Using an Editor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "DTD Validation Using an Editor" Watch "DTD Validation Using an Editor" New topic
Author

DTD Validation Using an Editor

Mark Reyes
Ranch Hand

Joined: Jul 09, 2007
Posts: 426
Hi All,

XML newbie here. I am trying to learn XML thru w3schools and I am at the DTD section.

My problem is, I have gone thru the topic and I think I understand some of it but just wanted to make sure if I understand it correctly.

Do you know any free XML editor that can validate the DTD that I am making be it internal or external DTD. As of the moment, I am using Firefox and IE to check the
if my xml files are well formed but I think it does'nt check the validity using my DTD.

I have gone thru the XML FAQ and found out validation using Xerces and JAXP but my problem is, I havent gone that far in my reading so I cant really understand how this one works.

Any idea how can I enhance my learning? I am sure that other XML related technology such as XSL and XSD needs some tool for validation also.


Thanks.


Sean Clark ---> I love this place!!!
Me ------> I definitely love this place!!!
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9921
    
158

Do you know any free XML editor that can validate the DTD that I am making be it internal or external DTD.

If I understand your question correctly, you want a free editor which validates your XML against a schema. Is that correct? If so, check the "Software" section (XML Hammer for example) in our XML FAQ

[My Blog] [JavaRanch Journal]
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9921
    
158

By the way, if you are already using an IDE like Eclipse, then you can configure it to validate your XML.
Mark Reyes
Ranch Hand

Joined: Jul 09, 2007
Posts: 426
Hi Jaikiran,

Thanks. I think I overlooked this FAQ.

I check out the link and found the following features at this link

  • Check a XML document for well-formedness
    Validate a XML document against a XML Schema (XSD)
    Search a directory using XPath
    Validate a XML Schema Document
    Transform a XML Document using XSLT
    Format XML Documents (Pretty-Print)
    Merge a XML Document using XInclude
    Validate a XML Stylesheet


  • My internet connection is slow at this time so I cant seem to download. I have read thru this but it seems that there's no validation for DTD only XSD which as of the moment I dont have idea yet.

    Any thoughts?

    Paul Clapham
    Bartender

    Joined: Oct 14, 2005
    Posts: 18541
        
        8

    Mark Reyes wrote:XML newbie here. I am trying to learn XML thru w3schools and I am at the DTD section.

    My problem is, I have gone thru the topic and I think I understand some of it but just wanted to make sure if I understand it correctly.

    Do you know any free XML editor that can validate the DTD that I am making be it internal or external DTD. As of the moment, I am using Firefox and IE to check the
    if my xml files are well formed but I think it does'nt check the validity using my DTD.

    Which is rather odd because the DTD tutorial on that site says
    With Internet Explorer you can validate your XML against a DTD.

    And it goes on to post some Javascript which does that.
    Mark Reyes
    Ranch Hand

    Joined: Jul 09, 2007
    Posts: 426
    Which is rather odd because the DTD tutorial on that site says

    With Internet Explorer you can validate your XML against a DTD.


    And it goes on to post some Javascript which does that.


    Hi Paul, Thanks! It was at the later part and I got bored just reading through without doing any exercise..

    I wish Head First series has something about XML too and its related technologies....I have two books (Java and Servlets/JSP) and I think its cool. Hope Bert and Kathy reads this..
    Mahendr Shinde
    Ranch Hand

    Joined: Sep 03, 2011
    Posts: 38

    Hi Mark Reyes
    You can use any free tool for xml, i have made one myself and available here download

    This one is based on Java API for XML and jsyntaxpane for syntax highlighting.

    don't worry, you don't have to pay anything!!


    There is still lot to learn!
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: DTD Validation Using an Editor
     
    Similar Threads
    DTD reference and validation
    XML Validation using the java API
    DTD and Validation
    beginner DTD question
    validation for fck:editor