I agree with moritz that you're not providing quite enough information for others to figure out what the problem is. However, I would suggest that you double check your XML file to ensure that it is compliant XML.

If you look at the "Caveats" subsection under the "Description" of the documentation for XML::Simple, it explains some things that need to be done in order for XMLout to produce compliant XML that can be read back in with XMLin. Check to see if the "rules" mentioned there are being followed by your XML file.

Also, the "Error Handling" section mentions the need for the XML input to be compliant XML. You can try using the eval block like the example given there to see if that will provide you with more details on problems with parsing the XML file.

If you're having problems trying to figure out the data structure of what was read in, I'd suggest that you try using something like Data::Dumper or Data::Show to help out.


In reply to Re: XMLin not able to read the input XML file by dasgar
in thread XMLin not able to read the input XML file by Sidd

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.