Questions tagged [dtd-parsing]
51 questions
0
votes
1 answer
Use StAX to read DTD from one XML doc and write to another
So I am doing some data cleaning, on a series of XML documents using StAX. I want to essentially read in the document and spit out the exact same document with a few of tags missing. The problem I'm having is that I'm not outputting valid XML.
You…

Ben Zifkin
- 892
- 2
- 8
- 16
0
votes
1 answer
How can I validate intermediate text via a DTD?
My XML-DTD failed to validate this code:

CodeNoob
- 345
- 4
- 17
0
votes
2 answers
What is the use of DTD in XML?
I have write the following XML file with internal DTD.

Abinesh Lal
- 3
- 1
- 3
0
votes
1 answer
How to validate an XML using inline DTD using libxml2 (SAX parser)?
I am writing an XML parser in C++ using libxml library which requires me to validate the XML against a DTD which is specified inline. I don't want to use system() in my program. Otherwise I could have used the xmllint command.
I came across the…

gunner4evr
- 79
- 7
0
votes
3 answers
DTD XML Not Deterministic error
I was writing DTD for the XML given here. http://s3.amazonaws.com/spark-public/db/docs/courses-ID.xml
I could not figure out how to write the Department Element.
Here is my DTD code.

skjindal93
- 706
- 1
- 16
- 34
0
votes
1 answer
error in using DTDparser
I have written a code to parse a DTD file using DTDParser jar.the code is
public static void main(String[] arg)
{
BufferedReader buff=new BufferedReader(new FileReader("abc.dtd"));
DTDParser dtd=new DTDParser(bff);
DTD…

sai
- 1