Hi Jenda

I don't know whether it's against the rules of XML (I seriously doubt it!)

I was speaking out of turn. I'm not sure either. It is easy to prove by defining it in either a document declaration or a xml schema. If that is possible, it is legal.

but I've met way too many cases when the other party insisted that the tags are in a specific order so I would be very wary of changing the order.

An artificial limitation with things like XPath. But I can see how it happens, too.

If there are hundreds of thousands of them i do think it's safe to assume the individual records are rather small.

My experience is different :-) But yes if I can assume the records are smallish, your advice is better in many ways (a lot more code is already written for you). I should have mentioned that.

trwww


In reply to Re^3: Modifying Records with XML::SAX::ByRecord by trwww
in thread Modifying Records with XML::SAX::ByRecord by Lorphos

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.