Hi,
The parser (parseString) doesn't need a reference necessarily a reference to
a text/field member. The string can also be in a local/global variable.
you can use fileIO xtra to read the file and stick the content either in a
local variable or in a field/text member and then parse it with
parseString()
first sample (using a local variable)
f = new(xtra "fileio")
f.openfile("c:\test.xml",1)
theText = f.readfile()
f.closeFile()
-- the use ParseString on theText
first sample (using a text member)
f = new(xtra "fileio")
f.openfile("c:\test.xml",1)
member("xml").text = f.readfile()
f.closeFile()
-- the use ParseString on member("xml").text
regards,
------------------------------------------
Laurent BRIGAUT
Services Division Manager
Integration Nouveaux Media, Inc.
http://www.integration.qc.ca
------------------------------------------
> -----Original Message-----
> From: ICG [mailto:[EMAIL PROTECTED]]
> Sent: 15 janvier, 2001 06:43
> To: [EMAIL PROTECTED]
> Subject: <lingo-l> Parsing XML using XMLParser Xtra
>
>
> Hi everybody!
>
> As far as I could understand from the Macromedia site I can
> use the XML
> parser Xtra for parsing strings from a cast member (say a
> text field) or
> from a URL (correspondingly using parseString() or parseURL()
> functions).
> Can i somehow parse XML data from a file on a local disk?
> What method should
> I use?
>
> Thanks in advance
>
> Araik
>
>
>
> [To remove yourself from this list, or to change to digest mode, go to
> http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
> email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
> Lingo-L is for learning and helping with programming Lingo. Thanks!]
>
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]