pidf parser problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I got this error:
'{urn:ietf:params:xml:ns:pidf}tuple': This element is not expected

when parsing this xml document:

<?xml version="1.0" encoding="UTF-8"?>
<presence xmlns="urn:ietf:params:xml:ns:pidf" xmlns:fl="com.imgtec.flow" entity="sip:testuser at domain.com">
  <fl:device-list>
    <fl:url sequence="1" type="application/vnd.imgtec.com.devices+xml">uri</fl:url>
  </fl:device-list>
  <tuple xmlns="urn:ietf:params:xml:ns:pidf" xmlns:agp-pidf="urn:ag-projects:xml:ns:pidf" id="ID-668234b9-eaf1-447a-830b-4cb1374010e5">
    <status>
      <basic>open</basic>
      <agp-pidf:extended>available</agp-pidf:extended>
    </status>
    <agp-pidf:device-info id="urn:uuid:668234b9-eaf1-447a-830b-4cb1374010e5"/>
    <contact priority="0.0">sip%3Atestuser1%40domai.com%3Bgr%3Durn%3Auuid%3A668234b9-eaf1-447a-830b-4cb1374010e5</contact>
    <timestamp>2013-04-11T13:41:27.687658+12:00</timestamp>
  </tuple>
  <dm:person xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model" xmlns:rpid="urn:ietf:params:xml:ns:pidf:rpid" id="ID-40e23d03258ee4c62670c5c1dc373ba3">
    <rpid:time-offset>720</rpid:time-offset>
    <dm:timestamp>2013-04-11T13:41:27.687891+12:00</dm:timestamp>
  </dm:person>
  <dm:device xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model" id="ldarzifq">
    <dm:deviceID>urn:uuid:668234b9-eaf1-447a-830b-4cb1374010e5</dm:deviceID>
    <dm:note xml:lang="en">Powered by sipsimple 0.34.0</dm:note>
    <dm:timestamp>2013-04-11T13:41:27.688134+12:00</dm:timestamp>
  </dm:device>
</presence>

The above document seems to conform to RFC3863. Is this a parser error?

Regards,

Alllen

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20130411/70b676f0/attachment-0001.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux