combine (concat) two XPATH (path(.) and the text())
Questions about XML that are not covered by the other forums should go here.
-
- Posts: 30
- Joined: Wed Feb 14, 2018 3:27 pm
combine (concat) two XPATH (path(.) and the text())
Post by mariomueller »
Hi all,
I got two XPATH wich I which to concat
You can use the XML on https://www.w3schools.com/xml/books.xml
First XPATH gives back the Path of the nodes
Second XPATH gives back values
Is it possible to concat the results of both XPATH?
Many Thanks
Regards
Mario
I got two XPATH wich I which to concat
You can use the XML on https://www.w3schools.com/xml/books.xml
First XPATH gives back the Path of the nodes
Code: Select all
/bookstore/book/author/path(.)
Code: Select all
/bookstore/book/author/text()
Many Thanks
Regards
Mario
-
- Posts: 96
- Joined: Wed Feb 09, 2005 8:57 am
Re: combine (concat) two XPATH (path(.) and the text())
You mean something this?
Code: Select all
/bookstore/book/author/(path() || text())
-
- Posts: 30
- Joined: Wed Feb 14, 2018 3:27 pm
Re: combine (concat) two XPATH (path(.) and the text())
Post by mariomueller »
Hi,
thanks. Works fine!
Regards
Mario
thanks. Works fine!
Regards
Mario
Return to “General XML Questions”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service