views:

33

answers:

1

The following is my XML file. i am parsing it with NSXMLParser. But parsing methods have not been called.

Any Solution ? Thanks.

<?xml version="1.0" encoding="windows-1252"?>
<typelokale>
  <post>
    <deptid>1</deptid>
    <department>Kontor</department>
  </post>
  <post>
    <deptid>2</deptid>
    <department>Butikk/Servering</department>
  </post>
  <post>
    <deptid>3</deptid>
    <department>Lager/produksjon</department>
  </post>
  <post>
    <deptid>4</deptid>
    <department>Kombinasjonslokale</department>
  </post>
  <post>
    <deptid>5</deptid>
    <department>Tomt</department>
  </post>
  <post>
    <deptid>8</deptid>
    <department>Investor</department>
  </post>
  <post>
    <deptid>9</deptid>
    <department>Parkeringsplass</department>
  </post>
  <post>
    <deptid>10</deptid>
    <department>Kjøpesenter</department>
  </post>
  <post>
    <deptid>12</deptid>
    <department>Skole/Undervisningsbygg</department>
  </post>
  <post>
    <deptid>17</deptid>
    <department>Andre</department>
  </post>
</typelokale>
A: 
          NSXML Parser does not support encoding="windows-1252".

It only support encoding="UTF8String".

Hardik Patel