Skip to content

Commit

Permalink
Merge pull request #140 from Lachee/master
Browse files Browse the repository at this point in the history
Added CDATA to Documentation
  • Loading branch information
goetas authored Oct 29, 2021
2 parents 3f8ba66 + 48057c6 commit 37ee806
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ xsd2php:
# "http://www.example.org/test/somefile.xsd": somefile.xsd
# known_namespace_locations: # optional
# "urn:veloconnect:catalog-1.1": xsd/catalog-1.1.xsd
# configs_jms: #optional
# xml_cdata: false # Disables CDATA
```

Here is an explanation on the meaning of each parameter:
Expand Down Expand Up @@ -102,6 +104,7 @@ Here is an explanation on the meaning of each parameter:
* `xsd2php.known_namespace_locations` (optional) Specify schema location by namespace.
This can be used to read schemas which import namespaces but do not specify schemaLocation attributes.

* `xsd2php.configs_jms.xml_cdata` (optional) Specify if CDATA should be used or not in serialization.

## Generate PHP classes and JMS metadata info

Expand Down Expand Up @@ -161,6 +164,14 @@ $newXml = $serializer->serialize($object, 'xml');

```

To disable the CDATA, configure JMS as so:

```yaml
xsd2php:
configs_jms:
xml_cdata: false
```
Validation
----------
Expand Down

0 comments on commit 37ee806

Please sign in to comment.