obj.addMember(member4Obj);
// Write to an output stream the way a CORBA application would marshal the data for the nested
// struct.
Buffer buf = new Buffer();
OutputStream oStream = new OutputStream(buf);
oStream.write_string(nestedMember1Value);
oStream.write_boolean(nestedMember2Value.booleanValue());
oStream.write_fixed(fixedValue.movePointRight(2));
oStream.write_long(enumIndex);
oStream.write_float(floatValue.floatValue());
InputStream iStream = oStream.create_input_stream();
CorbaObjectReader reader = new CorbaObjectReader(iStream);
reader.read(obj);
// Now that the Object has its values, try and write it to Stax
XMLInputFactory inputFactory = XMLInputFactory.newInstance();