Hi, The markup in the document preceding the root element must be well-formed.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   nagendra_kumar
Posted On:   Monday, January 30, 2006 02:04 AM

The markup in the document preceding the root element must be well-formed.

when i parsed the .dtd file by using dom parser i am getting this fata error can any one help me .


My .dtd is

<!ELEMENT information (note)*>

<!ELEMENT note (to,from,heading,body)+>
<!ELEMENT to (#PCDATA)>
<!ELEMENT from (#PCDATA)>
<!ELEMENT heading (#PCDATA)>
<!ELEMENT body (#PCDATA)>
any ideas are welcome.
thanks in advance.

Re: Hi, The markup in the document preceding the root element must be well-formed.

Posted By:   Christopher_Koenigsberg  
Posted On:   Saturday, February 4, 2006 06:46 PM

Are you trying to parse the content of your .dtd file, using an xml parser, reading it as if it were a valid xml document? I don't think that is going to work (?).
About | Sitemap | Contact