Search found 6 matches

by bee123
Tue Sep 11, 2018 3:08 pm
Forum: General XML Questions
Topic: delete duplicate elements
Replies: 1
Views: 3158

delete duplicate elements

Hello, I have a large file and have found that some elements are in it twice, now I would like to delete the duplicates. any ideas what I could do? Would appreciate any help! The xml looks like this: <Toptag> <text coordinates="" country="" date="yyyy-mm-dd" lang="...
by bee123
Wed Jan 17, 2018 2:59 pm
Forum: General XML Questions
Topic: Add attribute with value
Replies: 0
Views: 3092

Add attribute with value

Hello, I have several files where I need to add an attribute with values. I have a file that looks similar to this: <text id="124" title="abc" start="1"> <text id="125" title="xyz" start="4"> <text id="126" title="zgh" s...
by bee123
Wed Jul 12, 2017 2:26 pm
Forum: General XML Questions
Topic: Adding an id-attribute to element
Replies: 6
Views: 8154

Re: Adding an id-attribute to element

Thank you! That works wonderfully!

What would I have to change to put a word in front of the numbers? The first id would look like id=abc01.

Thanks again
by bee123
Wed Jul 12, 2017 11:53 am
Forum: General XML Questions
Topic: Adding an id-attribute to element
Replies: 6
Views: 8154

Adding an id-attribute to element

Hello,
I've got another newbie question.
How can I add an id-attribute with consecutive numbers in it in my xml.file.

It should look something like that:

<text id='1'>
<text id='2'>
<text id='3'>
<text id='4'>



Thank you!
by bee123
Thu Dec 22, 2016 2:25 pm
Forum: General XML Questions
Topic: Regex to replace hyphens between two numbers with commas
Replies: 2
Views: 3840

Regex to replace hyphens between two numbers with commas

Hi there,

I have a text with numbers in between, the numbers should change from 9-3 into something like 9,3.
I can find the numbers with \d{1,2}[\*\-]{1}\d{1,2}
but how do I do the replacement?

Thanks for your help!