Heh heh, I should explain myself further..... I was using "XML" loosely since, as you point out, this is not a valid XML syntax. My example code is actually the output from a script I wrote for another application, which is the transfer of a language specification written in another language into XML. The original language has the ability to give several attributes to its tags, such that the ultimate original for my examples would have been something on the order of
{heading bob=foo, super=duper, level=3, blah blah blah}
which my original script converts to the
<heading> bob=foo, super=duper, level=3, blah blah blah </heading>
format. Now I'm tacking on some code to handle these attributes (which don't occur in the syntax I originally wrote the script for) so that I have
<heading bob=foo super=duper level=3>blah blah blah </heading>
So I was thinking that I would save myself some trouble by using a regex. Anyway, the example code is the product of my script thus far and was not supposed to be well formed quite yet, which I should have said in the first place. :-)
</CODE>
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.