I need to do the following: Parse XML document that contains SVG (Scalable Vector Graphics) as some of the elements. SVG is itself XML. But i need to extract the SVG part as a whole, not needing to parse the contents of the SVG strings.
Example:
...
<symbol>
<svg> [arbitrary svg/xml content here ...] </svg>
</symbol>
...
I'd like to parse the document and extract the strings between the symbol tags.
I'm not very familiar with Java XML APIs. Which one would you recommend for the task? DOM, SAX, StAX? And some recipe would be apreciated. I understand the differences between each, no need to explain the basics. But none seems to be perfect for the task, since i need to obtain the XML string.