[prev in list] [next in list] [prev in thread] [next in thread]
List: xmlbeans-dev
Subject: XMLBean: How to set xsi:type attribute
From: francesco334 <francesco334 () interfree ! it>
Date: 2008-01-03 10:30:35
Message-ID: 14594684.post () talk ! nabble ! com
[Download RAW message or body]
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.
[Attachment #3 (text/html)]
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 :
<PurchaseConfirmRQ>
<Language>ITA</Language>
<Credentials>
<User>TEST</User>
<Password>TEST</Password>
</Credentials>
<ConfirmationData purchaseToken="TS114441002">
<Holder type="AD">
<Name>test</Name>
<LastName>test</LastName>
</Holder>
<AgencyReference>test</AgencyReference>
<ConfirmationServiceDataList>
<ServiceData \
xsi:type="ConfirmationServiceDataHotel" SPUI="44#H#1">
<CustomerList>
\
<Customer type="AD">
\
<CustomerId>1</CustomerId> …
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
<br><hr align="left" width="300">
View this message in context: <a \
href="http://www.nabble.com/XMLBean%3A-How-to-set-xsi%3Atype-attribute-tp14594684p14594684.html">XMLBean: \
How to set xsi:type attribute</a><br> Sent from the <a \
href="http://www.nabble.com/Xml-Beans---Dev-f348.html">Xml Beans - Dev mailing list \
archive</a> at Nabble.com.<br>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic