Member
Join Date: Jan 2016
Posts: 36
|
or other import data format documentation?
I want to write a bunch of XSLT scripts to convert data from other programs. This is, after-all, the true purpose of XML-- as a data interchange format. |
#1 |
Senior Member
Join Date: Jan 2016
Location: Adelaide, Australia
Posts: 2,294
|
This is very much an undocumented area.
Farling is likely the most experienced within the Community and might be able to help point you in the right direction. He's the author of the mighty CSV Import Tool. Realm Works - Community Links Realm Work and Hero Lab Videos Ream Works Facebook User Group CC3+ Facebook User Group D&D 5e Community Pack - Contributor General Hero Lab Support & Community Resources D&D 5e Community Pack - Install Instructions / D&D 5e Community Pack - Log Fault / D&D 5e Community Pack - Editor Knowledge Base Obsidian Obsidian TTRPG Tutorials |
#2 |
Senior Member
Join Date: Mar 2013
Location: Greater London, UK
Posts: 2,623
|
I created a realm with lots of different sorts of snippets and settings on various types of topics and then create an export file. It is the best way to see what elements are created and what attributes get set to what values.
Farling Author of the Realm Works Import tool, Realm Works Output tool and Realm Works to Foundry module Donations gratefully received via Patreon, Ko-Fi or Paypal |
#3 |
Member
Join Date: Jan 2016
Posts: 36
|
Yeah thanks I was figuring Id reverse engineer if all else failed, but wanted to avoid duplicating work if possible.
|
#4 |
Senior Member
Join Date: Mar 2013
Location: Greater London, UK
Posts: 2,623
|
Quote:
It hasn't been worked on for a while, but it might give some pointers. Farling Author of the Realm Works Import tool, Realm Works Output tool and Realm Works to Foundry module Donations gratefully received via Patreon, Ko-Fi or Paypal |
|
#5 |
Senior Member
Join Date: Oct 2014
Location: Chicago, IL
Posts: 1,690
|
Maybe we should try and create an XSD for the export file. That would let people base future XLST's on that rather than trying to do this over and over again from scratch? Or now that Rob is communicating again see if LWD has one internally they'll share?
my Realm Works videos https://www.youtube.com/channel/UCZU...4DwXXkvmBXQ9Yw |
#6 |
Senior Member
Join Date: Mar 2014
Location: Germany, so please bear with my English
Posts: 378
|
Good Thinking. I'm by far no expert in this, but an XSD seems the way to go for these things. There surely are tools to generate XSD from XML?!
|
#7 |
Senior Member
Join Date: Oct 2014
Location: Chicago, IL
Posts: 1,690
|
I'll look into it during my lunch hour and see what's out there.
my Realm Works videos https://www.youtube.com/channel/UCZU...4DwXXkvmBXQ9Yw |
#8 |
Senior Member
Join Date: Oct 2014
Location: Chicago, IL
Posts: 1,690
|
I found several online tools. This one seemed decent and allows direct download of of the resulting XSD.
https://www.site24x7.com/tools/xml-to-xsd.html If Farling could make available the export of his realm that exercises all the options for snippets and topics that could be fed into it and we could see what comes out. my Realm Works videos https://www.youtube.com/channel/UCZU...4DwXXkvmBXQ9Yw |
#9 |
|
|