Hi!My goal is to geocode postcode with or without space inside : X0X0X0 or X0X 0X0I'm using ArcGIS 10.0My reference table on which I'm building the geocoder has the postcode field formatted without space : X0X0X0I've tried 4 different approach : - 1 - XML Zone Section : the following geocode X0X0X0 properly, but doesn't work with space X0X 0X0from here http://forums.arcgis.com/threads/22799-Customize-address-locators-in-ArcGIS-10 I tried the following... without success... <def name="GenZIP"> <alt ref="Postcode" /> </def> <def name="Postcode"> <alt> <elt ref="PC_A" weight="50"/> <elt ref="PC_B" pre_separator="optional" weight="50"/> </alt> </def> <def name="PC_A"> <alt>`[a-zA-Z][0-9][a-zA-Z]`</alt> </def> <def name="PC_B"> <alt>`[0-9][a-zA-Z][0-9]`</alt> </def>
- 2 - XML Zone Section : the following geocode X0X0X0 properly, but doesn't work with space X0X 0X0Note that the white space bellow between bracket is writen as follow   ; <def name="GenZIP"> <alt ref="Postcode" /> </def> <def name="Postcode"> <alt> <alt>`[a-zA-Z][0-9][a-zA-Z][0-9][a-zA-Z][0-9]`</alt> <alt>`[a-zA-Z][0-9][a-zA-Z][ ][0-9][a-zA-Z][0-9]`</alt> </alt> </def>
- 3 - Alias-name tableIt work well... until you publish your service on ArcGIS Server 😕 Then it looses all reference to any Alias-Name table. ESRI says you need to move your alias names into the xml when you publish it.http://resources.arcgis.com/en/help/main/10.1/index.html#//00sq000000sr000000- 4 - XML alias_listDefining an alias_list in the Aliases section worked as well. The only major problem is that adding all postal code for 1 province made the XML file reach about 12MB. Editing, saving, loading, creating geocoder, etc.... every single task now takes for ever to accomplish because of the file size. And I didn't even think about adding our street-name and place-name alias tables to it.This is absolutly not an option.You would think that storing this kind for huge alias_list in a database would be common sense... but not with ArcGIS SERVER (Ironic isn't it? I guess not)- 5 -So I'm back to step - 1 -... with trying to figure out how to geocode a postcode with a space using the XML and some regular expression. They're must be a way to make it work. I just can't figure it out.Any hint would be appreciated.