AnsweredAssumed Answered

How to xog out only the English content (languageCode="en" only)?

Question asked by Georgy N Joseph on Aug 16, 2011
Latest reply on Aug 17, 2011 by Dave
Hi Friends,

I had to xog out a portlet from one server. Used the portlets_read.xml file for this.
But the output is huge as shown below:

<contentPack update="true">
<portlets update="true">
<gridPortlet allowConfigure="true"
allowConfigureLabel="true" allowEditing="true"
category="businessIntelligence" code="RM_portlet"
dataProviderId="resource"
dataProviderPartitionId="NIKU.ROOT"
dataProviderType="object"
defaultSortColumn="partition_code_caption"
defaultSortOrder="ascending" forceFilter="true"
gridAttributeProtection="1" hasEditableColumn="false"
metricsLocation="bottom" objectType="SYSTEM"
pageSize="20" showAltValueText="false"
showColumnCurrencyCode="false" source="customer">
[color=#f60101]<nls description="RM_portlet" languageCode="zh" name="RM_portlet"/>
<nls description="RM_portlet" languageCode="da" name="RM_portlet"/>
<nls description="RM_portlet" languageCode="it" name="RM_portlet"/>
<nls description="RM_portlet" languageCode="no" name="RM_portlet"/>
<nls description="RM_portlet" languageCode="ko" name="RM_portlet"/>
<nls description="RM_portlet" languageCode="cs" name="RM_portlet"/>
<nls description="RM_portlet" languageCode="de" name="RM_portlet"/>
<nls description="RM_portlet" languageCode="fi" name="RM_portlet"/>
<nls description="RM_portlet" languageCode="zh_TW" name="RM_portlet"/>
<nls description="RM_portlet" languageCode="pt" name="RM_portlet"/>
<nls description="RM_portlet" languageCode="sv" name="RM_portlet"/>
<nls description="RM_portlet" languageCode="fr" name="RM_portlet"/>
<nls description="RM_portlet" languageCode="en" name="RM_portlet"/>
<nls description="RM_portlet" languageCode="es" name="RM_portlet"/>
<nls description="RM_portlet" languageCode="ja" name="RM_portlet"/>
<nls description="RM_portlet" languageCode="nl" name="RM_portlet"/>[color]
<column align="left" allowEditing="false"
allowHeaderWrapping="false" allowWrapping="true"
code="unique_name" isEditable="false" position="1"
showHeaderLabel="true" showSeparator="true" type="label">
[color=#f60101]<nls languageCode="da" name="Resource ID"/>
<nls languageCode="zh" name="Resource ID"/>
<nls languageCode="it" name="Resource ID"/>
<nls languageCode="no" name="Resource ID"/>
<nls languageCode="ko" name="Resource ID"/>
<nls languageCode="cs" name="Resource ID"/>
<nls languageCode="de" name="Resource ID"/>
<nls languageCode="fi" name="Resource ID"/>
<nls languageCode="zh_TW" name="Resource ID"/>
<nls languageCode="pt" name="Resource ID"/>
<nls languageCode="sv" name="Resource ID"/>
<nls languageCode="fr" name="Resource ID"/>
<nls languageCode="en" name="Resource ID"/>
<nls languageCode="es" name="Resource ID"/>
<nls languageCode="nl" name="Resource ID"/>
<nls languageCode="ja" name="Resource ID"/>[color]
</column>..................

How can i edit the XOG input file so that i get only the English values (languageCode="en") in the xog output file?

I hope there should be some solution rather than having all these useless extra lines in the xog output file.

Thanks,
Georgy

Outcomes