This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Converting Scala XML to DOM

4 replies
mailleux
Joined: 2008-08-23,
User offline. Last seen 4 years 7 weeks ago.
Is there a simple way to go from scala XML objects to DOM. I can convert XML to string and then parse it on a DOM Builder. But I wondered if there was a simple and elegant way to convert to DOM.

Thanks,

 Thomas
Stepan Koltsov
Joined: 2008-12-20,
User offline. Last seen 42 years 45 weeks ago.
Re: Converting Scala XML to DOM

On Fri, Aug 14, 2009 at 05:00, Thomas Sant Ana wrote:
> Is there a simple way to go from scala XML objects to DOM. I can convert XML
> to string and then parse it on a DOM Builder. But I wondered if there was a
> simple and elegant way to convert to DOM.

I did same task recently:

http://gist.github.com/167566

Scala standard library lacks of such tool.

S.

normen.mueller
Joined: 2008-10-31,
User offline. Last seen 3 years 8 weeks ago.
Re: Converting Scala XML to DOM

On Aug 14, 2009, at 3:18 AM, Stepan Koltsov wrote:
> I did same task recently:
>
> http://gist.github.com/167566
>
> Scala standard library lacks of such tool.

Nice, but where does 'XmlHelpers' comes from?

Cheers,
--
Normen Müller

Stepan Koltsov
Joined: 2008-12-20,
User offline. Last seen 42 years 45 weeks ago.
Re: Converting Scala XML to DOM

S.

On Sat, Aug 15, 2009 at 15:19, Normen
Müller wrote:
> On Aug 14, 2009, at 3:18 AM, Stepan Koltsov wrote:
>>
>> I did same task recently:
>>
>> http://gist.github.com/167566
>>
>> Scala standard library lacks of such tool.
>
> Nice, but where does 'XmlHelpers' comes from?
>
> Cheers,
> --
> Normen Müller
>
>

normen.mueller
Joined: 2008-10-31,
User offline. Last seen 3 years 8 weeks ago.
Re: Converting Scala XML to DOM

On Aug 15, 2009, at 1:24 PM, Stepan Koltsov wrote:
> Fixed: http://gist.github.com/167566

Cool! Thanks!

Cheers,
--
Normen Müller

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland