I have some metadata saved using the ArcCatalog metadata editor. The abstract element allows you to use html formatting. When you export the metadata to xml the formatting is stripped out and the text is returned as a single line of text with newlines removed.

Is there a way to programmtically access these elements from Python and retain formatting and newlines.

Ideally this would be as an XML document.

closed as off-topic by PolyGeo Jul 18 '17 at 22:36

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking help to debug/write/improve code must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Providing a clear problem statement and evidence of a code attempt will help others to help you. See: How to create a Minimal, Complete, and Verifiable example." – PolyGeo
If this question can be reworded to fit the rules in the help center, please edit the question.