I have a "plain" XmlDocument loaded like so:
<root>
<element1 />
<element2></element2>
</root>
and want to qualify the elements with namespaces like so while the object model is loaded
<abc:root xmlns:abc="urn:something">
<abc:element1 />
<abc:element2></abc:element2>
</abc:root>
before writing it out.
...
Came by a curious case today, that got me thinking about how the object model in delphi really works.
The case:
We have imported a SOAP service that expose a couple of methods, taking objects as parameters. Delphi generates classes/interfaces that we use to communicate with the soap service, and the objects used as parameters all inher...
I'm looking for a .Net class library to load UML models (the more serialization formats the better) for an application I'm developing. I only need the UML object model, no graphs, graphic, UI or anything like that.
Currently I'm using NUml, however that library hasn't seen much maintainance in the last few years and is somewhat outdated...
Ok so I'm trying to build this stat tracker for my app and I have built a data model object called statTracker that keeps track of all the stuff I want it to. I can set and retrieve values using the selectors, but if I try and use KVC (ie setValue: forKey: ) everything goes bad and says my StatTracker class is not KVC compliant:
valueF...
We’re rewriting a calculation core from scratch in Delphi, and we’re looking for ways to let other people write code against it.
Automation seems a fairly safe way to get this done. One use we’re thinking of is making it available to VBA/Office, and also generating a .NET assembly (based on the Automation object, that's easy).
But the...
I am new to the javascript object model (prototype based) and am trying to do the following:
I have a constructor that simply initializes an array: this.myArray = []. I have a method:
MyConstructor.prototype.addToArray = function(myObject, type) {
//
};
Basically I need myArray to be attached to a specific type. I.e. when addToAr...
Enums are generally used to define the state of a particular property of a class, say in an object model of some sort. For some of these properties, the state 'this property is not set' is valid.
In these situations, should I use a zero None enum value, or make the property type nullable?
public MyEnum Property { get; set; }
public en...
I have a custom publishing page content type, based on the Publishing Article Page content type. On this content type, I have a custom field named "PageContentCategory". In my code to create new pages, I tried this:
PublishingPage newPublishingPage = this.currentPublishingWeb.GetPublishingPages().Add(pageName, newPageSelectedLayout);
i...
Is it possible to pass the pointer to an object in a drag and drop operation?
Here is the scenario...
I have an 'NSArray' of custom objects. For arguments sake we'll say this is a list of person objects.
The list is tied to an NSTableView via an NSArrayController. The NSTableView is a drag source and I have an NSView as a drag destina...
I'm looking for a good tutorial on how to use the SharePoint 2010 Client Object Model. All I've been able to find on the web is some snippets about getting all the list names.
I'm looking for functionality such as:
Adding an item to a list
Querying a list for a specific field value
Deleting a row from a list
Any help would be apprec...