Are you just confused or really that stupid? Office "Open" XML from Microsoft, not being any kind of serious standard, does exactly that: Dumping OLE objects as base64-encoded binary fiels into an XML structure for the pure sake of buzzword compatibility. Did you rather mean OpenDocument? If so, then I still fail to see how the WTF above should be related to document formats exclusively or especially.
yafake
@yafake
Best posts made by yafake
Latest posts made by yafake
-
RE: The Anything-to-XML Converter
-
RE: Just in case we tear the fabric of spacetime
Um, and what if now == dateTime1 or now == dateTime2? Remember that ab can fail simultaneously if a==b, so they're not mutually exclusive.
-
RE: Roll your own language?
The point is that you can extend Java with arbitrary language generation rules.
F.e.
XMLDocument xmlDoc = new Xml(new HeadElement(new Body(), "someText", new Tag("someOtherText")));
-
RE: We all love Vista!
The real WTF is that he tried to remove a folder structure with "del /s *". The DEL command only removes FILES and nothing else. For removing directories, you should use RD or RMDIR.
"RM /S ." also removes all files and subdirectories, and if you only want to remove empty directories, you may use "for /r "delims=" %i in ('dir /s /b /ad ^| sort /r') do rd "%i".
-
RE: Dont trust the framework, to do the work(.net)
Could it be that you don't understand the purpose of rethrowing exceptions? Seems so, since you're showing bad examples.
Here's a good one:public class XNodeList extends AbstractList<Node> implements List<Node> {
private final NodeList l;
public XNodeList(NodeList l) {
this.l = l;
}public boolean add(Node n) {
try {
this.get(this.size()).getParent().appendChild(n);
} catch (DOMException e) {
if(e.code == NO_MODIFICATION_ALLOWED_ERRR || e.code == NOT_SUPPORTED_ERR) {
throw new UnsupportOperationException("adding Node "+n.id+" to NodeList is not allowed",e);
} else {
throw new IllegalArgumentException("failed to add Node "+n.id+", e);
}
}
return true;
}
...}
-
RE: Yet another reason to Hate Firefox
Um... excuse me, but are you kind of retarded? You're abusing MSIE as a webbrowser, and those guys are so kind and nicely to hint you on your mistake, and you're complaining? Beside that, they have to assume you abused MSIE on more than just their system, and thus consider your system as compromised (and try to protect their webserver from you).
No-one forces you to use any special webbrowser. But please don't expect that they'd consider you as special because you're too stupid to differ a webbrowser from a trivially insecure ActiveX Rich Platform Client. If they website doesn't work in IE, then it's solely your fault, because you should be using a webbrowser.
</rant>