Extract an XML tag with its contents

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

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

Extract an XML tag with its contents

Postby aybeone » Thu May 22, 2008 10:35 pm

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.


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

Re: Extract an XML tag with its contents

Postby DataMystic Support » Thu May 29, 2008 4:03 pm

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?
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments

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

Re: Extract an XML tag with its contents

Postby aybeone » Fri May 30, 2008 3:03 am

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


Return to “TextPipe Tips and Tricks, Questions and Support”

Who is online

Users browsing this forum: No registered users and 2 guests