I am building up a PostgreSQL server which I intend to load the entirety of the pubmed database data (23GB bzip2 compressed, 216GB unpacked) which is available in xml form of which, here is an example:
In which, about 334MB of data from medline17n0001.xml will flood the monitor.
If the above general command sequence is done right, and echoing of commands is turned off, you should not see any of the XML file content echoed to the output.
it is possible to turn off validation of the content between the xml tags of the files.
You can either turn off validation for the entire file or leave it on - PostgreSQL isn't recognizing tags here (you haven't defined the samples table for us...).
Narrowing down the entire file to a small problem region and posting a self-contained example, or at least providing the error messages and content, might help elicit good responses. Even if you could load the data without incident using it make end up proving problematic. That said character encodings and sets are not my strong suit.