namespaces

What has an namespace to do with XML?

Something confuses me here: The NSXMLParser method has a namespaceURI attribute: - (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName From the documentation I couldn't figure out what they mean by "namespace". Can someone explain with ...

Installing Namespace Extension with Microsoft WIX

What is the best/easiest way to install a namespace extension using wix? Especially how do I install it on Windows 7 with enabled UAC. ...

Confusion with Root Namespace in Asp.net web project

I have an VS2008 solution with 2 projects, WebUI and Domain; WebUI references domain The Root Namespace in the WebUI project is:MyCompany.MyProjectName.WebUI The Root Namespace in the Domain project is blank. (Namespaces are manually declared for all classes) So everything has been working fine, until I tried to reference a class in Do...

What is wrong with my namespaces?

I am in the process to rename the namespace in our project. I found a strange thing and cannot understand why is that? Original structure: namespace Mycompany.Util { public class Util{ public static void ReadDictionaryFile() { } } } in another file using MyCompany.Util; namespace Logging { public...

Problems inheriting from a class in the same namespace in C++

I was happily working in C++, until compilation time arrived. I've got several classes inside some namespace (let's call it N); two of these classes correspond to one base class, and other derived from it. Each class has its own pair of .hpp and .cpp files; I think it'd look like: namespace N{ class Base{ }; class Derived...

How to properly use extern in a namespace?

I'm working on getting rLog to build as a DLL under windows, and I was getting undefined symbol errors relating to some global symbols in the rlog namespace. Specifically these in RLogChannel.cpp: namespace rlog { ... RLogChannel *_RLDebugChannel = GetGlobalChannel( "debug", Log_Debug ); RLogChannel *_RLInfoChannel = GetGlob...

Template / Namespace Interactions

I came across a compile.. oddity? recently that led me to believe that a template, when created, is created in the same namespaces (or, at least, using the same namespaces) as where is was declared. That is; template<class T> class bar { public: static int stuff(){return T::stuff();} }; namespace ONE { struct foo { ...

F# 2.0 namespace warning

I just installed the latest version of F#, and opened an old solution to see what it would tell me. It's a multi-file solution, where the first file includes some 'extension functions' on the List module: module List = ///Given list of 'rows', returns list of 'columns' let rec transpose lst = match lst with | ...

Does Resharper not support Microsoft best practices for namespace naming conventions?

I know there are only warnings but they are still annoying me. I like a clean project. I have a solution with two projects. I would like for the namespaces to look like the following Solution.Project.FEATURE Which I thought should map onto the best practice CompanyName.TechnologyName.FEATURE Instead Resharper keeps suggesting a names...

Naming conventions - in which namespace do subclasses go?

Hypothetically, if I have: Contoso.App.People.SecurityGuard : Contoso.App.People.Person And I then build this class and ship it as a core lib. If I then consume this library in, say, a mobile client app and make a: NightDeskGuard : Contoso.App.People.SecurityGuard In which namespace would the new class go? Contoso.App.Mobile.Peopl...

Using "ObjectName" instead of "Namespace.ObjectName" in a view

I'm really not sure how to ask this, so forgive me if it sounds a bit off. I have an IPerson interface, a Student : IPerson class and an Employee : IPerson in the Project.Data namespace. In my controller, I add the reference for Project.Data and Project.Services and add using statements where appropriate. In my view, I create a strong...

How to force a C# root namespace throughout project files for when none is coded?

I want to force a root namespace on the contents of any .cs source files that don't have their contents wrapped in an explicit namespace. In other words I want to keep classes and other namespace-level structures out of the default namespace. (Working inside a Windows .NET environment with Visual Studio) In the following example, I want...

XSLT 1.0 add namespace + xsi:type to element

Hi I want to go from this : <detail> <BusinessError> <environment>Test</environment> <businesserror> <BusinessCode>my_businesscode</BusinessCode> <BusinessMessage>my_businessmessage</BusinessMessage> </businesserror> </BusinessError> </detail> To this (only the businesserror element is of interest) ...

Deployment problem with java axis2 web services

Hi We are having a problem deploying our webservices, built in eclipse using java/axis2. On local boxes and development servers some namespaces are generated as xmlns:ax21 & xmlns:ax23. But when deployed to test servers are xmlns:23 & xmlns:24. All servers are using identical java installs. This is causing problems with client apps t...

Documenting namespaces with Doxygen

I'm having issues with Doxygen recognizing namespaces and modules. I believe the issue surrounds whether to place the \addtogroup within the namespace or outside the namespace. Example 1, outside the namespace: /*! * \addtogroup Records * @{ */ //! Generic record interfaces and implementations namespace Records { //! Describe...

System.Windows.Forms namespace not recognized in Windows Service

Hi there, I've got a service that's acting up. It won't recognize the following namespace declaration: using System.Windows.Forms; What I most need from the Windows.Forms namespace is a WebBrowser control. Any ideas on how to get this working? Thank you. ...

c++ namespace export

Is there a way in C++ to create an anonymous namespace, and only export a single function out of it? I want something like: namespace { void Bar() {} void Foo() { Bar(); } } Now, I want to somehow access to Foo() yet make sure there's no way to touch Bar() Thanks! ...

Namespaces combined with TFS / Source Control explanation

As an ISV company we slowly run into the "structure your code"-issue. We mainly develop using Visual Studio 2008 and 2010 RC. Languages c# and vb.net. We have our own Team Foundation Server and of course we use Source Control. When we started developing based on the .NET Framework, we also begun using Namespaces in a primitive way. With ...

How should I define a JavaScript 'namespace' to satisfy JSLint?

I want to be able to package my JavaScript code into a 'namespace' to prevent name clashes with other libraries. Since the declaration of a namespace should be a simple piece of code I don't want to depend on any external libraries to provide me with this functionality. I've found various pieces of advice on how to do this simply but non...

How do I convert my program to use C++ namespaces?

My code was working fine, until I tried to wrap all of my class definitions in a namespace. // "Player.h" #include "PhysicsObject.h" namespace MaelstromII { class Player : public MaelstromII::PhysicsObject { // ... }; } // "PhysicsObject.h" #include "GameObject.h" namespace MaelstromII { class PhysicsObject : pu...