• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XML Schema or DTD?

 
stephen Kang
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
First, i have to say that i am new to xml. My recent project should provide the inteface between db systems and the well known accounting programm using middleware connection.
i noticed the accounting application provides DTD and they recommend follows their own DTD.
i succeeded to load the data from db in my interface application and generate the generic simple well formed xml syntax described by XML Schema.
In order to match DTD of the accounting programm, i should change the structure of generated XML Schema and data files while considering their DTD.
My question is
1. Which one between XML Schema and DTD is better in this specific case(accounting provides their own DTD and also accepts XML Schema as validaiding process)? i know in general XML Schema is much flexible but seems to figure out more.
2. In order to change the structure of the data to match the application, what API is suitable ?
XSL or DOM, it seems SAX doesn suitable.
My whole problem is i don understand much about XML and does not have time to study the general XML study right now.
I really appreciate for any tips.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic