You are not logged in.
- Topics: Active | Unanswered
Announcement
*** NOTICE: forum.openstreetmap.org is being retired. Please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators.
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***
#1 2015-02-08 23:20:55
- imattuk
- Member
- Registered: 2014-10-18
- Posts: 6
Parsing things other than a file using OSmosis
hi there,
I am currently reading xml in from a file and parsing it successfully using OSMosis.
The code given to do this all depends on this line:
RunnableSource reader = new XmlReader(file, false, compression);
Unfortunately, for what I want to do, saving XML to file is no longer an option. I have therefore use JDom to create a document object of the XML and would like to parse this.
Is there anyway to use OSMosis to parse a Document other than a file? How about a string? I am open to suggestions about any internal structure I can parse that doesn't involve saving a file to the system.
Thanks,
Matt
Offline
#2 2015-02-10 17:20:12
- stephan75
- Member
- Registered: 2008-05-28
- Posts: 2,918
Re: Parsing things other than a file using OSmosis
What about asking this on the Osmosis developers mailinglist? Maybe there are more experts ...
Offline