Re: Using the getAnyAttribute()

2007-05-24 Thread kelvin goodson

Hi Chris
  I couldn't find an example of this so I had a play and added a new test
case at [1].
Regards, Kelvin.


[1]
https://svn.apache.org/repos/asf/incubator/tuscany/java/sdo/tools/src/test/java/org/apache/tuscany/sdo/test/OpenContentTestCase.java

On 23/05/07, Chris Mildebrandt [EMAIL PROTECTED] wrote:


Hi,

We're having problems using statically generated SDOs to set undefined
attributes in our xml. In the schema, we have a line like this:

xsd:anyAttribute namespace=##other processContents=lax/

After getting the DataObject, I make a call to getAnyAttribute():

Sequence anyAttribute = person.getAnyAttribute();

All of my blind attempts to add values into this Sequence have
resulted in exceptions. I'm sure I'm doing something wrong. Does
anyone have an example of how to insert undefined attributes into this
structure?

Thanks,
-Chris

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Evolution of a specific SDO structure over time

2007-05-24 Thread Frank Budinsky
Hi Daniel,

My guess is that the underlying EMF XML loader already has options to 
support this. Someone (you? :-) just needs to figure out what options need 
to be exposed to SDO clients, or even turned on by default, to make it 
work in Tuscany.

Frank.

Daniel Peter [EMAIL PROTECTED] wrote on 05/24/2007 05:22:54 AM:

 Hi all,
 
 Assume there is a static generated SDO class, MySDO
 edition1. Then an additional optional element is added
 to the corresponding xsd, and thus the generated SDO
 class, MySDO edition2, gets an additional property. 
 (At the time of the generation of MySDO edition1 it is
 not known, where in the structure additional optional
 elements might be added in the future.)
 
 Is there a way that MySDO edition2 can be used for
 Java serialization and the prior MySDO edition1 for
 deserialization, and vice versa? (Of course with the
 toleration of the potential loss of the information
 held in the additional optional properties.)
 
 Could the XML parser be configured to ignore unknown
 xml elements?
 Other options?
 
 Thanks, Daniel.
 
 
   __  Yahoo! Clever: Sie haben 
 Fragen? Yahoo! Nutzer antworten Ihnen. www.yahoo.de/clever
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]