When you edit your node, please do not remove previous content, only append new content at the end with an appropriate "Update" marking. See also How do I change/delete my post? Your node is still incomplete as it is missing code (again!), and I cannot fully answer your question because I know I am missing information which I only caught a glimpse of earlier.
Is there any other way to proceed other than using parsers
Theoretically, yes*. Practically, no - one should not parse XML with regexes, and always use a parser.
* If the format of your XML is well known and you have full control over its source, and you know it will never change, then maybe, in some cases, parsing XML with regexes is excusable. Such cases are rare, and in practice, the parsing of XML with regexes is a bad idea.
What is the problem with using a parser?
In reply to Re: How to compare the data of two files (.xml and .html) using perl(regex)?
by Anonymous Monk
in thread How to compare the data of two files (.xml and .html) using perl(regex)?
by flora
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |