PDA

View Full Version : XML Support


galz
03-27-2009, 10:23 AM
Is AutoPlay Media Studio 7.5 have an XML Parser, so I'll able to use XML in my application?

If it does, can you tell me how can I use it (how to get information, and write information to the XML file in AutoPlay Media Studio)?

Thanks ;)

mwreyf1
03-27-2009, 11:05 AM
Here are the XML action commands available for use:


XML.Count

XML.GetAttribute

XML.GetAttributeNames

XML.GetElementNames

XML.GetElementXML

XML.GetValue

XML.GetXML

XML.InsertXML

XML.Load

XML.RemoveAttribute

XML.RemoveElement

XML.Save

XML.SetAttribute

XML.SetValue

XML.SetXML

galz
03-27-2009, 11:36 AM
How do I add an XML to the application and how to get/write information from/to the file? And, after I compile it, can the XML file change?

Dermot
03-27-2009, 01:12 PM
It's all explained in the help file. Each xml action is explained and each has sample code.

galz
03-27-2009, 03:12 PM
AutoPlay Media Studio 7.5's help file (F1)?
Ok. thanks. :)

galz
03-28-2009, 08:51 AM
I didn't really understand how the scripting of this software works, and the manual doesn't explain the syntax of writing commands. I tried to add Menu Bars, and I couldn't add action to them, so I gave up the Menu Bars.

Now, I stucked in the XML. I want to have a dialog which displays a table, with all the information in the table.
And, to have an "Add" option, which give you a form to fill, and it adds the information to the XML.
I also want to do the same thing with updating a record.

Can you help me with this, or to give me a sample?

I also want to have a Users and Passwords (I would like to add it to the XML's first tag: <database username = "..." password = "... (Password after encoding)">).
How can I do it?

Thanks.

Ulrich
03-28-2009, 09:27 AM
I didn't really understand how the scripting of this software works, and the manual doesn't explain the syntax of writing commands.

Have you looked at the documentation? Every method of every object available has at least one example in the help file. And there is section in the help file called "Scripting Guide", have you read it? And finally we have this thing called "User Guide", that has another whole chaper about scripting starting at page 276, teaching how to use Lua scripting, with examples and lots of pictures.

Maybe you should start with something easy before trying to build a whole new applictation.

galz
03-28-2009, 10:35 AM
But I want to finish this application soon.

Somebody asked me to build a software for him and I am a new in programming, I usually program in C# or HTML & JS, but this sould be a software with graphic, and in C# I only know how to program in the console, and HTML won't look very professional.

And I don't have time to read the whole help file. Provably when I'll finish it, I will read the help file.

So, can you help me meanwhile to understand the information I specified? ;)

Dermot
03-28-2009, 10:50 AM
Well if you are not willing to even read the xml section of the help file, which has examples of every action, why should someone help you. Sounds to me like you just want someone to create it for you.

Like Upeters said, maybe you should start with something simple.

Imagine Programming
03-28-2009, 11:07 AM
And, reading the helpfile would consume less time as waiting for somebody to help you with something that's in the helpfile.

galz
03-29-2009, 08:36 AM
OK, I'm learning the scripting and the XML from the PDF.

But how can I do access by password (how do I do an encoding to the passwords)?

Ulrich
03-29-2009, 10:31 AM
Hello,

you may want to have a look at the Crypto object, which provides several functions to encode and decode data.

Ulrich

galz
03-29-2009, 11:10 AM
Thanks.
Where can I find it?

Ulrich
03-29-2009, 11:41 AM
This is an internal action object. You just have to start typing "Crypto." in any script editor, and a list of available actions should be offered, like Intellisense. Then press F1, see the examples. Or just search for Crypto in the help...

Ulrich