Android Question Error when parsing an xml file

rkmoray

Active Member
Licensed User
Longtime User
I have an xml file that I receive from a webservuce.
But when I run xml2 "PamaprsedData", I get an error and it crashes.
Here is the XML. Any and all help is appreciated.
<?xml version="1.0" encoding="UTF-8"?>
-<DataTable xmlns="http://tempuri.org/">
-<xs:schema xmlns="" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:xs="http://www.w3.org/2001/XMLSchema" id="NewDataSet">
-<xs:element msdata:UseCurrentLocale="true" msdata:MainDataTable="ReciptIndex" msdata:IsDataSet="true" name="NewDataSet">
-<xs:complexType>
-<xs:choice maxOccurs="unbounded" minOccurs="0">
-<xs:element name="ReciptIndex">
-<xs:complexType>
-<xs:sequence>
<xs:element name="Title" minOccurs="0" type="xs:string"/>
<xs:element name="ReceiptTicketItemIndex" minOccurs="0" type="xs:int"/>
<xs:element name="SerialNumber" minOccurs="0" type="xs:unsignedLong"/>
<xs:element name="PerformanceIndex" minOccurs="0" type="xs:int"/>
<xs:element name="TicketCategoryIndex" minOccurs="0" type="xs:int"/>
<xs:element name="ReceiptTicketItemIndex1" minOccurs="0" type="xs:int"/>
<xs:element name="ReceiptItemIndex" minOccurs="0" type="xs:int"/>
<xs:element name="CurtainTime" minOccurs="0" type="xs:dateTime"/>
<xs:element name="FilmIndex" minOccurs="0" type="xs:int"/>
<xs:element name="AuditoriumIndex" minOccurs="0" type="xs:int"/>
<xs:element name="TicketCatName" minOccurs="0" type="xs:string"/>
<xs:element name="TicketCatTypeIndex" minOccurs="0" type="xs:int"/>
<xs:element name="AudName" minOccurs="0" type="xs:string"/>
<xs:element name="ScheduleDate" minOccurs="0" type="xs:dateTime"/>
<xs:element name="Swapped" minOccurs="0" type="xs:unsignedInt"/>
<xs:element name="SwapReserved" minOccurs="0" type="xs:unsignedInt"/>
<xs:element name="SeatRowNumber" minOccurs="0" type="xs:unsignedInt"/>
<xs:element name="SeatName" minOccurs="0" type="xs:string"/>
<xs:element name="RowName" minOccurs="0" type="xs:string"/>
<xs:element name="RowScreenToProjection" minOccurs="0" type="xs:unsignedByte"/>
<xs:element name="RowQty" minOccurs="0" type="xs:unsignedByte"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
-<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
-<DocumentElement xmlns="">
-<ReciptIndex diffgr:id="ReciptIndex1" msdata:rowOrder="0">
<Title>xxxxxx</Title>
<ReceiptTicketItemIndex>xxx</ReceiptTicketItemIndex>
<SerialNumber>510</SerialNumber>
<PerformanceIndex>xxxx</PerformanceIndex>
<TicketCategoryIndex>xxx</TicketCategoryIndex>
<ReceiptTicketItemIndex1>2xx4</ReceiptTicketItemIndex1>
<ReceiptItemIndex>xx</ReceiptItemIndex>
<CurtainTime>2016-12-16T21:45:00-05:00</CurtainTime>
<FilmIndex>xx</FilmIndex>
<AuditoriumIndex>xx</AuditoriumIndex>
<TicketCatName>General</TicketCatName>
<TicketCatTypeIndex>9</TicketCatTypeIndex>
<AudName>AUD 5</AudName>
<ScheduleDate>2016-12-16T00:00:00-05:00</ScheduleDate>
</ReciptIndex>
</DocumentElement>
</diffgr:diffgram>
</DataTable>
 
Top