• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DTD in XML

 
Mi Na Mi
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I have 2 xml files with dtd defined right inside the xml files. I merge those two files, but the output xml file is completely missed. Is any way to read a definition of dtd inside the xml??
Thank you.

 
Paul Clapham
Sheriff
Posts: 21000
31
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The parser will take care of reading the DTD, it's not up to you. I don't understand what this "output file" is and what it means for it to be "completely missed", though. Perhaps you could explain in a bit more detail?
 
Mi Na Mi
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I merge two xml files, and both of them have dtd declaration, but merged file does not contain a dtd
 
Paul Clapham
Sheriff
Posts: 21000
31
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's because you didn't put one there. You didn't say how you merged the two files, but there's no reason why the merged result should have any DTD at all and no reason why a DTD for the merged result should have any relationship with the DTDs for the input files. So if you want the result to have a DTD, it's up to you to make that happen.
 
Mi Na Mi
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic