Re: Parse XML that isn't well formed

Hi

looking at the xml that you have presented, there is no root element to
the document - this is why the xml is being rejected - you can only have
a single root element in the document - you could try something like
this:

<?xml version="1.0" encoding="UTF-8"?> http://myserver.edu/data/ myserver.edu /storage/data/results/ hadcm3l_00012_00000118_0 hadcm3l_00012_00000118_0_6.zip 5154055 485600296bb601ab4a3d1d49a9fb1c86 hadcm3l_00012_00000118_0_7.zip 5153055 36a600296cb60229a3d1d49a9fb1a10

If all the files that you are trying are similar to the set up that you
have demonstrated then this could be the root cause. When fixed you
should then be able to use whichever xml parser you want.

HTH

Clive

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs