how i mislay specific tags controlling linq xml f#?
i have an xml file, i open f# this:
let bookmarks(xmlfile:string) =
let xml = xdocument.load(xmlfile)
once i have xdocument i need navigate controlling linq xml mislay specific tags. biased fortitude is:
let xname (tag:string) = xname.get(tag)
let tagurl (tag:xelement) = let charge = tag.attribute(xname "href")
attribute.value
let bookmarks(xmlfile:string) =
let xml = xdocument.load(xmlfile)
xml.elements <| xname "a" |> seq.map(tagurl)
how i mislay specific tags xml file?
Comments
Post a Comment