Possible Duplicate:
How to remove whitespace from an XmlDocument
All my searches have brought up people asking the opposite, but I have a file which grows by nearly 50% if it is saved with line returns and indentation.
Is there any way round this?
It got closed as a dupe, but the other question is about opening a file, whereas I'm talking about saving
for some weird reason, if you open XmlDocument with PreserveWhitespace, it does effectively remove all whitespace (in InnerXml), but when I do a save, it puts it all back again. And then some...
Or maybe it's just me...
var path = @"C:\test.xml";
System.IO.File.WriteAllText(path, "<root>\r\n\t<line></line>\r\n\t<line></line>\r\n</root>");
System.Xml.XmlDocument doc = new System.Xml.XmlDocument();
doc.PreserveWhitespace = false;
doc.Load(path);
doc.PreserveWhitespace = false;
doc.Save(path);
That gives me this, which even seems wrong, as it's adding text inside the line elements:
@MarcGravell, seriously, I've considered it. We're using xml to send what amounts to a database back and forth between windows and linux. xml is big, and slow...
@MarcGravell, thanks for the offer. It's not likely to happen any time soon, but I guess I should at least play with protobuf a bit. At least I know where to find you :)
someone with zero presence on meta, even if he has sky-high rep, is not a good match, but obviously, we're biased. And then there's the guy who boasts about not even being on meta. He'll go far.
Also, I trust a chatter more than one who isn't, because one who doesn't chat will come over to chat asking for help with the moderation tools and ranting because he can't keep up with the news :P
need some kind of sede query which can get nominees, with rep, meta rep, and whatever the chat badges are on SO/MSO :)
currently, I'd say jjnguy's overall engagement with SE pretty much blows the others out of the water... (of the ones I've looked at so far)
QUESTION: if I were to build a comparative list of nominees, what do you think would be some interesting data points? So far, I've thought of: how long they've been on SO; rep on SO; rep on meta; engagement on meta (number of questions/answers); talkative badge on SO and meta; age?; location? Overall number of SE accounts
I've rewritten the script so that it works on Firefox, Chrome and Opera. It now lists all sites in the Stack Exchange network, by using the API to retrieve the list of sites. I've also updated the regex to avoid the problem I mentioned in the comments.
Stack Exchange Reputation Audit Helper
...
I can update it a little bit more, because I realized you can differentiate between the different vote types using the rep changes, but that's about it
@YiJiang Manually. for that quantity, and once only, and given that sede is out of date by definition. And that I'd have had to have got the list of nominees manually or by scraping....
I found myself doing lots of clicking through to profiles to try and compare nominees with (what I consider to be) useful/interesting information.
I've cobbled together an Excel file with some metrics, may help you with your decision, and possible inspire the dev team to put together something l...
Its just that most of the IT work in USA is outsourced to india (and similar countries) .. when it comes to the implementation stackoverflow is just helping with the outsourcing back to the US ...
Hi guys,
I'm investigating a possible solution where all web parts on my page should be rendered without a chrome, meaning that the default title portion of the web part will be hidden, but the title supplied in the web part properties should be used elsewhere in the web part.
I have found seve...
@Benjol There are quite a few - for instance, it is possible for me to, for instance, embed 'hidden' content in the edit that the edit, and the reviewer won't be none the wiser, since apparently you can't see the source from the approval window
I have just clicked on this question on Stack Overflow and an edit option is available. The tooltop reveals that an edit is pending and asks me to review it.
This pop up then appears:
I can't see any changes between the original question and proposed edit. If I click approve the pop up disappe...
My edit standards are higher than theirs, I usually correct grammar mistakes too, but I don't want to reject their edit because it's actually useful... dilemma...
@badp For me at least the only option would be to use cross-domain ajax to grab a copy of the page, then process it. But that many ajax reqs is going to be pretty heavy - a server side script could cache it better
@YiJiang sure feel free to post bugs, but it is totally a moving target at the moment ... I can not make sense of anything without a markdown diff at the moment and there are tons of glitches I still need to fix
I know this is somewhat of a rare request/edge case, but this is becoming really annoying. In the faq, which I've linked to below, you state that for the comment reply system to work,
There must be a starts-with,
case-insensitive match of at least
three characters in the display name.
...
We have added MathJax to support TeX equations based on feedback. MathJax is on the cusp of a 1.0 release and we will update this library once it's final.