JAXB使用自定义元素将Java对象编组为XML

JAXB使用自定义元素将Java对象编组为XML,xml,xslt,jaxb,marshalling,Xml,Xslt,Jaxb,Marshalling,您好,我正在使用JAXB编组,我的xml输出如下 <catalogentries> <catalogentry> <type>Product</type> <sequence>1.0</sequence> <partnumber>Product_H|||DAL|||CPCC05R2400JB32</partnumber> <parentgroupidentifie

您好,我正在使用JAXB编组,我的xml输出如下

<catalogentries>
<catalogentry>
    <type>Product</type>
    <sequence>1.0</sequence>
    <partnumber>Product_H|||DAL|||CPCC05R2400JB32</partnumber>
    <parentgroupidentifier>Combo Memory</parentgroupidentifier>
    <manufacturerpartnumber>CPCC05R2400JB32</manufacturerpartnumber>
    <manufacturer>Spansion</manufacturer>
</catalogentry>
</catalogentries>
但我希望我的输出像

<CatalogEntries>
<CatalogEentry>
    <Type>Product</Type>
    <Sequence>1.0</Sequence>
    <PartNumber>Product_H|||DAL|||CPCC05R2400JB32</PartNumber>
    <ParentGroupIdentifier>Combo Memory</ParentGroupIdentifier>
    <ManufacturerPartNumber>CPCC05R2400JB32</ManufacturerPartNumber>
    <Manufacturer>Spansion</Manufacturer>
</CatalogEntry>
</CatalogEntries>
我是否可以自定义输出xml的元素

谢谢,
Harish M

我通过在编组完成后使用XSLT解决了这个问题