When I use C# (with appropriate modifications), the code seems to work just fine.

Because there's yet another hidden implicit conversion ;) .

1
new XAttribute(XName.op_Implicit "xmlns", "gptg:PMSA:gptg.net")

PS: Have a look at the conversion operator: [link:cs.hubfs.net]

By on 2/6/2010 5:56 AM ()

Thanks - that should have been my first guess. :-)

--Don

By on 2/9/2010 5:54 AM ()

Arghh... :-)

My attempt to insert the code appears to have generated garbage. I'll try again without the editor help.

let gptg : XNamespace = XNamespace.op_Implicit( "gptg:PMSA:gptg.net")

let makeBaseDocument (docName : string) =

let elt = new XElement(gptg + docName,

new XAttribute("xmlns", "gptg:PMSA:gptg.net"))

elt

By on 2/6/2010 2:37 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