XML + XSD
- XML example
- XSD schema
<?xml version="1.0" encoding="UTF-8"?>
<xmltaxpayer xmlns="http://www.szamlazz.hu/xmltaxpayer" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.szamlazz.hu/xmltaxpayer http://www.szamlazz.hu/docs/xsds/agent/xmltaxpayer.xsd">
<beallitasok>
<szamlaagentkulcs>Please fill!</szamlaagentkulcs>
</beallitasok>
<torzsszam>12345678</torzsszam>
</xmltaxpayer>
The sent XML file must comply with the following XSD schema.
warning
Elements marked minOccurs="1" must be present in the XML (the tag cannot be omitted). Elements marked minOccurs="0" may be omitted.
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.szamlazz.hu/xmltaxpayer" xmlns:tns="http://www.szamlazz.hu/xmltaxpayer" elementFormDefault="qualified">
<complexType name="beallitasokTipus">
<sequence>
<element name="felhasznalo" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="jelszo" type="string" maxOccurs="1" minOccurs="0"></element>
<element name="szamlaagentkulcs" type="string" maxOccurs="1" minOccurs="0"></element>
</sequence>
</complexType>
<!-- 8-digit Hungarian tax registry number (adóazonosító jel / torzsszám). -->
<simpleType name="torszszamTipus">
<restriction base="string">
<length value="8"/>
<pattern value="[0-9]{8}"/>
</restriction>
</simpleType>
<element name="xmltaxpayer">
<complexType>
<sequence>
<element name="beallitasok" type="tns:beallitasokTipus" maxOccurs="1" minOccurs="1"></element>
<element name="torzsszam" type="tns:torszszamTipus" maxOccurs="1" minOccurs="1"></element>
</sequence>
</complexType>
</element>
</schema>