Selecting the content of tags
Questions about XML that are not covered by the other forums should go here.
-
- Posts: 1
- Joined: Thu Feb 28, 2019 11:09 am
Selecting the content of tags
Hi! I am a relative new user of Oxygen xml editor, so I have a few questions.
In my master thesis I am analysing certain texts, and I wanted to mark terms with the tag <t>term</t>. I was wondering, if there is a way how I can select all the content that is marked with the tag and somehow export it?
Many thanks,
Klara
In my master thesis I am analysing certain texts, and I wanted to mark terms with the tag <t>term</t>. I was wondering, if there is a way how I can select all the content that is marked with the tag and somehow export it?
Many thanks,
Klara
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Selecting the content of tags
Hi,
You can use an XPath expression in the XPath toolbar (or XPath/XQuery Builder): This will highlight all t elements and also provide a list with their contents. You could right click in the list and save the result as XML, but I'm not sure how helpful that would be.
If you want an XML with all those elements, go to the XPath/XQuery Builder view (Window > Show view) switch in the combo from the toolbar from XPath to Saxon-PE XQuery and run this:
This will give the result in an XML file that has the "root" root element and has all the t elements from the document.
Regards,
Adrian
You can use an XPath expression in the XPath toolbar (or XPath/XQuery Builder):
Code: Select all
//t
If you want an XML with all those elements, go to the XPath/XQuery Builder view (Window > Show view) switch in the combo from the toolbar from XPath to Saxon-PE XQuery and run this:
Code: Select all
<root>
{//*:t}
</root>
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
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