# How to specify a namespace for SourceProxy in the XML file?

**URL:** https://discourse.paraview.org/t/how-to-specify-a-namespace-for-sourceproxy-in-the-xml-file/17230
**Category:** Development
**Created:** [October 6, 2025, 9:01am UTC](https://discourse.paraview.org/t/how-to-specify-a-namespace-for-sourceproxy-in-the-xml-file/17230 "2025-10-06T09:01:08Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![CsatiZoltan](https://discourse.paraview.org/user_avatar/discourse.paraview.org/csatizoltan/32/6997_2.png) [@CsatiZoltan](https://discourse.paraview.org/u/CsatiZoltan)
#### Post date: [October 6, 2025, 9:01am UTC](https://discourse.paraview.org/t/how-to-specify-a-namespace-for-sourceproxy-in-the-xml-file/17230/1 "2025-10-06T09:01:08Z")

</div>

Hello,

My ParaView plugin works fine for a C++ class `MyClass`. However, when I put the class in a namespace `mynamescape`, ParaView does not recognize it, leading to a crash with the well-known message “_This typically means that ParaView does not know about the request class to create an instance of if. Ensure that it has been correctly wrapped using the client-server wrappers and the wrapping has been initialized. Note class names are case-sensitive._”

Can I somehow specify the name of the namespace containing the class in the ServerManagerConfiguration? It would make sense to me to have something like this:

```auto
<SourceProxy name="..."
             namespace="mynamespace"
             class="MyClass"
             label="...">

```

Where can I find the documentation for the ParaView plugin XML file? I would like to know what fields are supported in ProxyGroup, the allowed types, etc.

Thank you

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [October 6, 2025, 9:38am UTC](https://discourse.paraview.org/t/how-to-specify-a-namespace-for-sourceproxy-in-the-xml-file/17230/2 "2025-10-06T09:38:01Z")

</div>

Well, what is a namespace ? I don’t think this concept exists for proxies.

---

<div class="post-metadata">

### Author: ![CsatiZoltan](https://discourse.paraview.org/user_avatar/discourse.paraview.org/csatizoltan/32/6997_2.png) [@CsatiZoltan](https://discourse.paraview.org/u/CsatiZoltan)
#### Post date: [October 6, 2025, 9:44am UTC](https://discourse.paraview.org/t/how-to-specify-a-namespace-for-sourceproxy-in-the-xml-file/17230/3 "2025-10-06T09:44:45Z")

</div>

It was just an example how I would imagine supporting a namespace in the XML file.

> I don’t think this concept exists for proxies.

If I cannot use a namespace in the PV plugin wrapping, I can live with it. The problem is that I don’t know the supported keywords and values in the XML file.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [October 6, 2025, 11:40am UTC](https://discourse.paraview.org/t/how-to-specify-a-namespace-for-sourceproxy-in-the-xml-file/17230/4 "2025-10-06T11:40:27Z")

</div>

But what is a namespace here ? What are you trying to do ?

---

<div class="post-metadata">

### Author: ![CsatiZoltan](https://discourse.paraview.org/user_avatar/discourse.paraview.org/csatizoltan/32/6997_2.png) [@CsatiZoltan](https://discourse.paraview.org/u/CsatiZoltan)
#### Post date: [October 6, 2025, 12:29pm UTC](https://discourse.paraview.org/t/how-to-specify-a-namespace-for-sourceproxy-in-the-xml-file/17230/5 "2025-10-06T12:29:06Z")

</div>

Originally, I had

```cpp
class MyClass : public vtkPNGReader {
    ...
}

```

with the XML file

```xml
<ServerManagerConfiguration>
  <ProxyGroup name="sources">
   <SourceProxy name="MyReader"
                class="MyClass"
                label="My reader">
...

```

which works in ParaView. As my code is becoming more and more complex, I restructured it into namespaces.

```cpp
namespace mynamespace {

class MyClass : public vtkPNGReader {
    ...
}

}

```

I can build the plugin, but when I use it, I get the error written in my first post. How should I modify the XML file so that it recognizes `MyClass`?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [October 6, 2025, 12:57pm UTC](https://discourse.paraview.org/t/how-to-specify-a-namespace-for-sourceproxy-in-the-xml-file/17230/6 "2025-10-06T12:57:51Z")

</div>

Got it, this is not supported.

---

<div class="post-metadata">

### Author: ![CsatiZoltan](https://discourse.paraview.org/user_avatar/discourse.paraview.org/csatizoltan/32/6997_2.png) [@CsatiZoltan](https://discourse.paraview.org/u/CsatiZoltan)
#### Post date: [October 6, 2025, 1:02pm UTC](https://discourse.paraview.org/t/how-to-specify-a-namespace-for-sourceproxy-in-the-xml-file/17230/7 "2025-10-06T13:02:20Z")

</div>

OK, thank you.
