Problems using print_xml

pierluigi luzzone at
Tue May 16 16:32:28 CEST 2006

Hello, I'm actually encountering a tedious problem using print_xml function.

type block = <h1>[String]
test = <h1>[ "Other article 2005" ]

When I go to apply print_xml to test, I got this error

print_xml test;;
Uncaught CDuce exception: [ `Invalid_argument 'print_xml' ]

but if I apply print_xml to the value of test directly, it works well

# print_xml <h1>[ "Other article 2005" ];;
- : Latin1 = "<h1>Other article 2005</h1>"

even if
# test = <h1>[ "Other article 2005" ];;
- : Bool = `true

Thanks in advance for your help


More information about the Cduce-users mailing list