I need to form a table for each road with a shape_leng and a coordinates(multilinestring) columns for each road there can be any number of lines for a road i need to save them in one row
Xml file is of this format: a few roads are multiline strings, and a few others have only one line:
And I have tried to parse it
(Note that shape_leng is single for a road, but coordinate lines can be single or many for a road.)
So I am unable to add them in a particular order like shape_leng and coordinates.
If you want to insert all coordinates into a single database row, I think you have to construct the XPath and loop a bit differently. Loop through the roads, then use XPath to get all coordinates belonging to that road. Eg: