Hi,
I am looking for learning the way we can convert excel files into XSD format. Any basic tutorials/videos that can help me to learn this quickly?
Regards,
Purvi
Hi,
I am looking for learning the way we can convert excel files into XSD format. Any basic tutorials/videos that can help me to learn this quickly?
Regards,
Purvi
Best answer by jdh
As far as I am aware there isn't an automatic xsd writer.
xsd however is just XML, so you could use an XMLTemplater to construct the relevant data.
Something along the lines of
Root (Creator):
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="https://www.w3schools.com"
xmlns="https://www.w3schools.com"
elementFormDefault="qualified">
<xs:sequence>
{fme:process-features("SUB")}
</xs:sequence>
</xs:schema>
SUB (your excel data):
<xs:element name="{fme:get-attribute("Field")}" type="{fme:get-attribute("Type")}"/>
Where type is generally one of
so you may need to restructure your excel data (AttributeValueMapper)
If you have a nested data structure then you need to use complex elements, and will probably require multiple subtemplates.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.