Skip to Content.
Sympa Menu

perfsonar-dev - Re: [I2G2-Proto] [pS-dev] adding references to other nodes/rnc schema definitions cannot be matched to classes

Subject: perfsonar development work

List archive

Re: [I2G2-Proto] [pS-dev] adding references to other nodes/rnc schema definitions cannot be matched to classes


Chronological Thread 
  • From: ulisses <>
  • To: Jason Zurawski <>
  • Cc: ,
  • Subject: Re: [I2G2-Proto] [pS-dev] adding references to other nodes/rnc schema definitions cannot be matched to classes
  • Date: Mon, 21 Aug 2006 11:34:23 +0200

Hi again Jason

what about the other question? should I provide further question?

regards

Ulisses

On 2006-07-28 08:39:53, ulisses wrote:
> Hi again!
>
> On 2006-07-27 08:40:45, Jason Zurawski wrote:
> > Ulisses;
> >
> > ># Question #1
> > >
> > >The first is about adding a reference to a node in an XML document using
> > >nmwg classes
> > >
> > >imagine an XML document that has two completly different branches, let's
> > >say:
> > >
> > > /--- Node class A ---- Node class C
> > >Root --/
> > > \
> > > \--- Node class B ---- Node class C
> > >
> > >
> > >imagine now that I have defined in branch that begins with Node class A,
> > >a
> > >Node class C child, lets say "a" and I want to have the same node "a" in
> > >the branch that begins with the Node class B.
> > >
> > >The proper way to do it is:
> > >
> > > 1- new Node class C "c"
> > > 2- add attributes to node "c"
> > > 3- set the linkref attribute of "c", lets say to "cref"
> > > 4- attach "c" to class A
> > >
> > > and then, when filling the branch that begins with the node class
> > > B...
> > >
> > > 5- new Node class C
> > > 6- just set the linkref attribute to be "cref"
> > > 7- do not set any other attribute to the newly created node class C
> > > 8- attach this new node class C to the node of class B
> > >
> > >is this the way?
> > >
> > >
> >
> > You lost me with this example, could you please explain what you are
> > trying to do with actual XML elements and examples?
>
>
> in my case:
>
> // I have Links wich have interfaces, this interfaces will be referenced
> afterwards by nodes
> // that have the same interfaces
>
> Interface iface;
> iface.setTypeElement(type);
> iface.setCapacityElement(capacity);
> // etc... fill the rest of elements, and finally set a reference to it in
> hope
> // I can reference it again in other parts of the XML document without
> describing the interface again
>
> iface.setInterfaceIdRef(interface_ref);
>
> // Afterwards I want to describe a node that has the elements
> Node node= new Node();
>
> // In this case I attach another Interface object with just the IdRef
> attribute filled
>
> Interface iface;
>
> iface.setInterfaceIdRef(interface_ref); // interface_ref is the same string
> as before
> node.setInterface(iface);
>
> is this right?
>
> Thanks so much
>
> Ulisses


  • Re: [I2G2-Proto] [pS-dev] adding references to other nodes/rnc schema definitions cannot be matched to classes, ulisses, 08/21/2006

Archive powered by MHonArc 2.6.16.

Top of Page