You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by francesco334 <fr...@interfree.it> on 2008/01/03 11:30:35 UTC

XMLBean: How to set xsi:type attribute

Hello,

I’m develope an application with xmlbean (without using xmldom).
I have problem when I must set some attribute like xsi:type=’’ .

This is an example of xml :

                ITA
                
                               TEST
                               TEST
                
                
                               
                                               test
                                               test
                               
                               test
                               
                                               
                                                               
                                                                              
                                                                                             
1
						…

I hav tried with this code but it doesn’t works.
…
ConfirmationServiceDataHotel tagServiceData =
ConfirmationServiceDataHotel.Factory.newInstance();
			
ConfirmationServiceData tagServiceData1 =
tagConfirmationServiceDataList.addNewServiceData();
			
tagServiceData.setSPUI(tagService.getSPUI());
tagServiceData.newCursor().setName(
				      new QName("http://www.hotelbeds.com/schemas/2005/06/messages",
"ConfirmationServiceDataHotel", ""));

//assegno il confirmationdata di tipo hotel al confirmationdata generico
tagServiceData1.set(tagServiceData);
…

Can anyone help me?

Thanks & Regards,
Francesco Mezzina

-- 
View this message in context: http://www.nabble.com/XMLBean%3A-How-to-set-xsi%3Atype-attribute-tp14594684p14594684.html
Sent from the Xml Beans - Dev mailing list archive at Nabble.com.