Would it be possible for you to do the following:
- Extract a minimal amount of content from your input data, preserving the initial and final XML tags, one or two additional tags, and some Russian text.
- Write a very short but complete and runnable perl script, using whatever XML modules you normally would use, in such a way that it reads that small data sample and tries to print it out as some other form of XML stream, but fails.
- Post that code and data, along with something to show what the output should look like, so we can see more clearly what is going wrong (and we can run your sample script ourselves in case the problem is not immediately obvious).
Apart from that, I don't know where to start in terms of suggesting what you should try in order to fix your problem, based on the information you have given so far.
(BTW, why are there all those "</div>" tags in your code snippet? I assume that they are not really part of your script.) Thanks for fixing your code snippet.
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.