Bingo!  Thanks a lot Robert! =)

Icing on the cake would be if I could get a carriage return before the root 
element (after the DTD), having already set everything to prettyPrint.  I 
can live with that because it's just an aesthetic issue, thankfully ;)

- r

At 02:50 PM 1/24/2002, robert burrell donkin wrote:
>hi rob
>
>i think that you can do what you need by using the other constructor eg.
>
>Doctype dtdRef = new Doctype("horizons", "SYSTEM", "etc/horizons.dtd", "")
>;
>
>i do agree that this is a bit confusing and pretty badly documented. it 
>might be a good idea to add a factory method.
>
>BTW this is from the latest version in cvs so if it so happens that that 
>constructor is missing in the version that you're using, check out and 
>build the latest source from cvs.
>
>- robert
>
>On Thursday, January 24, 2002, at 10:20 PM, Rob S. wrote:
>
>>Err, I should have explained the subject.  I wrote a pretty big SAX2 
>>parser a few days ago, and this is the only thing left before the writer 
>>will be finished =)
>>
>>- r
>>
>>At 02:12 PM 1/24/2002, Rob S. wrote:
>>>Hiya everyone,
>>>
>>>Upon using the following code:
>>>
>>>Doctype dtdRef = new Doctype("horizons", "SYSTEM", "etc/horizons.dtd");
>>>
>>>ECS outputs:
>>>
>>><!DOCTYPE horizons PUBLIC SYSTEM etc/horizons.dtd>
>>>
>>>If "SYSTEM" is supplied, shouldn't it replace "PUBLIC?"  From the XML spec:
>>>
>>>ExternalID ::= 'SYSTEM' S SystemLiteral | 'PUBLIC' S PubidLiteral S 
>>>SystemLiteral
>>>
>>>Seems like the mailing list archives are either down or unsearchable =/
>>>
>>>Thanks in advance! =)
>>>
>>>- r
>>>
>>>
>>>--
>>>To unsubscribe, e-mail:   <mailto:ecs-user->> 
>>>[EMAIL PROTECTED]>
>>>For additional commands, e-mail: <mailto:ecs-user->> 
>>>[EMAIL PROTECTED]>
>>
>>
>>--
>>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to