XML Input - Dataset Output
Posted: Thu Oct 29, 2015 8:34 am
We are reading below XML file as below. The Last Column(CondoProjectName) has a special char.
After reading the XML input file, We are writing to a Dataset. The value in Output file for CondoProjectName is written as "^ZFoothills Addition"
If i change encoding from UTF-8 to ISO-8859-1 , The Data matches but we receive the file from external agencies.
We want to continue using UTF-8 and Data should match between XML and
Dataset. Please let me know if anybody faced similar issue.
Appreciate your help
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<typ:UCDPReceiveAppraisalRequest xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://receiveappraisal.company.com/schema/types">
<typ:CurrentFileSequenceNumber>1</typ:CurrentFileSequenceNumber>
<typ:LastFileSequenceNumber>0</typ:LastFileSequenceNumber>
<typ:DocumentFileIDRecordCount>1</typ:DocumentFileIDRecordCount>
<typ:SyntheticTestIndicator>true</typ:SyntheticTestIndicator>
<typ:RequestSubmitDateTime>2008-09-18T21:49:45</typ:RequestSubmitDateTime>
<typ:RequestBeginDateTime>2014-09- 18T19:18:33</typ:RequestBeginDateTime>
<typ:RequestEndDateTime>2006-08-19T13:27:14-04:00</typ:RequestEndDateTime>
<typ:VendorName>XYZ Support</typ:VendorName>
<typ:DocumentFiles>
<typ:DocumentFile>
<typ:DocumentFileID>FILEID-1</typ:DocumentFileID>
<typ:DocumentFileStatus>Successful</typ:DocumentFileStatus>
<typ:AppraisalRecordCount>1</typ:AppraisalRecordCount>
<typ:Appraisals>
<typ:Appraisal>
<typ:DocumentID>DOCID-1</typ:DocumentID>
<typ:DocumentType>2</typ:DocumentType>
<typ:SubmissionStatus>In Progress</typ:SubmissionStatus>
<typ:RawPropertyStreetAddress>1234 Any Street Drive</typ:RawPropertyStreetAddress>
<typ:RawPropertyUnitNumber>11</typ:RawPropertyUnitNumber>
<typ:RawPropertyCity>Vienna</typ:RawPropertyCity>
<typ:RawPropertyState>VA</typ:RawPropertyState>
<typ:RawPropertyZipCode>22102</typ:RawPropertyZipCode>
<typ:RawAppraiserLicenseNumber>string</typ:RawAppraiserLicenseNumber>
<typ:RawAppraiserStateNumber>string</typ:RawAppraiserStateNumber>
<typ:RawAppraiserCertificationNumber>string</typ:RawAppraiserCertificationNumber>
<typ:ScrubbedAppraiserLicenseNumber>string</typ:ScrubbedAppraiserLicenseNumber>
<typ:RawSupervisorAppraiserLicenseNumber>string</typ:RawSupervisorAppraiserLicenseNumber>
<typ:RawSupervisorCertificationNumber>string</typ:RawSupervisorCertificationNumber>
<typ:ScrubbedSupervisorAppraiserLicenseNumber>string</typ:ScrubbedSupervisorAppraiserLicenseNumber>
<typ:AppraisedValueOfSubjectProperty>1000.00000000000</typ:AppraisedValueOfSubjectProperty>
<typ:EffectiveDateOfAppraisal>2002-11-05-05:00</typ:EffectiveDateOfAppraisal>
<typ:AppraisalFormNumberType>Small Residential Income Property Appraisal Report</typ:AppraisalFormNumberType>
<typ:AssignmentType>Purchase</typ:AssignmentType>
<typ:AssignmentTypeOther>string</typ:AssignmentTypeOther>
<typ:PropertyRightsAppraised>Fee Simple</typ:PropertyRightsAppraised>
<typ:PropertyRightsAppraisedOther>string</typ:PropertyRightsAppraisedOther>
<typ:CondoProjectName>‘Foothills Addition</typ:CondoProjectName>
</typ:Appraisal>
</typ:Appraisals>
</typ:DocumentFile>
</typ:DocumentFiles>
</typ:UCDPReceiveAppraisalRequest>
If i change encoding from UTF-8 to ISO-8859-1 , The Data matches but we receive the file from external agencies.
We want to continue using UTF-8 and Data should match between XML and
Dataset. Please let me know if anybody faced similar issue.
Appreciate your help