What is the difference between XML and XSD?

Actually the XSD is XML itself. Its purpose is to validate the structure of another XML document. The XSD is not mandatory for any XML, but it assures that the XML could be used for some particular purposes. The XML is only containing data in suitable format and structure.

XSD: What is the difference between xs:integer and xs:int?

The difference is the following: xs:int is a signed 32-bit integer. xs:integer is an integer unbounded value. See for details https://web.archive.org/web/20151117073716/http://www.w3schools.com/schema/schema_dtypes_numeric.asp For example, XJC (Java) generates Integer for xs:int and BigInteger for xs:integer. The bottom line: use xs:int if you want to work cross platforms and be sure that your numbers will pass without a … Read more

How to make an element in XML schema optional?

Try this <xs:element name=”description” type=”xs:string” minOccurs=”0″ maxOccurs=”1″ /> if you want 0 or 1 “description” elements, Or <xs:element name=”description” type=”xs:string” minOccurs=”0″ maxOccurs=”unbounded” /> if you want 0 to infinity number of “description” elements.

XML schema or DTD for logback.xml?

As of June 2011, the official documentation states As shall become clear, the syntax of logback configuration files is extremely flexible. As such, it is not possible specify the allowed syntax with a DTD file or an XML Schema. There was a brief thread on the topic, but didn’t seem to go anywhere.

what is the use of xsi:schemaLocation?

The Java XML parser that spring uses will read the schemaLocation values and try to load them from the internet, in order to validate the XML file. Spring, in turn, intercepts those load requests and serves up versions from inside its own JAR files. If you omit the schemaLocation, then the XML parser won’t know … Read more

Generate Java classes from .XSD files…?

To expand on the “use JAXB” comments above, In Windows “%java_home%\bin\xjc” -p [your namespace] [xsd_file].xsd e.g., “%java_home%\bin\xjc” -p com.mycompany.quickbooks.obj quickbooks.xsd Wait a bit, and if you had a well-formed XSD file, you will get some well-formed Java classes

Any tools to generate an XSD schema from an XML instance document? [closed]

the Microsoft XSD inference tool is a good, free solution. Many XML editing tools, such as XmlSpy (mentioned by @Garth Gilmour) or OxygenXML Editor also have that feature. They’re rather expensive, though. BizTalk Server also has an XSD inferring tool as well. edit: I just discovered the .net XmlSchemaInference class, so if you’re using .net … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)