Problem
The comments of my XML string arrays are duplicated for each item, causing my file size to expand:
<!--List of fruits-->
<string-array name="fruits_array">
<item>Apple</item>
<item>Banana</item>
</string-array>
Becomes:
<!--List of fruits-->
<string-array name="fruits_array">
<!--List of fruits-->
<item>Apple</item>
<!--List of fruits-->
<item>Banana</item>
</string-array>
Answer
For string arrays, each item is treated as a separate phrase on our platform and comments for each phrase may be modified at any time. Therefore we duplicate the comments for each item.
Comments
7 comments
I am also facing exact same issue. Is your issue resloved? My Fortiva Account
There might be a parsing issue in the code that generates or processes the XML file, causing comments to be duplicated. Check the code responsible for exporting or importing the XML file to ensure that comments about escape games london are handled correctly. Make sure there are no loops or duplicate statements that could lead to comments being duplicated.
With GST, consumers can easily calculate the final price of goods and services as the tax is included in the displayed price gst calculator india. This transparency enhances consumer awareness and facilitates informed purchasing decisions.
To resolve the issue of duplicated comments in your XML string arrays during export, you can modify your XML structure to avoid redundant comments. Here’s how you can adjust it:
Original XML:
```xml
<!--List of fruits-->
<string-array name="fruits_array">
<item>Apple</item>
<item>Banana</item>
</string-array>
```
Modified XML (without duplicated comments):
```xml
<string-array name="fruits_array">
<!--List of fruits-->
<item>Apple</item>
<item>Banana</item>
</string-array>
```
Ensure that each comment (`<!--List of fruits-->`) is placed only where it's intended, typically before the `<string-array>` element or within it but not duplicated unnecessarily. This adjustment should prevent the comments from appearing multiple times in your exported XML file.
To resolve the duplicated XML comments issue during export, ensure comments are placed outside the `<string-array>` tags to avoid redundancy.
The same string array might be defined in multiple places in your code or resources, leading to duplication when exported.
Hole IO
Please sign in to leave a comment.