Using SetXMLdeclaration
- New
- Issue
-
David Verdis
- PowerBuilder
- Friday, 6 November 2026 09:22 AM UTC
Hello,
I need an xml file (PBDOM_Document) to contain this header <?xml version="1.0" encoding="ISO-8859-1"? >, without "standalone=...".
But when I use the function: SetXMLdeclaration("1.0", "ISO-8859-1", " ") as indicated in the documentation to avoid having "standalone..." , this raises an exception: "An invalid argument is passed into this function...".
(see : https://docs.appeon.com/pb2025r2/extension_reference/SetXMLDeclaration.html)
I tried with SetXMLdeclaration("1.0", "ISO-8859-1", null), but that puts "standalone="no".
Is there a solution?
Thanks.
(Note: I use PB2025)
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.