Advertisement

01.16.2008 at 07:27PM PST, ID: 23089189 | Points: 100
[x]
Attachment Details

Cleaning up XML tags

Tags: Shell or Perl Script, N/A
I need a script that will parse an xml file and clean up misplaced tags.   I'm running into a problem where I get xml files that have a badly placed tags.  I need to move these files to a specified directory so, I can review them.  

I.e. The Open and close <One> tags are okay, but the <Two> is badly placed in between those tags. The same goes for the <Four> tag

<status>
<One>
Some text in here <Two> more text
</One>
<Three>
Some more text here <Four> which I would like to keep.
</Three>
</status>

Start your free trial to view this solution
Question Stats
Zone: Programming
Question Asked By: 2xdafun
Question Asked On: 01.16.2008
Participating Experts: 2
Points: 100
Views: 0
Translate:
Loading Advertisement...
01.17.2008 at 03:15AM PST, ID: 20680235

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.17.2008 at 07:41AM PST, ID: 20682319

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.17.2008 at 10:45AM PST, ID: 20684071

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.17.2008 at 11:02AM PST, ID: 20684229

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
01.17.2008 at 12:17PM PST, ID: 20684916

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080236-EE-VQP-29 / EE_QW_2_20070628