Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
use QM to quickly modify the keys and values ​​in a plist file
#5
create this function

Function XmlOut
Code:
Copy      Help
function IXml&xml [withAttr]

;This function displays all XML nodes and their properties.
;To test it, create new function, name it XmlOut and paste this code.

;EXAMPLE
;IXml x=CreateXml
;x.FromFile("$my qm$\test.xml")
;XmlOut x 1


lpstr st="root[]el[]a[]text[]xml[]DOC[]PI[]CD[]comm"
ARRAY(str) at=st

ARRAY(IXmlNode) a; int i
xml.Root.GetAll(withAttr!=0 a)

for(i 0 a.len)
,XMLNODE xi; a[i].Properties(&xi)
,out "%-15s %-4s F=0x%X L=%i V='%s'", xi.name, at[xi.xtype], xi.flags, xi.level, xi.value
then put this code in a  different macro or function


Code:
Copy      Help
IXml x._create
x.FromFile("$desktop$\plist_file\file.plist")
XmlOut x 1
it will show you details of the xml structure


Messages In This Thread
RE: use QM to quickly modify the keys and values ​​in a plist file - by Kevin - 08-20-2018, 12:56 AM

Forum Jump:


Users browsing this thread: 4 Guest(s)