Mintoris Forum

Author Topic: XML Support  (Read 3860 times)

dstmartin

  • Newbie
  • *
  • Posts: 1
XML Support
« on: Sep 09, 2012, 06:19 PM »
It would be nice to have XML functions built into MBasic.

Chuck

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1899
Re: XML Support
« Reply #1 on: Sep 10, 2012, 04:07 AM »
This is an interesting idea.  How do you see this being used?

mjcoon

  • Sr. Member
  • ****
  • Posts: 116
Re: XML Support
« Reply #2 on: Mar 16, 2013, 12:21 PM »
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.

mjcoon

  • Sr. Member
  • ****
  • Posts: 116
Re: XML Support
« Reply #3 on: Mar 30, 2013, 01:40 PM »
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.

Chuck

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1899
Re: XML Support
« Reply #4 on: Mar 19, 2016, 08: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

bigshots1995

  • Jr. Member
  • **
  • Posts: 6
Re: XML Support
« Reply #5 on: Nov 23, 2016, 09:07 AM »
Any developments to XML support?  I need this for my mapping programs.

Chuck

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1899
Re: XML Support
« Reply #6 on: Nov 26, 2016, 04:22 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
« Last Edit: Nov 26, 2016, 10:37 PM by Chuck »

mjcoon

  • Sr. Member
  • ****
  • Posts: 116
Re: XML Support
« Reply #7 on: Apr 17, 2017, 03:52 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
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.