Been awhile since I've looked at it and the box with all my code on it
popped a power supply yesterday, but I think that if you
setPrettyPrint(true) on the parent element before adding any children the
children will inherit the state.  I may have disabled that functionality in
the XmlElement, I don't remember off hand.  This is fixed in the ecs2
codebase that I haven't done any work on in awhile, but is checked into cvs.

-stephan

----- Original Message -----
From: "Chris Reeves" <[EMAIL PROTECTED]>
To: "ECS Users List" <[EMAIL PROTECTED]>
Sent: Saturday, January 26, 2002 1:48 PM
Subject: Re: So close yet so far: DOCTYPE


> > I have to setPrettyPrint() for every element I want pretty printed.  I
> > assumed setting a parent element to pretty print would affect all
children
> > as well, but it doesn't.  I figured I'll just attach the file since it's
> > pretty short.  The part you're interested in is right at the top (re:
> > writeXML()).
>
> I ran up against the setPrettyPrint issue recently. I too discovered that
I
> must setPrettyPrint for every element I generate.
>
> I suspect that I could extend the XML element class and do
> setPrettyPrint(true) as the default; has anyone seen this done?
>
> Thanks,
> Chris
>
>
> --
> 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