Skip to content

Commit

Permalink
Fix README
Browse files Browse the repository at this point in the history
  • Loading branch information
HorstOeko committed Aug 8, 2024
1 parent 7de6b8d commit 564cf94
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
- [From XML file to XML file](#from-xml-file-to-xml-file)
- [From XML string to XML file](#from-xml-string-to-xml-file)
- [From XML file to XML string](#from-xml-file-to-xml-string)
- [Convert UBL to CII](#convert-ubl-to-cii)
- [From XML file to XML file](#from-xml-file-to-xml-file-1)
- [From XML string to XML file](#from-xml-string-to-xml-file-1)
- [From XML file to XML string](#from-xml-file-to-xml-string-1)

## License

Expand Down Expand Up @@ -89,3 +93,37 @@ $sourceXmlFilename = '/path/to/cii.xml.file';

$converterXmlString = XmlConverterCiiToUbl::fromFile($sourceXmlFilename)->convert()->saveXmlString();
```

### Convert UBL to CII

#### From XML file to XML file

```php
use horstoeko\zugferdublbridge\XmlConverterUblToCii;

$sourceXmlFilename = '/path/to/ubl.xml.file';
$destinationXmlFilename = '/path/to/cii.xml.file'

XmlConverterUblToCii::fromFile($sourceXmlFilename)->convert()->saveXmlFile($destinationXmlFilename);
```

#### From XML string to XML file

```php
use horstoeko\zugferdublbridge\XmlConverterUblToCii;

$xmlContent = '<xml>....</xml>';
$destinationXmlFilename = '/path/to/cii.xml.file'

XmlConverterUblToCii::fromString($xmlContent)->convert()->saveXmlFile($destinationXmlFilename);
```

#### From XML file to XML string

```php
use horstoeko\zugferdublbridge\XmlConverterUblToCii;

$sourceXmlFilename = '/path/to/ubl.xml.file';

$converterXmlString = XmlConverterUblToCii::fromFile($sourceXmlFilename)->convert()->saveXmlString();
```

0 comments on commit 564cf94

Please sign in to comment.