cancel
Showing results for 
Search instead for 
Did you mean: 

Splitting an extension's items.xml file into separate files?

Former Member
0 Kudos

Is there any way that I could split an extension's items.xml file into different files?

On forum found this: https://wiki.hybris.com/pages/viewpage.action?pageId=110073598 but there was no positive answer.

Is there any update from far 2011?

Thanks, Giuseppe

Former Member
0 Kudos

Hi,

Can you try to use xml import resource for including multiple xml inside main item.xml ?

 e.g.
 <import resource="xyz-item-customer.xml"/>
 <import resource=" xyz-item-product.xml"/>

Use this inside main item.xml xyz-item.xml I didn't try this for item.xml, but I used it for multiple configuration files.

Former Member
0 Kudos

in items.xsd there is no notion of a "import" tag; i tryed your suggestiong anyway in case hybris has wrong xsd but got this error:

[schemavalidate] xxx-items.xml:16:38: cvc-complex-type.2.4.a: Invalid content was found starting with element 'import'. One of '{atomictypes, collectiontypes, enumtypes, maptypes, relations, itemtypes}' is expect ed.

Probably you are confusing the "import" tag valid for spring configuration

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Its not possible to do this, you can group related items up into typegroups though :

     <typegroup name="Product">


Theres an example in commerceservices-items.xml