ParseXML error using value returned by CreateXML(#PB_Any,

Just starting out? Need help? Post your questions and find answers here.
dougmo52usr
User
User
Posts: 62
Joined: Mon Jul 18, 2016 6:43 pm

ParseXML error using value returned by CreateXML(#PB_Any,

Post 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)
Last edited by dougmo52usr on Wed Jan 10, 2024 8:08 pm, edited 1 time in total.
User avatar
mk-soft
Always Here
Always Here
Posts: 6207
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

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

Post 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
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
dougmo52usr
User
User
Posts: 62
Joined: Mon Jul 18, 2016 6:43 pm

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

Post by dougmo52usr »

Thanks for the quick response. Your way works great and I'm moving on the create the next bug.
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

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

Post 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:
Post Reply