Parsing a UTF-16 encoded xml file in ruby

Posted by Matthew Toohey on Stack Overflow See other posts from Stack Overflow or by Matthew Toohey
Published on 2010-05-01T01:10:12Z Indexed on 2010/05/01 1:17 UTC
Read the original article Hit count: 336

Filed under:
|
|
|
|

Hello I've been trying to parse a UTF-16 encoded xml file in Ruby (1.8.7), and I can't seem to find how to do it by searching (google and stack overflow) Here's the xml file url: http://www.abc.net.au/triplej/feeds/playout/triplejsydneyplayout.xml?_5366

Getting the xml string from Net::HTTP and passing it to REXML, then calling logger.info xmlDoc.inspect produces: <UNDEFINED> ... </>

Any ideas?

Cheers

© Stack Overflow or respective owner

Related posts about ruby

Related posts about Xml