|
@@ -143,7 +143,10 @@ export class NodeId {
|
|
const _this = this as INodeId;
|
|
const _this = this as INodeId;
|
|
switch (_this.identifierType) {
|
|
switch (_this.identifierType) {
|
|
case NodeIdType.NUMERIC:
|
|
case NodeIdType.NUMERIC:
|
|
- str = "ns=" + this.namespace + ";i=" + _this.value;
|
|
|
|
|
|
+ if(this.namespace===0)
|
|
|
|
+ str = "i=" + _this.value;
|
|
|
|
+ else
|
|
|
|
+ str = "ns=" + this.namespace + ";i=" + _this.value;
|
|
break;
|
|
break;
|
|
case NodeIdType.STRING:
|
|
case NodeIdType.STRING:
|
|
str = "ns=" + this.namespace + ";s=" + _this.value;
|
|
str = "ns=" + this.namespace + ";s=" + _this.value;
|