Hi,
I am trying to flatten information stored in XML into a tabular structure. Some attributes can be repetitive (for instance a water area name can be provided in different languages or different alphabets). My guess is that the XMLXQueryExploder transformer should be able to play a role there or maybe simply a ListExploder. I guess using a XQuery would be more appropriate but I didn't figure out the appropriate syntax yet. Basically I would need to extract the name information from the attached XML and populate these into a tabular structure such as shp or gdb table.
The desired layout would look like:
FeatureIdNameTypeISOLanguageCodeLanguageCodePrimaryNameIsoScriptCodeNameTextNotationAlphabetGeoActionTypeGeoView93e05831-25b5-4df2-b264-179c9b7914b2StandardNameENGEnglishTRUELatnPersian GulfLatinRemoveZAL93e05831-25b5-4df2-b264-179c9b7914b2StandardNameENGEnglishTRUELatnArabian GulfLatinAddZAL93e05831-25b5-4df2-b264-179c9b7914b2StandardNameARAArabicFALSEArabاÙ?Ø®Ù?Ù?ج اÙ?عربÙ?ArabicAddZAL00004153-3200-3c00-0000-000041dcf9acStandardNameUNDTransliterationTRUELatnIndian OceanLatin
00004153-3200-3c00-0000-000041dcf9acStandardNameZHOChineseFALSEHans�度�HanSimplified
00004153-3200-3c00-0000-000041dcf9acStandardNameZHOChineseFALSEHant�度�HanTraditional
00004153-3200-3c00-0000-000041dcf9acStandardNameENGEnglishFALSELatnIndian OceanLatin
00004153-3200-3c00-0000-000041dcf9acStandardNameFREFrenchFALSELatnOcéan IndienLatin
00004153-3200-3c00-0000-000041dcf9acStandardNameDEUGermanFALSELatnIndischer OzeanLatin
00004153-3200-3c00-0000-000041dcf9acStandardNameITAItalianFALSELatnOceano IndianoLatin
00004153-3200-3c00-0000-000041dcf9acStandardNameJPNJapaneseFALSEJpanã?¤ã?³ã??æ´?Japanese
00004153-3200-3c00-0000-000041dcf9acStandardNameKORKoreanFALSEKoreì�¸ë�?ì??Korean
…
00004153-3200-3c00-0000-000041dcf9acStandardNameRUSRussianFALSECyrlÐ?ндийÑ�кий Ð?кеанCyrillic
00004153-3200-3c00-0000-000041dcf9acStandardNameRUSRussianFALSELatnIndiyskiy OkeanLatin
…
00004436-3800-3c00-0000-0000434b2ce8 StandardNameDEUGermanTRUELatnJadebusenLatin
00004436-3800-3c00-0000-0000434b2ce8 AlternateNameDEUGermanFALSELatnOldoogrinneLatin
Each water area has its own feature id and this one is repeated for each name combination.
Could you suggest which approach is the most appropriate for doing this? Actually I would just need to explode each list (if there is one) and also the child lists in iterative way until all lists have been exploded.
Thank you!
Olivier