estoy intentando leer un archivo xml el cual esta dividido en dos partes, es el siguiente:
<?xml version="1.0" encoding="utf-8"?>
<CPU_ConfigData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<VersTablaCnf>
<VersTabla>3</VersTabla>
<IdInstalacion>0</IdInstalacion>
<EdDatosCnf>3</EdDatosCnf>
</VersTablaCnf>
<SysCnf>
<AddressMicroA>0</AddressMicroA>
<AddressMicroB>32768</AddressMicroB>
<CnfSopAddress>8192</CnfSopAddress>
</SysCnf>
<AppsCnf>
<NumApps>2</NumApps>
<AppCnf>
<sAppCnf>
<SafeOutputMask>AAAAAAAAAAAAAAAAAAA=</SafeOutputMask>
<AuxOutputMask>
<unsignedInt>512</unsignedInt>
<unsignedInt>512</unsignedInt>
<unsignedInt>512</unsignedInt>
<unsignedInt>512</unsignedInt>
<unsignedInt>512</unsignedInt>
<unsignedInt>512</unsignedInt>
<unsignedInt>512</unsignedInt>
<unsignedInt>512</unsignedInt>
<unsignedInt>512</unsignedInt>
<unsignedInt>512</unsignedInt>
<unsignedInt>512</unsignedInt>
<unsignedInt>512</unsignedInt>
<unsignedInt>512</unsignedInt>
<unsignedInt>512</unsignedInt>
</AuxOutputMask>
</sAppCnf>
<sAppCnf>
<SafeOutputMask>AAAAAAAAAAAAAAAAAAA=</SafeOutputMask>
<AuxOutputMask>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
</AuxOutputMask>
</sAppCnf>
<sAppCnf>
<SafeOutputMask>AAAAAAAAAAAAAAAAAAA=</SafeOutputMask>
<AuxOutputMask>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
</AuxOutputMask>
</sAppCnf>
</AppCnf>
</AppsCnf>
<BusLocalCnf>
<SlotCnf>
<sSlotCnf>
<DeviceType>None</DeviceType>
<DeviceFunction>Device</DeviceFunction>
<DeviceAddress>0</DeviceAddress>
</sSlotCnf>
<sSlotCnf>
<DeviceType>None</DeviceType>
<DeviceFunction>Device</DeviceFunction>
<DeviceAddress>1</DeviceAddress>
</sSlotCnf>
<sSlotCnf>
<DeviceType>None</DeviceType>
<DeviceFunction>Device</DeviceFunction>
<DeviceAddress>2</DeviceAddress>
</sSlotCnf>
<sSlotCnf>
<DeviceType>None</DeviceType>
<DeviceFunction>Device</DeviceFunction>
<DeviceAddress>3</DeviceAddress>
</sSlotCnf>
<sSlotCnf>
<DeviceType>CPU</DeviceType>
<DeviceFunction>Device</DeviceFunction>
<DeviceAddress>4</DeviceAddress>
</sSlotCnf>
<sSlotCnf>
<DeviceType>None</DeviceType>
<DeviceFunction>Device</DeviceFunction>
<DeviceAddress>5</DeviceAddress>
</sSlotCnf>
<sSlotCnf>
<DeviceType>None</DeviceType>
<DeviceFunction>Device</DeviceFunction>
<DeviceAddress>6</DeviceAddress>
</sSlotCnf>
<sSlotCnf>
<DeviceType>None</DeviceType>
<DeviceFunction>Device</DeviceFunction>
<DeviceAddress>7</DeviceAddress>
</sSlotCnf>
<sSlotCnf>
<DeviceType>None</DeviceType>
<DeviceFunction>Device</DeviceFunction>
<DeviceAddress>8</DeviceAddress>
</sSlotCnf>
<sSlotCnf>
<DeviceType>None</DeviceType>
<DeviceFunction>Device</DeviceFunction>
<DeviceAddress>9</DeviceAddress>
</sSlotCnf>
<sSlotCnf>
<DeviceType>None</DeviceType>
<DeviceFunction>Device</DeviceFunction>
<DeviceAddress>10</DeviceAddress>
</sSlotCnf>
<sSlotCnf>
<DeviceType>None</DeviceType>
<DeviceFunction>Device</DeviceFunction>
<DeviceAddress>11</DeviceAddress>
</sSlotCnf>
<sSlotCnf>
<DeviceType>None</DeviceType>
<DeviceFunction>Device</DeviceFunction>
<DeviceAddress>12</DeviceAddress>
</sSlotCnf>
<sSlotCnf>
<DeviceType>None</DeviceType>
<DeviceFunction>Device</DeviceFunction>
<DeviceAddress>13</DeviceAddress>
</sSlotCnf>
</SlotCnf>
<GpibCycleTime>50</GpibCycleTime>
<GpibTimeout>5</GpibTimeout>
</BusLocalCnf>
<UartsCnf>
<NumUarts>1</NumUarts>
<ArrayUarts>
<sUartCnf>
<IdUart>1</IdUart>
<BaudRate>57600</BaudRate>
<Parity>0</Parity>
<StopBits>0</StopBits>
<FlowControl>0</FlowControl>
<DataBits>8</DataBits>
<TransportProtocol>0</TransportProtocol>
</sUartCnf>
<sUartCnf>
<IdUart>0</IdUart>
<BaudRate>0</BaudRate>
<Parity>0</Parity>
<StopBits>0</StopBits>
<FlowControl>0</FlowControl>
<DataBits>0</DataBits>
<TransportProtocol>0</TransportProtocol>
</sUartCnf>
<sUartCnf>
<IdUart>0</IdUart>
<BaudRate>0</BaudRate>
<Parity>0</Parity>
<StopBits>0</StopBits>
<FlowControl>0</FlowControl>
<DataBits>0</DataBits>
<TransportProtocol>0</TransportProtocol>
</sUartCnf>
<sUartCnf>
<IdUart>0</IdUart>
<BaudRate>0</BaudRate>
<Parity>0</Parity>
<StopBits>0</StopBits>
<FlowControl>0</FlowControl>
<DataBits>0</DataBits>
<TransportProtocol>0</TransportProtocol>
</sUartCnf>
<sUartCnf>
<IdUart>0</IdUart>
<BaudRate>0</BaudRate>
<Parity>0</Parity>
<StopBits>0</StopBits>
<FlowControl>0</FlowControl>
<DataBits>0</DataBits>
<TransportProtocol>0</TransportProtocol>
</sUartCnf>
</ArrayUarts>
</UartsCnf>
<DpCnf>
<DPRAM0_NumChannels>2</DPRAM0_NumChannels>
<DPRAM1_NumChannels>2</DPRAM1_NumChannels>
</DpCnf>
<RoutingTable>
<NumRoutes>6</NumRoutes>
<ArrayRoutes>
<sRoute>
<OrigenAdd>65535</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>QVBQMAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>32768</DestinoAdd>
<MailBoxId>RFBSQU0xMAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>65535</OrigenAdd>
<DestinoAdd>8192</DestinoAdd>
<MailBoxId>RFBSQU0wMAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>65535</OrigenAdd>
<DestinoAdd>12</DestinoAdd>
<MailBoxId>QVBQMQAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>12</OrigenAdd>
<DestinoAdd>16397</DestinoAdd>
<MailBoxId>RFBSQU0wMQA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>12</OrigenAdd>
<DestinoAdd>10</DestinoAdd>
<MailBoxId>Q09NMQAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
</ArrayRoutes>
</RoutingTable>
<CrcInstance>
<CRCp>0</CRCp>
</CrcInstance>
</CPU_ConfigData><?xml version="1.0" encoding="utf-8"?>
<CPU_ConfigData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<VersTablaCnf>
<VersTabla>3</VersTabla>
<IdInstalacion>0</IdInstalacion>
<EdDatosCnf>3</EdDatosCnf>
</VersTablaCnf>
<SysCnf>
<AddressMicroA>32768</AddressMicroA>
<AddressMicroB>0</AddressMicroB>
<CnfSopAddress>8192</CnfSopAddress>
</SysCnf>
<AppsCnf>
<NumApps>2</NumApps>
<AppCnf>
<sAppCnf>
<SafeOutputMask>AAAAAAAAAAAAAAAAAAA=</SafeOutputMask>
<AuxOutputMask>
<unsignedInt>512</unsignedInt>
<unsignedInt>512</unsignedInt>
<unsignedInt>512</unsignedInt>
<unsignedInt>512</unsignedInt>
<unsignedInt>512</unsignedInt>
<unsignedInt>512</unsignedInt>
<unsignedInt>512</unsignedInt>
<unsignedInt>512</unsignedInt>
<unsignedInt>512</unsignedInt>
<unsignedInt>512</unsignedInt>
<unsignedInt>512</unsignedInt>
<unsignedInt>512</unsignedInt>
<unsignedInt>512</unsignedInt>
<unsignedInt>512</unsignedInt>
</AuxOutputMask>
</sAppCnf>
<sAppCnf>
<SafeOutputMask>AAAAAAAAAAAAAAAAAAA=</SafeOutputMask>
<AuxOutputMask>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
</AuxOutputMask>
</sAppCnf>
<sAppCnf>
<SafeOutputMask>AAAAAAAAAAAAAAAAAAA=</SafeOutputMask>
<AuxOutputMask>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
<unsignedInt>0</unsignedInt>
</AuxOutputMask>
</sAppCnf>
</AppCnf>
</AppsCnf>
<BusLocalCnf>
<SlotCnf>
<sSlotCnf>
<DeviceType>None</DeviceType>
<DeviceFunction>Device</DeviceFunction>
<DeviceAddress>15</DeviceAddress>
</sSlotCnf>
<sSlotCnf>
<DeviceType>None</DeviceType>
<DeviceFunction>Device</DeviceFunction>
<DeviceAddress>14</DeviceAddress>
</sSlotCnf>
<sSlotCnf>
<DeviceType>None</DeviceType>
<DeviceFunction>Device</DeviceFunction>
<DeviceAddress>13</DeviceAddress>
</sSlotCnf>
<sSlotCnf>
<DeviceType>None</DeviceType>
<DeviceFunction>Device</DeviceFunction>
<DeviceAddress>12</DeviceAddress>
</sSlotCnf>
<sSlotCnf>
<DeviceType>CPU</DeviceType>
<DeviceFunction>Device</DeviceFunction>
<DeviceAddress>11</DeviceAddress>
</sSlotCnf>
<sSlotCnf>
<DeviceType>None</DeviceType>
<DeviceFunction>Device</DeviceFunction>
<DeviceAddress>10</DeviceAddress>
</sSlotCnf>
<sSlotCnf>
<DeviceType>None</DeviceType>
<DeviceFunction>Device</DeviceFunction>
<DeviceAddress>9</DeviceAddress>
</sSlotCnf>
<sSlotCnf>
<DeviceType>None</DeviceType>
<DeviceFunction>Device</DeviceFunction>
<DeviceAddress>8</DeviceAddress>
</sSlotCnf>
<sSlotCnf>
<DeviceType>None</DeviceType>
<DeviceFunction>Device</DeviceFunction>
<DeviceAddress>7</DeviceAddress>
</sSlotCnf>
<sSlotCnf>
<DeviceType>None</DeviceType>
<DeviceFunction>Device</DeviceFunction>
<DeviceAddress>6</DeviceAddress>
</sSlotCnf>
<sSlotCnf>
<DeviceType>None</DeviceType>
<DeviceFunction>Device</DeviceFunction>
<DeviceAddress>5</DeviceAddress>
</sSlotCnf>
<sSlotCnf>
<DeviceType>None</DeviceType>
<DeviceFunction>Device</DeviceFunction>
<DeviceAddress>4</DeviceAddress>
</sSlotCnf>
<sSlotCnf>
<DeviceType>None</DeviceType>
<DeviceFunction>Device</DeviceFunction>
<DeviceAddress>3</DeviceAddress>
</sSlotCnf>
<sSlotCnf>
<DeviceType>None</DeviceType>
<DeviceFunction>Device</DeviceFunction>
<DeviceAddress>2</DeviceAddress>
</sSlotCnf>
</SlotCnf>
<GpibCycleTime>50</GpibCycleTime>
<GpibTimeout>5</GpibTimeout>
</BusLocalCnf>
<UartsCnf>
<NumUarts>1</NumUarts>
<ArrayUarts>
<sUartCnf>
<IdUart>1</IdUart>
<BaudRate>57600</BaudRate>
<Parity>0</Parity>
<StopBits>0</StopBits>
<FlowControl>0</FlowControl>
<DataBits>8</DataBits>
<TransportProtocol>0</TransportProtocol>
</sUartCnf>
<sUartCnf>
<IdUart>0</IdUart>
<BaudRate>0</BaudRate>
<Parity>0</Parity>
<StopBits>0</StopBits>
<FlowControl>0</FlowControl>
<DataBits>0</DataBits>
<TransportProtocol>0</TransportProtocol>
</sUartCnf>
<sUartCnf>
<IdUart>0</IdUart>
<BaudRate>0</BaudRate>
<Parity>0</Parity>
<StopBits>0</StopBits>
<FlowControl>0</FlowControl>
<DataBits>0</DataBits>
<TransportProtocol>0</TransportProtocol>
</sUartCnf>
<sUartCnf>
<IdUart>0</IdUart>
<BaudRate>0</BaudRate>
<Parity>0</Parity>
<StopBits>0</StopBits>
<FlowControl>0</FlowControl>
<DataBits>0</DataBits>
<TransportProtocol>0</TransportProtocol>
</sUartCnf>
<sUartCnf>
<IdUart>0</IdUart>
<BaudRate>0</BaudRate>
<Parity>0</Parity>
<StopBits>0</StopBits>
<FlowControl>0</FlowControl>
<DataBits>0</DataBits>
<TransportProtocol>0</TransportProtocol>
</sUartCnf>
</ArrayUarts>
</UartsCnf>
<DpCnf>
<DPRAM0_NumChannels>2</DPRAM0_NumChannels>
<DPRAM1_NumChannels>2</DPRAM1_NumChannels>
</DpCnf>
<RoutingTable>
<NumRoutes>6</NumRoutes>
<ArrayRoutes>
<sRoute>
<OrigenAdd>65535</OrigenAdd>
<DestinoAdd>32768</DestinoAdd>
<MailBoxId>QVBQMAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>32768</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>RFBSQU0xMAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>65535</OrigenAdd>
<DestinoAdd>8192</DestinoAdd>
<MailBoxId>RFBSQU0wMAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>65535</OrigenAdd>
<DestinoAdd>32780</DestinoAdd>
<MailBoxId>QVBQMQAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>32780</OrigenAdd>
<DestinoAdd>16397</DestinoAdd>
<MailBoxId>RFBSQU0wMQA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>32780</OrigenAdd>
<DestinoAdd>32778</DestinoAdd>
<MailBoxId>Q09NMQAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
<sRoute>
<OrigenAdd>0</OrigenAdd>
<DestinoAdd>0</DestinoAdd>
<MailBoxId>AAAAAAAAAAA=</MailBoxId>
</sRoute>
</ArrayRoutes>
</RoutingTable>
<CrcInstance>
<CRCp>0</CRCp>
</CrcInstance>
</CPU_ConfigData>
Es decir yo quiero leer hasta que me encuentre <?xml version=...
Por ahora mi código es el siguiente:
public static Object LoadConfigFromXML(string psConfigFilePath, XmlSerializer loSerializerInstance)
{
Object loReturn = null;
// Lee la configuración a partir del fichero
try
{
FileStream loReadFileECCEStream = new FileStream(psConfigFilePath, FileMode.Open, FileAccess.Read, FileShare.Read);
XmlSerializer loECCESerializerInstance = loSerializerInstance;
loReturn = loECCESerializerInstance.Deserialize(loReadFileECCEStream);
// Cleanup
loReadFileECCEStream.Close();
return loReturn;
}
catch (Exception)
{
return loReturn;
}
}
Me esta dando el error siguiente:
$exception {"Error en el documento XML (363, 20)."} System.InvalidOperationException
InnerException {"Declaración XML inesperada. La declaración XML debe ser el primer nodo del documento y no pueden aparecer espacios en blanco delante. línea 363, posición 20."} System.Exception {System.Xml.XmlException}
Donde loSerializerInstance = new XmlSerializer(typeof(CPU_ConfigData));
Alguien sabe como puedo leer el archivo hasta que se encuentre ?xml y cerrar el archivo en ese punto? Gracias de antemano por la ayuda