in reply to A newbie XML and HTTP question.

jdtoronto,

The XML submitted by perl is not well-formed, hence the "malformed" error message.

It looks to me that all you need to do is close the 'campaign' element, ie <campaign action="6" /> (note the ' />').

Replies are listed 'Best First'.
Re^2: A newbie XML and HTTP question.
by jdtoronto (Prior) on Jul 12, 2005 at 20:05 UTC
    Exactly! I sat here and looked at it again for the umpteenth time in as many hours - and suddenly it dawned on me - now it works perfectly.

    Thanks!

      xmllint from the libxml2 project is really good for trouble-shooting possibly bad XML. I use it frequently when working on Petal templates which must be well-formed XML.

      -sam