jenetics / jpx

JPX - Java GPX library
Apache License 2.0
202 stars 30 forks source link

Add XML `Document` reader/writer methods #158

Closed jenetics closed 2 years ago

jenetics commented 2 years ago

It should be possible to create a org.w3c.dom.Document from a GPX object and vice versa.

// Writing a 'GPX' object to a 'Document'.
void GPX.Writer::write(final GPX gpx, final DOMResult output);

// Reading a 'GPX' object from a 'Document'.
GPX GPX.Reader::read(Document input);
jenetics commented 2 years ago

Merged into r3.0.0 branch.