How to search and remove elements with the same name
Questions about XML that are not covered by the other forums should go here.
-
- Posts: 1
- Joined: Fri Jan 26, 2018 12:42 pm
How to search and remove elements with the same name
Hi
Hopefully someone can help. I'm no expert with Xml.
I'm importing several xml docs into InDesign.
The problem I'm having is that there are several Elements with the same name, where I only need the first instance.
Below is the basic structure
Entry
Change Counrty
Address
Contact
Contact
Contact
Other information
Entry
Is there a way to search and remove the other elements of 'Contact' e.g Contact [2] other than manually deleting them.
As I say I'm no coder but would really appreciate the help if anyone can.
Big thanks
Pete
Hopefully someone can help. I'm no expert with Xml.
I'm importing several xml docs into InDesign.
The problem I'm having is that there are several Elements with the same name, where I only need the first instance.
Below is the basic structure
Entry
Change Counrty
Address
Contact
Contact
Contact
Other information
Entry
Is there a way to search and remove the other elements of 'Contact' e.g Contact [2] other than manually deleting them.
As I say I'm no coder but would really appreciate the help if anyone can.
Big thanks
Pete
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