Skip to content

Commit 9fd6e94

Browse files
committed
Add a note about using the XSD directly in CIF files
1 parent ea7aa9e commit 9fd6e94

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,21 @@ In order to solve this problem, you can use the [`concrete-cif.jar` app](https:/
2828
2. You need [Apache Maven](https://maven.apache.org/)
2929
3. You need to download Xerces locally by using the `bin/install-xerces-m2.sh` script (on Windows: `bin\install-xerces-m2.bat` or `bin\install-xerces-m2.ps1`)
3030
4. Run `mvn verify`
31+
32+
## Using the XSD in an IDE
33+
34+
You can use the XSD in CIF files so that your IDE can offer validation and auto-completion.
35+
36+
In order to do that, simply start your CIF files with:
37+
38+
```xml
39+
<concrete5-cif
40+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
41+
xsi:noNamespaceSchemaLocation="https://github.com/concretecms/concrete-cif/releases/latest/download/concrete-cif-1.0.xsd"
42+
version="1.0"
43+
>
44+
<!-- up to you ;) -->
45+
</concrete5-cif>
46+
```
47+
48+
Please remark that the XML Schema is written in version 1.1, and so far most of the IDEs only support version 1.0.

0 commit comments

Comments
 (0)