What are my options for stuffing user data into an externally-defined XML schema?
-
I'm starting a side project to create files that will be imported into an iPad app. The authors of the app (which I have no control over) have a XML format specification, but no published XSD. Once I reverse-engineer a matching XSD, what's the best way of taking user input (in the form of a quick-and-dirty GUI app) and stuffing it into an XML format matching that reverse-engineered XSD?
I've never worked with generating XML to a format before, so I'm unsure.
Requirements:
- Cross platform (mac/windows)
- either python, php, or c# (since those are the languages I'm familiar with)
- low effort
- free (this one is vital)
-
@benjamin-hall I think this highly depends on what the XSD ends up looking like. The amount of flexibility is all up to the XML schema designer.
Do the authors of the app have a non-published XSD? Have you asked?
-
when you have the xsd, then I'd say: C#, generate classes from the xsd using xsd.exe, fill those objects any way you like, and then serialize to xml using the xml serializer.
-
@blakeyrat said in What are my options for stuffing user data into an externally-defined XML schema?:
@benjamin-hall I think this highly depends on what the XSD ends up looking like. The amount of flexibility is all up to the XML schema designer.
Do the authors of the app have a non-published XSD? Have you asked?
I just started looking at this today. I have an XSD that validates against their sample, but...
It's really not a complicated one. I'll probably have to generate a few XML files, test out importing them and see what breaks
-
@benjamin-hall I still think you should ask them for the XSD, it'd save you tons of effort. (And if the answer is "we don't really have one" you're no worse-off).
-
@benjamin-hall said in What are my options for stuffing user data into an externally-defined XML schema?:
an iPad app.
XML
no published XSD
(Take your pick.)
-
@masonwheeler Don't be a dick in General Help until the help item is addressed.