[jdom-interest] Bug Outputting Elements that have text and elements as children

Michael Skells mskells at aspirebanking.com
Wed Nov 22 00:24:38 PST 2000


> -----Original Message-----
> From: Jason Hunter [mailto:jhunter at collab.net]
> Sent: 19 November 2000 21:21
> To: Rick Nucci
> Cc: jdom-interest at jdom.org
> Subject: Re: [jdom-interest] Bug Outputting Elements that 
> have text and
> elements as children
> 
> 
> > I am using the B5 build.  Currently XMLOutputter outputs an Element
> > that has text and elements as children, like this:
> > 
> > 
> > 
> > Shouldn't it be like this:
> > 
> > <Root>
> >      <Element>Some Content
> >           <Child>Some More Content</Child>
> >      </Element>
> > </Root>
> 
> Whitespace is preserved very literally, per the XML 1.0 spec.  I don't
> like it a whole lot either.
> 

if that were the case wouldnt you have 
<Root>
     <Element>Some Content<Child>Some More Content</Child>
     </Element>
</Root>
or 
<Root>
     <Element>
Some Content<Child>Some More Content</Child>
     </Element>
</Root>
the point is that thihs is no whitespace in the JDOM representation, it
is inserted by the XMLOutputter 
> -jh-
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/yo
uraddr at yourhost.com



More information about the jdom-interest mailing list