Bug/inconvenience with FormatXML -> ComposeXML
Posted: Sat Aug 05, 2023 2:45 am
Hi,
I don't know if this is intentional, but when I use ComposeXML with the #PB_XML_NoDeclaration flag I get two empty lines (the first line would usually contain the declaration):
While I know I can remove them by myself, I feel like this flag should return the plain data without trailing blank lines.
I don't know if this is intentional, but when I use ComposeXML with the #PB_XML_NoDeclaration flag I get two empty lines (the first line would usually contain the declaration):
Code: Select all
#XML = ~"<?xml version=\"1.0\" encoding=\"utf-8\"?><Nothing><StillNothing></StillNothing></Nothing>"
ParseXML(0,#XML)
FormatXML(0,#PB_XML_ReFormat|#PB_XML_CutNewline)
Debug ComposeXML(0,#PB_XML_NoDeclaration)