Extract an XML tag with its contents

Get help with installation and running here.

Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators

Post Reply
aybeone
Posts: 3
Joined: Thu May 22, 2008 10:23 pm

Extract an XML tag with its contents

Post by aybeone »

Hello,

I managed to do simple things like extract an URL but I am having a headache trying to extract an XML tag with its content.

<Grid.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FF717171" Offset="1"/>
<GradientStop Color="#FFFFFFFF" Offset="0.498"/>
<GradientStop Color="#FF727272" Offset="0"/>
<GradientStop Color="#FFA4A4A4" Offset="0.858"/>
<GradientStop Color="#FFFFFFFF" Offset="0.098"/>
</LinearGradientBrush>
</Grid.Background>

By using "Restrict to between tags", i know i'm hitting the desired part of my text,
but i couldn't manage to extract the text, only remove it by using "Remove all" as a sub filter.
When i add "Extract matches" as a subfilter, the result is simply blank.

Filter used :

"Restrict to between tags, including the start and end of tag"
"Remove All"

Actually it works, it removes what i wanted to extract BUT Is there any way to "Invert" this filter ?
If not, do you know any other way to do it easily ?

Thanks for your help !

Best regards.
aybeone
Posts: 3
Joined: Thu May 22, 2008 10:23 pm

Re: Extract an XML tag with its contents

Post by aybeone »

User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Extract an XML tag with its contents

Post by DataMystic Support »

I wouldn't have thought that extract matches would do that - can you please right-click your filter list, choose Copy, and Paste into a reply?
aybeone
Posts: 3
Joined: Thu May 22, 2008 10:23 pm

Re: Extract an XML tag with its contents

Post by aybeone »

I'm afraid but I deleted and defragmented my drive since then ,,, couldn't recover it.

Basically, it didn't work,

I don't exactly remember but , i didn't use Restrict To,
I rather deleted all CR/LF/Tabs to get 1 line, then did something to extract it,,,

I was so disappointed by the result (was not worth it) that i just threw everything ....

Sorry but i just can't remember it, only thing i am sure of is, i haven't used the presets .

:D
Post Reply