I'm reading responses from UPnP Events which have the following format:
A SAX parser doesn't seem to like this, giving me the following error:
(ParseException) org.apache.harmony.xml.ExpatParser$ParseException: At line 1, column 4: not well-formed (invalid token). I notice that after <LastChange> until </LastChange> the lines are statements (?) within < and > characters.
Are these a particular format for which a parsing tool is already available, or do i need to write my own?
Guy
B4X:
NOTIFY / HTTP/1.1
HOST: 192.168.3.121:5656
CONTENT-TYPE: text/xml;charset="utf-8"
CONTENT-LENGTH: 1707
NT: upnp:event
NTS: upnp:propchange
SID: uuid:46b5bbcb-6b62-1e7d-9c38-da25b4b15c0f
SEQ: 0
<e:property>
<LastChange>
<Event xmlns="urn:schemas-upnp-org:metadata-1-0/AVT/">
<InstanceID val="0">
<TransportState val="NO_MEDIA_PRESENT"/>
<CurrentTrackDuration val="0:03:54"/>
</InstanceID>
</Event>
</LastChange>
</e:property>
A SAX parser doesn't seem to like this, giving me the following error:
(ParseException) org.apache.harmony.xml.ExpatParser$ParseException: At line 1, column 4: not well-formed (invalid token). I notice that after <LastChange> until </LastChange> the lines are statements (?) within < and > characters.
Are these a particular format for which a parsing tool is already available, or do i need to write my own?
Guy