Ama sh:,cbc:cac gibi taglar alanların önünde çıkmıyor
Kod: Tümünü seç
X_IXMLStandardBusinessDocumentType:=NewStandardBusinessDocument;
X_IXMLStandardBusinessDocumentType.DeclareNamespace('ef','http://www.efatura.gov.tr/package-namespace');
X_IXMLStandardBusinessDocumentHeaderType:=X_IXMLStandardBusinessDocumentType.StandardBusinessDocumentHeader;
X_IXMLStandardBusinessDocumentHeaderType.HeaderVersion:='1.2';
X_IXMLStandardBusinessDocumentHeaderType.Sender.Identifier:='222222';
XMLDocument1.LoadFromXML(X_IXMLStandardBusinessDocumentType.XML);
XMLDocument1.SaveToFile('d:\denemed.xml');
Kod: Tümünü seç
<?xml version="1.0"?>
-<StandardBusinessDocument xmlns:ef="http://www.efatura.gov.tr/package-namespace" xmlns="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader">
-<StandardBusinessDocumentHeader>
<HeaderVersion>199</HeaderVersion>
-<Sender>
<Identifier>199</Identifier>
</Sender>
</StandardBusinessDocumentHeader>
</StandardBusinessDocument>
Kod: Tümünü seç
<?xml version="1.0"?>
-<sh:StandardBusinessDocument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sh="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" xmlns:ef="http://www.efatura.gov.tr/package-namespace">
-<sh:StandardBusinessDocumentHeader>
<sh:HeaderVersion>1.2</sh:HeaderVersion>
-<sh:Sender>
<sh:Identifier>urn:mail:defaultgb@bilnex.com</sh:Identifier>
-<sh:ContactInformation>
<sh:Contact>1234567803</sh:Contact>
<sh:ContactTypeIdentifier>VKN_TCKN</sh:ContactTypeIdentifier>
</sh:ContactInformation>
</sh:Sender>