diff options
author | Vivien Kraus <vivien@planete-kraus.eu> | 2021-01-09 11:57:23 +0100 |
---|---|---|
committer | Vivien Kraus <vivien@planete-kraus.eu> | 2021-01-10 14:33:51 +0100 |
commit | 59060419ba72773b11ada8aa56a063874b58f5d0 (patch) | |
tree | 02bd39d5ec527a3ddfbd289fed88367e5a63d2c4 /ldp/resource/xml.scm |
Initial commit0.0.0
Diffstat (limited to 'ldp/resource/xml.scm')
-rw-r--r-- | ldp/resource/xml.scm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ldp/resource/xml.scm b/ldp/resource/xml.scm new file mode 100644 index 0000000..d6a63c4 --- /dev/null +++ b/ldp/resource/xml.scm @@ -0,0 +1,9 @@ +(define-module (ldp resource xml) + #:use-module (ldp resource sxml) + #:use-module (sxml simple)) + +(define-public (xml->resource string-or-port) + (sxml->resource (xml->sxml string-or-port))) + +(define-public (resource->xml resource . args) + (apply sxml->xml (resource->sxml resource) args)) |