To Specify an XML Format File
Some users want to be able to specify an XML formatted file as input for the domain list. This procedure specifies a domain list to be added but will replace the XML file normally created by Bentley Geospatial Administrator with one provided by the user.
- Create a domain entry just as you normally would, but do not add any entries.
-
Create your XML file using a format as shown below.
<?xml version="1.0" encoding="utf-16"?> <DomainListDef name="myDomainList1" numColumns="2" genFile="myDomainList1.xml"> <domainRow col1="ABC" col2="ABC-123" /> <domainRow col1="DEF" col2="DEF-456" /> <domainRow col1="GHI" col2="GHI-789" /> </DomainListDef>
- In the Files section of your workspace, add a file category (name is not important).
- Select the newly created file category, then select xml\domains as shown. and then select the XML file, change the destination directory to
- For the feature property, select the domain reference just as you would normally for a named domain list, being sure to update the # cols accordingly.
- Export and run workspace.