The current version of DataMapper (0.9.1) contains to_xml methods that produce invalid (no declaration), not indented and weird (for collection of resources) XML.

There might be someone working on a better version (don’t know, didn’t get a response on my comment on the ticket), but if you need something useful now, you can use my monkeypatch: This is the code and the spec.

I didn’t feel like the following comment from the original to_xml_spec.rb was needed in my fix:

  #
  # ==== enterprisey XML
  #

Or was it?

5 Comments

  1. Oh yeah, DataMapper … I opened two tickets during last three days :) I hope it will be stable as soon as possible, I’m working on quite big projects using DataMapper.

  2. Bugs or improvement requests? And ever submitted a patch to DM?

  3. Just bugs for this time. I haven’t much time, so I haven’t done any patch yet.

  4. Jan, did your concern ever get cleared up?

    I know there was talk amongst the DM devs about changing over the ActiveResource-compatible XML.

  5. Not really. I was going to wait for someone to comment on that ticket.

Post a Comment

*
*