namespaces

Java+DOM: How do I set the base namespace of an (already created) Document?

Hello! I am dealing with an already created Document object. I have to be able to set it's base namespace (attribute name "xmlns") to certain value. My input is DOM and is something like: <root>...some content...</root> What I need is DOM which is something like: <root xmlns="myNamespace">...some content...</root> That's it. Easy,...

What is the scope of a namespace alias in C++?

Does a C++ namespace alias defined inside a function definition have a block, function, file, or other scope (duration of validity)? ...

Why won't Visual Studio recognize the new Filter class I added?

I have added a new Filter class to the ASP.NET MVC Filter folder/namespace. There was one previously there as well which Visual Studio is allowing me to find through Filter.blahblahblah, however the new one won't get referenced at all... I don't understand. Do I need to do anything else to get it to find the new filter? using System; us...

C# code re-use via namespaces

Hey guys, I like to create a file full of custom functions which I have made, which I may use in another project or something. Now I don't fully understand how to go about this, normally in a language like php, you'd just create the php file and then go include("cust_lib.php") or whatever the file is called. Now I think that the proces...

Python - importing package classes into console global namespace

Hello all, I'm having a spot of trouble getting my python classes to work within the python console. I want to automatically import all of my classes into the global namespace so I can use them without any prefix.module.names. Here's what I've got so far... projectname/ |-__init__.py | |-main_stuff/ |-__init__.py |-main1.py |-ma...

OpemXML Namespaces

How do I get the namespaces of specific nodes in the OpenXML standard? Here is an example of using them: NameTable nt = new NameTable(); XmlNamespaceManager nsManager1 = new XmlNamespaceManager(nt); nsManager1.AddNamespace("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); BUT I still need to know how / where she gets th...

Linq-to-SQL datacontext not generating an object

I am working in a .NET 2.0, recently upgraded to .NET 3.5 environment (VS2008, VB.NET) on an existing ASP.NET website project. I am able to generate a Linq-to-SQL Class (also called a DataContext?) in the App Code folder, drag over tables from an active connection, and save it. Let's call it MyDB. When I go to the code-behind file for my...

Namespaces with external linkage

The problem I have is basically the same as 'greentype' mentions at http://www.cplusplus.com/forum/beginner/12458/ I'm sharing variables through namespaces and a problem arises when I try to put my function definitions into a separate file. Consider the following example, where I want to pass variable 'i', defined in the main code, to ...

.Net Nametable (Namespace) Problem

In .Net I do this: XmlNamespaceManager nsMan = new XmlNamespaceManager(xmlDoc.NameTable); XmlNodeList nlImages = xmlDoc.SelectNodes("//v:imagedata", nsMan); And I get this exception: Namespace prefix 'v' is not defined. But if I break the process and write this statement: xmlDoc.NameTable.Get("v") I get "v" out, so the namespace...

missing System.Windows reference

I have a Silverlight application where I need to use the Vector class in System.Windows within the Web project. But VS is complaining that System.Windows does not exist. I tried adding the reference, but it's not in the list of namespaces to add. In the .NET tab, it goes from System.Web.Services to System.Windows.Forms and skips Syste...

Class naming and namespaces

Will using same class name within multiple namespaces get me into trouble? I also try to remove dependency to math library. What do you think about following design. first file #define MATH_RECTANGLE_EXISTS namespace math { class Rectangle : Object2D { public: float perimeter(); float area(); float...

Relationship between Assembly and Namespace in .NET framework?

I know that it's possible to have many classes in a namespace. Now, is it possible to have a class in more than one assembly (.dll file)? ...

Namespace or something else to avoid name conflict with Kohana's Image library

I have a custom helper whose class name, Image_Core conflicts with Kohana's Image Library ( I can use the Library anywhere except inside my helper ) Is there any other way to call the Image Library, like a namespace or something? ( well, it isn't in a namespace, as I just checked ) or will I have to rename my helper? Thanks! NOTE: n...

which namespace does toupper belong to

Hi Guys, when I'm reading some c++ sample code for beginner , I'm puzzled at the usage of toupper in the following line : std::transform(data.begin(), data.end(), data.begin(), ::toupper); from the above line, I know that "transform" is from namespace std , but I don't know which namespace does toupper come from . maybe there is a de...

Namespace not found, though added .dll

I have an ASP.NET 3.5 web application. I added the a class library project, that have class as clsOperation, this class have 3 methods. I build this class. Add .dll to my web application as reference.Biult my website. but while I am trying to add a header in the code behind (using my namespace) the class's namespace is not appearing in i...

The type name {myUserControl} does not exist in the type {myNamespace.myNamespace}

I have a problem (obviously the question :) I have a project-- MyProject... hence the rest of the project uses a default of any classes as namespace "MyProject"... no problem. In my project, I created a custom user control that has many other controls on it (label, textboxes, etc). So, that class is ALSO within the default namespace ...

libxml-ruby and multiple namespaces

having this xml declaration: <didl:DIDL xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:didl="urn:mpeg:mpeg21:2002:02-DIDL-NS" xsi:schemaLocation="urn:mpeg:mpeg21:2002:02-DIDL-NS http://standards.iso.org/ittf/PubliclyAvailableStandards/MPEG-21_schema_files/did/didmodel.xsd"&gt; what is the way to defin...

How to change Namespace of jQuery?

I'm working on a library which uses jQuery internally which work fine. But i don't want force the user to use my jQuery-Version just because he uses my library in his code. So the question is, how can i use jQuery under a different name? Is it sufficient to do something like this: var mylib.jQuery = {}; mylib.jQuery = jQu...

Namespace problem

I'm working on an ASP.NET web application with .NET 3.5 and have run into the following problem: I'm working with a class under the namespace X.Web.Controls.Core which references the class Utils in the namespace X.X2.components.util. I get an error that Utils is already defined in the namespace X.Web.Controls.Utils This should not be p...

problem with DWR integration in spring?

Actually this is not, how can we integrate DWR and all that. But actually the problem is i am using xmlns:dwr="http://www.directwebremoting.org/schema/spring-dwr" and few hours back 'http://www.directwebremoting.org' was down, so i was unable to deploy my application, And now when the site is back i got to know that this link 'http:/...