[jdom-interest] XMLOutputter in nonewline mode
Alex Chaffee
guru at edamame.stinky.com
Mon Oct 2 08:35:25 PDT 2000
Ooooh, BNF! I like it. I'll make the change to the next rev of
XMLOutputter unless I hear otherwise.
James, if you want to do it on your own file, the fix is trivial; just
change that line I mentioned before to
maybePrintln(out);
- A
> http://www.w3.org/TR/REC-xml#sec-prolog-dtd
>
> [22] prolog ::= XMLDecl? Misc* (doctypedecl Misc*)?
> [23] XMLDecl ::= '<?xml' VersionInfo EncodingDecl? SDDecl? S? '?>'
> [24] VersionInfo ::= S 'version' Eq (' VersionNum ' | " VersionNum ")
> [25] Eq ::= S? '=' S?
> [26] VersionNum ::= ([a-zA-Z0-9_.:] | '-')+
> [27] Misc ::= Comment | PI | S
>
> Important part is that XMLDecl ends with '?>' and has no need for
> whitespace afterwards, and the prolog defines the whitespace as optional
> (Misc* with class "S" as whitespace)
>
> [1] document ::= prolog element Misc*
>
> This shows that from the document standpoint, no whitespace needs to
> follow the prolog.
More information about the jdom-interest
mailing list