Mintoris
Apr 28, 2017, 12:50 PM *
Welcome, Guest.

login

register

Did you miss your activation email?


Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: XML Support  (Read 1443 times)
dstmartin
Newbie
*
Posts: 1


« on: Sep 09, 2012, 10:19 AM »

It would be nice to have XML functions built into MBasic.
Logged
Chuck
Global Moderator
Hero Member
*****
Posts: 1805



« Reply #1 on: Sep 09, 2012, 08:07 PM »

This is an interesting idea.  How do you see this being used?
Logged
mjcoon
Sr. Member
****
Posts: 115


« Reply #2 on: Mar 16, 2013, 05:21 AM »

This is an interesting idea.  How do you see this being used?

I can't answer for dstmartin (who cannot have been that keen else would have answered)...

But on XML support in Basic4PPC I built programs that generated and modified KML files for viewing in Google Earth (on PPC or PC).

I don't (yet) know if KML files are of direct use under Android.

(XML is the underlying encoding of KML.)

Mike.
Logged
mjcoon
Sr. Member
****
Posts: 115


« Reply #3 on: Mar 30, 2013, 06:40 AM »

But on XML support in Basic4PPC I built programs that generated and modified KML files for viewing in Google Earth (on PPC or PC).

I don't (yet) know if KML files are of direct use under Android.

(XML is the underlying encoding of KML.)

Mike.

I still haven't found a way of viewing KML files in Google Maps on Android like I used to on Windows Mobile. (Though I have asked on what I hope is an appropriate forum.)

But I have spotted that Android SDK supports SAX, which is how I used to handle XML files while still at work.

Mike.
Logged
Chuck
Global Moderator
Hero Member
*****
Posts: 1805



« Reply #4 on: Mar 19, 2016, 01:51 PM »

I know this is an old topic but it is still relevant. I recently leaned how to read an xml file in order to import TMX tiled map graphics files. They are used by the game engine in the next release 7.3. While I don't yet have plans to add xml support, I do know how it's done now and that puts this one step closet to completion.

-Chuck
Logged
bigshots1995
Jr. Member
**
Posts: 3


« Reply #5 on: Nov 23, 2016, 02:07 AM »

Any developments to XML support?  I need this for my mapping programs.
Logged
Chuck
Global Moderator
Hero Member
*****
Posts: 1805



« Reply #6 on: Nov 25, 2016, 09:22 PM »

I'm doing an overhaul on Basic atm or I would have got it done by now. I'll keep it at the top of my list.

Could you email ( support@mintoris.com ) me one of your xml files for testing. Nothing with sensitive data. I've still got a ton of work planned before I'll get to it, but if I have your file and kinda know how you will be using it, you will get just want you need. I expect you will say something like:

Open 1, "my.xml", "r"
ReadXml 1, hashtable
Close 1

and you get a hashtable filled by the xml file. Easy.

I suppose we also need a write command:

WriteXml n, hashtable
« Last Edit: Nov 26, 2016, 03:37 PM by Chuck » Logged
mjcoon
Sr. Member
****
Posts: 115


« Reply #7 on: Apr 17, 2017, 07:52 AM »

I'm doing an overhaul on Basic atm or I would have got it done by now. I'll keep it at the top of my list.

Could you email ( support@mintoris.com ) me one of your xml files for testing. Nothing with sensitive data. I've still got a ton of work planned before I'll get to it, but if I have your file and kinda know how you will be using it, you will get just want you need. I expect you will say something like:

Open 1, "my.xml", "r"
ReadXml 1, hashtable
Close 1

and you get a hashtable filled by the xml file. Easy.

I suppose we also need a write command:

WriteXml n, hashtable
I think I'd need more of a hint how this might work. IIRC XML allows container objects potentially with a list of subordinates. In KML, such as a "path" with multiple co-ordinates making up the path. But a hashtable does not seem to fit...

Mike.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines
Page created in 0.047 seconds with 17 queries.