File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DTD Validation Using an Editor

 
Mark Reyes
Ranch Hand
Posts: 426
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 426
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
    Sheriff
    Pie
    Posts: 20169
    24
    MySQL Database
    • 0
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 426
    • 0
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 38
    Eclipse IDE Java Tomcat Server
    • 0
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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!!
     
    It is sorta covered in the JavaRanch Style Guide.
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic