On 20 Nov 2008, at 10:56, Jarl Friis wrote:
> > Thanks for the reply. > > Frederick Cheung <[EMAIL PROTECTED]> writes: > >> On 19 Nov 2008, at 13:07, Jarl Friis wrote: >> >>> >>> Hi. >>> >>> I am working on a webservice producing xml content, In my rails >>> functional test I would like to assert that this generated xml >>> (@reponse.body) conforms to a specific XSD. >>> >>> What is the best approach to do this? >>> >> Dunno about best approach but I recently did something along those >> lines (in this particular case I was generating xml to send to a >> webservice rather than your way round, but I don't think that's >> relevant) >> in the end I just popened xmllint and piped my xml in. > > Cool, but xmllint only validates against a DTD, right? I am interested > in (a more strict) validation against a XSD. Does both as far as I know ( I only had an xsd anyway) Fred > > > Jarl > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---