Page 1 of 1

Extract an XML tag with its contents

Posted: Thu May 22, 2008 10:35 pm
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.

Re: Extract an XML tag with its contents

Posted: Thu May 22, 2008 10:55 pm
by aybeone

Re: Extract an XML tag with its contents

Posted: Thu May 29, 2008 4:03 pm
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?

Re: Extract an XML tag with its contents

Posted: Fri May 30, 2008 3:03 am
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