System.Xml.XmlException Message : '.', hexadecimal value 0x00, is an invalid character. Line 2, position 1.

Based on the error I'm assuming I'm looking to remove any periods, but there does not seem to be any within the XML.

<?xml version="1.0" encoding="UTF-8"?>
<root>
    <purchase_order>
        <po_num>P003013607</po_num>
        <CreatedBy>tstover</CreatedBy>
        <vend_num>V0R2907</vend_num>
        <order_date>2019-05-10</order_date>
        <po_line>1</po_line>
        <po_release>0</po_release>
        <item>100147</item>
        <description>NULL</description>
        <u_m>EA</u_m>
        <qty_ordered>2</qty_ordered>
        <whse>NA</whse>
        <ship_code>NULL</ship_code>
        <terms_code>001</terms_code>
        <stat>P</stat>
        <po_cost>0</po_cost>
        <type>R</type>
        <plan_cost>0</plan_cost>
        <due_date>2019-05-27</due_date>
        <qty_received>0</qty_received>
        <qty_returned>0</qty_returned>
        <tax_code1>NULL</tax_code1>
        <req_num>100028</req_num>
    </purchase_order>
</root>

0 Answers