We don't have a proxy for XMLSerializer, but you can write one quickly:

1
2
3
4
type XMLSerializer [<Inline "new XMLSerializer()">] () =

    [<Inline "$this.serializeToString($elt)">]
    member this.SerializeToString(elt: Dom.Element) = X<string>

and then use it just like you would in JavaScript:

1
2
3
4
JQuery.Get("folder/mydrawing.svg", fun data ->
    let svg = XMLSerializer().SerializeToString(data?documentElement)
    JQuery.Of("#mysvgdiv").Append(svg) |> ignore
) |> ignore
By on 3/21/2016 1:52 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper