XML + XSD
- XML example
- XSD schema
In the XML file, the order of the fields is fixed, they cannot be interchanged.
Example XML, delete a pro forma invoice with the invoice number
<?xml version="1.0" encoding="UTF-8"?>
<xmlszamladbkdel xmlns="http://www.szamlazz.hu/xmlszamladbkdel" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.szamlazz.hu/xmlszamladbkdel http://www.szamlazz.hu/docs/xsds/szamladbkdel/xmlszamladbkdel.xsd ">
<beallitasok>
<felhasznalo>Test123</felhasznalo>
<jelszo>Test123</jelszo>
<szamlaagentkulcs>Please fill!</szamlaagentkulcs>
</beallitasok>
<fejlec>
<szamlaszam>D-43</szamlaszam>
</fejlec>
</xmlszamladbkdel>
The following XML structure must be used to delete a pro forma invoice with the given order number
<?xml version="1.0" encoding="UTF-8"?>
<xmlszamladbkdel xmlns="http://www.szamlazz.hu/xmlszamladbkdel" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.szamlazz.hu/xmlszamladbkdel http://www.szamlazz.hu/docs/xsds/szamladbkdel/xmlszamladbkdel.xsd ">
<beallitasok>
<felhasznalo>Test123</felhasznalo>
<jelszo>Test123</jelszo>
<szamlaagentkulcs>Please fill!</szamlaagentkulcs>
</beallitasok>
<fejlec>
<rendelesszam>XXX</rendelesszam>
</fejlec>
</xmlszamladbkdel>
The request XML must conform to the following request 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/xmlszamladbkdel" xmlns:tns="http://www.szamlazz.hu/xmlszamladbkdel" elementFormDefault="qualified">
<complexType name="beallitasokTipusDbk">
<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>
<complexType name="fejlecTipus">
<sequence>
<!-- Pro forma (díjbekérő) invoice number to delete. -->
<element name="szamlaszam" type="string" maxOccurs="1" minOccurs="0"></element>
<!-- Order number; alternative to szamlaszam to identify the pro forma invoice. -->
<element name="rendelesszam" type="string" maxOccurs="1" minOccurs="0"></element>
</sequence>
</complexType>
<element name="xmlszamladbkdel">
<complexType>
<sequence>
<element name="beallitasok" type="tns:beallitasokTipusDbk" maxOccurs="1" minOccurs="1"></element>
<element name="fejlec" type="tns:fejlecTipus" maxOccurs="1" minOccurs="1"></element>
</sequence>
</complexType>
</element>
</schema>