mush4brains has asked for the wisdom of the Perl Monks concerning the following question:
I'd like to switch the end-tags. In this example, A and B have precisely the same content, so this fix is straightforward and well-defined. (I'm ignoring DTD/schema enforcement here.) Generalizing a bit, these can nest deeper and get less trivial:<A><B>...</A></B>
...or (shudder)...<D><A><B><C>...</D></C></B></A>
Note all begin-tags have a corresponding end-tag.<D><A><B><C>...</D></A></C></B>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Fixing ill-formed XML
by davorg (Chancellor) on Dec 19, 2002 at 22:28 UTC | |
by hossman (Prior) on Dec 19, 2002 at 23:31 UTC | |
by grantm (Parson) on Dec 20, 2002 at 00:01 UTC | |
|
•Re: Fixing ill-formed XML
by merlyn (Sage) on Dec 19, 2002 at 22:49 UTC | |
|
Re: Fixing ill-formed XML
by mirod (Canon) on Dec 19, 2002 at 23:05 UTC | |
by mush4brains (Acolyte) on Dec 23, 2002 at 16:34 UTC | |
|
Re: Fixing ill-formed XML
by CountZero (Bishop) on Dec 19, 2002 at 22:56 UTC | |
by Ionizor (Pilgrim) on Dec 20, 2002 at 02:46 UTC | |
by CountZero (Bishop) on Dec 20, 2002 at 09:46 UTC |