Page 1 of 1

ParseXML error using value returned by CreateXML(#PB_Any,

Posted: Wed Jan 10, 2024 6:37 pm
by dougmo52usr
When I call ParseXML in the code below, it gives me the error "#XML object number is very high (over 10000), are You sure of that ?"
Is this a bug as I would think ParseXML should be able to handle whatever #PB_Any would generate.

Code: Select all

  ; try to create a minimal ParamsXML file
  hParamsXML = CreateXML(#PB_Any) 
  If hParamsXML
    Protected InitParams.s = ~"<?xml version=\"1.0\"?>\r" + 
                             ~"<V-Mixer_RS-232C>\r" +
                             ~"</V-Mixer_RS-232C>\r"
    Debug InitParams
    If ParseXML(hParamsXML,InitParams)

Re: ParseXML error using value returned by CreateXML(#PB_Any,

Posted: Wed Jan 10, 2024 7:51 pm
by mk-soft
Help of ParseXML: Creates a new XML tree from XML data in the string

Code: Select all

InitParams.s = ~"<?xml version=\"1.0\"?>\r" + 
               ~"<V-Mixer_RS-232C>\r" +
               ~"</V-Mixer_RS-232C>\r"
Debug InitParams
Debug "----"
hParamsXML = ParseXML(#PB_Any,InitParams)
r1.s = ComposeXML(hParamsXML)
Debug r1

Re: ParseXML error using value returned by CreateXML(#PB_Any,

Posted: Wed Jan 10, 2024 8:47 pm
by dougmo52usr
Thanks for the quick response. Your way works great and I'm moving on the create the next bug.

Re: ParseXML error using value returned by CreateXML(#PB_Any,

Posted: Thu Jan 11, 2024 10:28 am
by Fred
dougmo52usr wrote: Wed Jan 10, 2024 8:47 pm Your way works great and I'm moving on the create the next bug.
:lol: