Skip to content
Discussion options

You must be logged in to vote

It seems like that the unclosed link element is treated as an empty element as in:

<link /> https://example.com/etc/um_innervation_painfully.dump/index/

This means that the link you are looking for is a child to the <item> element.

To still extract the link you could do the following:

  1. Get all text contents of the item and split it by the new line character, which gives you a list of texts.
  2. Find the correct item (or index) in the list, that contains the link you're looking for.
var link = release
    .text() // the all text contents
    .split("\n")[4] // split the text by new line character and select the 5th (zero based) line
    .trim() // remove the whitespace around that line
    
c…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by dynabler
Comment options

You must be logged in to vote
2 replies
@philippta
Comment options

@dynabler
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants