Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: XML Invoices
04-12-2009, 05:37 AM #1
- Join Date
- May 2006
- Thanked 0 Times in 0 Posts
This is a side thought on my other post regarding the invoicing system:
If I do write a program that saves invoices in XML format, I will need some sort of common structure to these invoices. Is there a way outside of my head that I can define this structure, say if a third party application was developed? I am aware of things like XSD, but only in terms of SOAP. What would my options be here? And another side thought: if my invoice format changed sometime down the road (and thus my XML format), how would I ensure that my program/XSD(or other format file) is compatible with both versions?
04-12-2009, 05:53 AM #2
- Join Date
- Dec 2007
- Thanked 890 Times in 879 Posts
xsd as you said but I recommand relaxng( compact). Read this:What would my options be here?
In my opinion relaxng is more flexible and easy to read/understand and once you have a schema you can convert it from one format to another using tools like trang.
the only limitation, for trang, is that you can't convert from xsd to other formats.
trang have the avantage that once you have build a xml file you can extract a schema from it.
compare somehow schema for both version and if older schema is included in newer one there are compatible.And another side thought: if my invoice format changed sometime down the road (and thus my XML format), how would I ensure that my program/XSD(or other format file) is compatible with both versions?