Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
339 views
in Technique[技术] by (71.8m points)

xml - How to select first and next value from element XPATH

I have this element in XML:

<ImageURL>https://ganjaseeds.cz/wp-content/uploads/2020/01/amnesia_3.jpg|https://ganjaseeds.cz/wp-content/uploads/2020/01/file_42_23-scaled.jpg</ImageURL>

How can I select first value before "|", then second value after "|", then next value if exist.

I try:

ImageURL[!@]|[1]
ImageURL[!@]|[2]
ImageURL[!@]|[3]

But this option is not function

question from:https://stackoverflow.com/questions/65946870/how-to-select-first-and-next-value-from-element-xpath

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...