[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jedit-users
Subject:    Re: [ jEdit-users ] Creating/Editing DTD files
From:       Giulio Piancastelli <gpian () softhome ! net>
Date:       2002-11-30 22:11:43
[Download RAW message or body]

At 02.14 26/11/2002 -0800, you wrote:

>I'm creating some XML files for which I am writing a custom DTD file
>for validation.  jEdit defaults to SGML mode when editing these files,
>but throws up a bunch of errors when the DTD is parsed since there is
>not root element.
>
><?xml version="1.0" encoding="UTF-8" ?>
><!ELEMENT blah .... >
><!ATTLIST blah .... >
>
><!ELEMENT bleh .... >
><!ATTLIST bleh .... >
>
>That's essentially the structure of the DTD.  Is there a way to change
>jEdit's behavior so that it doesn't complain about the lack of a root
>element?  Will this be addressed by a separate DTD mode or modification
>of the SGML mode in the future?  Am I just doing it wrong? ;)

As far as I know, DTD is *not* XML...
Try to delete the first line (the XML declaration) in your DTD file. Or 
better, try to use XML Schema instead of DTD.

Regards,
Giulio Piancastelli.



-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
-- 
-----------------------------------------------
jEdit Users' List
jEdit-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jedit-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic