Skip to main content
Question

fdo xml data types


I am using the free FDO provider in AutoCAD Civil 3D and connecting to a XML document (sample listed below) but when the XML is read in and flattened the OS_TOPO_TOID element is converted to a number rather than remaining a string; how can I get the XML reader to keep the OS_TOPO_TOID as a string?

 

 

 <Row>

 

  <OS_TOPO_TOID>0001000012320820</OS_TOPO_TOID>

 

  <OS_TOPO_VERSION>4</OS_TOPO_VERSION>

 

  <BHA_ProcessDate>2014-02-12</BHA_ProcessDate>

 

  <TileRef>SX99SW</TileRef>

 

  <AbsHMin>69.4</AbsHMin>

 

  <AbsH2>73.7</AbsH2>

 

  <AbsHMax>73.9</AbsHMax>

 

  <RelH2>4.3</RelH2>

 

  <RelHMax>4.5</RelHMax>

 

  <BHA_Conf>99</BHA_Conf>

 

 </Row>

3 replies

fmelizard
Safer
Forum|alt.badge.img+19
  • Safer
  • January 5, 2015
Hi,

 

I dont think you can force the reader, but in your ws you can use the StringFormatter to convert it into string. However this is also not really necessary since FME will convert it into string OS_TOPO_TOID (encoded: utf-16).

 

 

Itay

 

 

  • Author
  • January 5, 2015
Itay,

 

 

As I'm using the free FDO provider I don't have access to the Workbench or any workspaces.

 

 

The problem is that the XML reader is not reading the OS_TOPO_TOID as a string; it would seem to be converting it to a number and stripping off the leading zeros.

 

 

Gil

fmelizard
Safer
Forum|alt.badge.img+19
  • Safer
  • January 5, 2015
Hi Gil,

 

Ok dont have any experience with the application you are using, so couldnt assist you anymore about it. Maybe you beter ask this question in the right forum?

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings