File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes DTD not well formed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "DTD not well formed" Watch "DTD not well formed" New topic
Author

DTD not well formed

Veena Pointi
Ranch Hand

Joined: Jun 20, 2002
Posts: 442
<?xml version="1.0" encoding="UTF-8"?>
<!--DTD generated by XMLSPY v2004 rel. 4 U (http://www.xmlspy.com)-->
<!ELEMENT TABLES (TABLE*)>
<!ELEMENT TABLE (COLUMN)>
<!ATTLIST TABLE
name ID #REQUIRED
>

<!ELEMENT COLUMN(#PCDATA)>
<!ATTLIST COLUMN
ID ID #REQUIRED
>

In the above code I get the following error
The file is not well formed.Whitespace(blank,tab,CR,LF)expected

I am unable to locate problem.What might be causing this error?

Thanks in advance

Veena
[ October 22, 2004: Message edited by: Veena Point ]

SCJP1.4
"Continuous effort - not strength or intelligence - is the key to unlocking our potential."
*Winston Churchill
Udayan Patel
Ranch Hand

Joined: Oct 14, 2004
Posts: 94
Originally posted by Veena Point:
<?xml version="1.0" encoding="UTF-8"?>
<!--DTD generated by XMLSPY v2004 rel. 4 U (http://www.xmlspy.com)-->
<!ELEMENT TABLES (TABLE*)>
<!ELEMENT TABLE (COLUMN)>
<!ATTLIST TABLE
name ID #REQUIRED
>

<!ELEMENT COLUMN(#PCDATA)>
<!ATTLIST COLUMN
ID ID #REQUIRED
>

In the above code I get the following error
The file is not well formed.Whitespace(blank,tab,CR,LF)expected

I am unable to located problem.What might be the problem?

Thanks in advance

Veena


need a space as follow ELEMENT COLUMN (#PCDATA)
Veena Pointi
Ranch Hand

Joined: Jun 20, 2002
Posts: 442
Thanks a lot.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DTD not well formed
 
Similar Threads
Recreate XML file
XML for Assignment Log
Hibernate : generated attribute of the property element
ID and IDREF attributes in XML
unable to read value from XML file