Hi,

there is an very interesting feature in cache I need very urgent - the xml
projection

but as I have some complex classes which have many relations to other
classes (at least properties of complex types)

I need to "cut off" the xml projection at a certain depth ...

example to explain:

class root ...
{
   property A as classA;

   property B as classB;

   property C as classC;

...
}

class classA ...
{
   property S as %String;
  ...

   property D as classD;


}

I even have same nested relations ... ( like a net ) !

It is very interesting - and a strong feature I think - that every XML
enabled class is resolved by the xml write...
But for Import / Export and Report use this is a little too much.

So I would like to over write the XML representation of properties ...

I found the possibilities to switch them off - XMLPROJECTION = NONE
and to choose between Attribute and Element (which results to a compiler
error in case of a Class),
but I think I need the behaviour that e.g. only the Property called Name for
a related Class should be shown ...

<root>
    <A S="xxx">
        <D ...>
    </A>
    <B />
</root>

should be instead of the whole <A> stuff like this:

<root>
    <A S="xxx" D="yyy" >
    <B />
</root>

any possibilities for this ?

I think it is no goog idea to set the XML projection of property D in Class
A to none
and also not to set Properties within Class D to none - because they should
only in case of
the relation from class A become supressed for xml projection ...

brg
werner



Reply via email to