Search the web
Sign In
New User? Sign Up
tagsoup-friends · Friends of TagSoup
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Patch for XMLWriter and newlines in TagSoup 1.2   Message List  
Reply | Forward Message #1274 of 1386 |
RE: [tagsoup-friends] Patch for XMLWriter and newlines in TagSoup 1.2

Thanks! And to correct another typo for the record, I'm sending
fragments, not fragmenents, which I guess is a back-formation from
documenents.
Leigh.

-----Original Message-----
From: tagsoup-friends@yahoogroups.com
[mailto:tagsoup-friends@yahoogroups.com] On Behalf Of John Cowan
Sent: Thursday, March 12, 2009 3:34 PM
To: tagsoup-friends@yahoogroups.com
Subject: Re: [tagsoup-friends] Patch for XMLWriter and newlines in
TagSoup 1.2

Klotz, Leigh scripsit:

> In tests, I'm seeing not just a newline, but a blank line after the
> document. Is that what you see? Your quoted simple output looks like

> it might have a blank line after it.

Yes, you're right. I've never paid attention to this before.

> * Problem 2:
> I've violated an assumption of XMLWriter; I'm sending it fragmenents,
> not a document or even a single element. The result is a newline
> after each "toplevel" element.

Aha.

> Given that endDocument() outputs the final newline in the document, I
> really don't see what benefit line 632 has at all. I believe that
> simply removing line 632 will let XMLWriter handle fragments without
> introducing extra whitespace, and will still leave the resulting
> serialization newline (though not blank line) terminated.

I agree: line 632 should just be flushed.

--
Clear? Huh! Why a four-year-old child John Cowan
could understand this report. Run out cowan@...
and find me a four-year-old child. I
http://www.ccil.org/~cowan
can't make head or tail out of it.
--Rufus T. Firefly on government reports




Thu Mar 12, 2009 10:37 pm

leighklotz
Offline Offline
Send Email Send Email

Forward
Message #1274 of 1386 |
Expand Messages Author Sort by Date

The documentation for XMLWriter says * <p>According to the XML Recommendation, <em>all</em> whitespace * in an XML document is potentially significant to an...
Klotz, Leigh
leighklotz
Offline Send Email
Mar 11, 2009
6:24 pm

... If you look at the Infoset, you'll see that whitespace outside the root element is generally considered nonsignificant, despite the letter of the XML Rec....
John Cowan
johnwcowan
Online Now Send Email
Mar 11, 2009
7:23 pm

... [mailto:tagsoup-friends@yahoogroups.com] On Behalf Of John Cowan ... TagSoup 1.2 ... whitespace ... root ... question. John, Thank you for your quick...
Klotz, Leigh
leighklotz
Offline Send Email
Mar 11, 2009
8:41 pm

... I can't replicate this: What I get is simply: <?xml version="1.0" standalone="yes"?> <html...
John Cowan
johnwcowan
Online Now Send Email
Mar 11, 2009
9:32 pm

... xmlns="http://www.w3.org/1999/xhtml"><body><b>hello</b><i>there</i> ... elementLevel == 1, ... thus ... I misspoke in the quoted text at the top of this...
Klotz, Leigh
leighklotz
Offline Send Email
Mar 12, 2009
9:49 pm

... Yes, you're right. I've never paid attention to this before. ... Aha. ... I agree: line 632 should just be flushed. -- Clear? Huh! Why a four-year-old...
John Cowan
johnwcowan
Online Now Send Email
Mar 12, 2009
10:33 pm

Thanks! And to correct another typo for the record, I'm sending fragments, not fragmenents, which I guess is a back-formation from documenents. Leigh. ... ...
Klotz, Leigh
leighklotz
Offline Send Email
Mar 12, 2009
10:37 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help