Top "Namespaces" questions

A namespace is a container that provides context for identifiers, within which names are unique.

How to ignore namespace when selecting XML nodes with XPath

I have to parse an XML document that looks like this: <?xml version="1.0" encoding="UTF-8" ?> <m:OASISReport …

xml xpath namespaces xml-namespaces
Parse XML with Namespace using SimpleXML

I have this as xml: <root xmlns:event="http://www.webex.com/schemas/2002/06/service/event"> <event:event&…

php xml namespaces simplexml
"using namespace" in c++ headers

In all our c++ courses, all the teachers always put using namespace std; right after the #includes in their .h …

c++ namespaces header-files
Why can't I forward-declare a class in a namespace using double colons?

class Namespace::Class; Why do I have to do this?: namespace Namespace { class Class; } Using VC++ 8.0, the compiler issues: error …

c++ namespaces
The type or namespace IHttpActionResult not found

This is the first time I am creating a Web API application in ASP.NET MVC4. I opened a new …

asp.net-mvc namespaces
Namespace and class with the same name?

I'm organizing a library project and I have a central manager class named Scenegraph and a whole bunch of other …

c# class namespaces
How to check if class exists within a namespace?

I've got this: use XXX\Driver\Driver; ... var_dump(class_exists('Driver')); // false $driver = new Driver(); // prints 123123123 since I put …

php oop namespaces
Using Xpath With Default Namespace in C#

I've got an XML document with a default namespace. I'm using a XPathNavigator to select a set of nodes using …

c# xml xpath namespaces xpathnavigator
Laravel 5 Class 'App\Http\Controllers\File' not found

i get the following error: Class 'App\Http\Controllers\File' not found when using in laravel 5 Controller: $files = File::files( $…

php laravel namespaces laravel-5 illuminate-container