namespaces

Filter XMLList to nodes/attributes that have a certain namespace prefix

Hi all, This is best explained using an example. I have an xml document that has namespace qualified elements. What I want to do is search the xmlList to see how many namespace qualifier elements and/or attributes there are. So for example some text So for the above xml doc the namespace xsi would have 1 node returned from a search...

C#: property/field namespace ambiguities

I get compile error because the compiler thinks Path.Combine refers to my field, but I want it to refer to class System.IO.Path. Is there a good way to handle this other than always having to write the FQN like System.IO.Path.Combine()? using System.IO; class Foo { public string Path; void Bar(){ Path.Combine("",""); } // compil...

How to use a single namespace across files?

I have a C++ project (VC++ 2008) that only uses the std namespace in many of the source files, but I can't find the "right" place to put "using namespace std;". If I put it in main.cpp, it doesn't seem to spread to my other source files. I had it working when I put this in a header file, but I've since been told that's bad. If I put it...

using Interop.SHDocVw.dll Where can i find this namespace/dll at?

I've done this before, I don't remember if i downloaded the DLL from off the net or something but i don't want to get a virus. I need access to this namespace so that I can have extra features that the Webbrowswer control doesn't offer. How do I add a Com reference exactly. Or do I need the dll from someplace Thanks ...

Designer.cs file creates errors automatically

Flawed as I am, I've received some unneeded help in creating errors in the form of Visual Studio 2008 adding incorrect code to a .designer.cs file. I appreciate, it is probably doing this because of my omission or error - but I will use the excuse that I am in actuality a fledgeling ASP.NET developer so I'm still learning. The relevant ...

Spring custom namespaces with Maven

Hi, I wrote my own custom namespace for a Spring based project I'm working on. The project is built with maven, and I'd like to put my xsd files in the resources directory. The problem is the spring.schemas directory requires me to define where I put my xsd file. In my dev environment it will be resources/schemas/myschema.xsd. But, when...

Spring RuntimeBeanReference

Hi, I have a custom namespace I'm parsing for a Spring project, and I'm having trouble with RuntimeBeanReferences. I have a class MyClass that takes a List. In my beandef file, I have a bean defined of type MyObject named "MyObj". In my custom namespace parser, I have code that looks like this: RootBeanDefinition myBean = new RootBean...

How can I check for the existence of an XML node in Flex/AS3?

Why does the trace in the loop below return false for every iteration, even though there ARE nodes named with 6 of the 8 possible values??? This only happens when I have a namespace. Is there some other way to check for the node values??? <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" la...

How can I do a messagebox in asp.net mvc?

Hi, I've been trying to do a messagebox in a controller in asp.net mvc, but every time I type MessageBox or MsgBox it doesn't give me the option to import a namespace... What can I use that would be similar to a MessageBox? ...

Use types of same name & namespace in 2 .NET assemblies

Out of curiosity, I've created 2 assemblies which both have a class (Class1) with the exact same namespace (Library1). I then create another client referencing those 2 assemblies and try to create an instance of Class1. The compiler, not surprisingly, gives me a compile-error about the ambiguous reference. Is there any way to explic...

Why does Visual Studio add an at sign (@) to my namespace?

I have a web application project called Site, and in it is a folder called SITE (I know, not the best naming conventions, but that's another story). When I check the designer generated code it starts like this: namespace Site.@__SITE__ { Why is the at sign added? I can remove it and the project compiles and runs fine. Also, with or w...

What does it Mean "Web Sites give You No Control over Namespaces"?

Hello everyone, How do you understand "No control over your namespaces" namespace issue, quoted from, http://reddnet.net/code/asp-net-web-site-vs-web-application-project-part-2/ Here are more background: one of the cons of web site project type of VSTS 2005 is, my confusion is what exactly means "no control over your namespace"? •No...

Where Does Visual Studio Remember Which Folders are "Namespace Providers"?

OK, this may be really simple, but it is Friday and it has been a long week. I can't seem to find an answer for the life of me. Basically, I have a project in which the Namespace Provider property has been set. When a colleague gets the up to date code from the repository, these properties do not seem to appear at all? (i.e. there is no...

Namespace browsing works correctly in tools and as Imports but not in code window (except imports line)

Hello, I posted this question and still have not gotten an answer so I thought I would link to the following video file of the problem...sorry I tried to upload the video to videos.yahoo.com but the downgraded video is unviewable. So here is a direct link to the avi file hosted on my website. SUMMARY OF THE PROBLEM I have a controls p...

Parsing XML namespaces?

Using JavaScript/Ajax? I'm trying to extract values from: <yweather:astronomy sunrise="6:34 am" sunset="8:38 pm"/> Looking for something like: var response = transport.responseXML.getElementsByTagName("channel"); sunrise = response[0].getElementsByTagName("yweather:astronomy").item(0).Attributes["sunrise"].Value; But nothing wor...

Oracle: Global namespace qualifier for function?

How do I qualify a function or procedure call to indicate that it should be at global scope? I have my own scn_to_timestamp() in a package that needs to call the default global function of the same name. create or replace package px as function scn_to_timestamp(scn number) return timestamp; end px; create or replace package body p...

Grouping in a namespace vs. prefixing Classes

Hi, imagine a situation where you have an application that needs to import data from different sources. For each of these sources exists a seperate model (often not related to the others). So let's say i have my software component X which does all the importing, the namespace is correspondingly X. In X i have all my different parsers a...

#define statements within a namespace

If I have a #define statement within a namespace as such: namespace MyNamespace { #define SOME_VALUE 0xDEADBABE } Am I correct in saying that the #define statement is not restricted to the namespace? Is the following the "correct" thing to do? namespace MyNamespace { const unsigned int SOME_VALUE = 0xDEADBABE; } ...

Setting the namespace in XAML

Suppose I have a top-level ResourceDictionary element in a XAML file with no C# code-behind. How can I put this element in a specific namespace? ...

Common namespace naming suggestion

I have a layered application with namespaces: App.Core - business layer logic services App.Data - data access layer store classes and data access objects App.Web - user interface layer I also have business objects/DTOs. They reside in App.Objects namespace, but I dont like this naming convention. Why? Because this namespace will also...