Sometimes you want to get the top level document element (NotesDOMDocumentNode) of a NotesDOMNode. Here is a small function to do that. Public Function getDocumentElementOf(node As NotesDOMNode) As NotesDOMDocumentNode Dim docNode As NotesDOMDocumentNode Dim currentNode As NotesDOMNode Set currentNode = getRootNodeOf(node) Do While Not currentNode.isNull If currentNode.NodeType = DOMNODETYPE_DOCUMENT_NODE Then Set docNode = node Exit […]
A simple utility function to use when traversing / parsing a DOM tree. Public Function getRootNodeOf(node As NotesDOMNode) As NotesDOMNode Set getRootNodeOf = node If node.ParentNode.IsNull Then Exit Function Set getRootNodeOf = getRootNodeOf(node.ParentNode) End Function Use it like this: Dim rootNode As NotesDOMNode Set rootNode = getRootNodeOf(nodeThatYouWantTheRootOf)
I wonder if George Lucas was contacted before they made this 😀
Created a simple BAT file to launch the WSDL2Java utility from a command prompt. Apache Axis can be used to handle web services, both requests and responses. It includes a tool called WSDL2Java, to create Java source files (data objects, service, locator etc) and from a valid WSDL file. The file WSDL2Java.bat below is a […]
Soon we can all eat at restaurants without getting our clothes all bad-smelling! No more breathing problems!
I had difficulties adding an extension to the ”Folder Options” dialog in Windows Explorer. I opened the dialog as usual via the ”Tools” menu in Windows Explorer. In the ”File Types” tab, I pressed ”New”, to add a new extension. It worked fine, showing up in the ”Registered file types” list. But, when closing the […]
Some more methods and bugfixes, grab it here.
As a Star Wars fan, I have long waited until this day. Some spoilers here… One of my brothers kindly bought a ticket to me for the premier night (thanks miltex 😉 at Heron City in the southern part of Stockholm. The show should have started 23.59, but as always, it was a few minutes […]