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.
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?
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.