Hi everyone,
I'm running into a problem where I have a string represntation of an xml
element and I validate it using the factory, then i want to set it into an item
xml bean.
ProductDescriptionXML productDesc=null;
productDesc= ProductDescriptionXML.Factory.newInstance();
productDesc= ProductDescriptionXML.Factory.parse(productDescription);
item.setProductDescription(productDesc);
Now when I do that, I end up with two ProductDescription tags as below within
the xml which makes entire document invalid. is there an xmloption that I can
set to have the item.setProductDescription(productDesc) not automatically
create the outer <productDescription> ?
Thanks in advance.
Wayne
<productDescription>
<productDescription>
<productId>1011</productId>
<partNumber>itemPartnumber11</partNumber>
<productType>ItemBean</productType>
<languageId>-1</languageId>
<name>item part number 1 name</name>
<shortDescription>item part number 1 short
Description</shortDescription>
<longDescription>item part number 1 long Description</longDescription>
<thumbnailUrl>http://ec1.images-amazon.com/images/G/01/electronics/cat/ce-comp2_sqcat._V62540442_.gif</thumbnailUrl>
<fullimageUrl>http://s7ondemand1.scene7.com/is/image/MoosejawMB/10032314x1014039_zm?$full150$</fullimageUrl>
<barcode>0.0</barcode>
<manufacturerPartNumber>manufacturerPartNumber</manufacturerPartNumber>
<available>true</available>
<published>true</published>
<taxable>true</taxable>
<discontinued>true</discontinued>
<isSpecialOrder>true</isSpecialOrder>
</productDescription>
</productDescription>