Saving XML from Flash XML.sendAndLoad
I'm new to XML and haven't a clue how to integrate Flash xml
and Coldfusion 7. There is a Flash app ( I didn't develop it) that
is sending xml.sendAndLoad formatted data like this to a cf page
setSummaryQuiz.cfm
<?xml version="1.0" encoding="UTF-8"?>
<result lessonID="19" userID="56">
<word id="281" value="1" />
<word id="282" value="1" />
<word id="283" value="5" />
<word id="284" value="5" />
<word id="285" value="3" />
<word id="286" value="7" />
<word id="287" value="3" />
<word id="288" value="8" />
<word id="289" value="7" />
<word id="290" value="4" />
<word id="291" value="8" />
<word id="292" value="2" />
<word id="293" value="5" />
<word id="294" value="4" />
<word id="295" value="1" />
<word id="296" value="4" />
<word id="297" value="8" />
<word id="298" value="1" />
<word id="299" value="7" />
<word id="300" value="1" />
</result>
My page is supposed to return saved = true or false like
this:
<? xml version = " 1.0" encoding = "UTF-8"?>
<result saved = "true"/>
Can someone help me or point me to a tutorial or code snippet
where I can see how CF reads and parses the XML data from
Flash?
In ASP setting the response type to "text/xml" you can do a
response.write command to send back XML to Flash if you were
performing an XMLSendAndLoad command ie. send XML from Flash,
processed by ASP and receive an XML response from the ASP - good
for Flash to know if something worked or an error resulted in
processing the info.
Similar Messages
-
I'm running a test to see if I can pass XML from flash to an
ASP file. The following code is used in Flash. But how would I
access the xml variable in an ASP file?In ASP setting the response type to "text/xml" you can do a
response.write command to send back XML to Flash if you were
performing an XMLSendAndLoad command ie. send XML from Flash,
processed by ASP and receive an XML response from the ASP - good
for Flash to know if something worked or an error resulted in
processing the info. -
Hi All,
I have an xml file from which data has to be extracted and inserted into table. XML file looks like this..
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE labels SYSTEM "label.dtd">
<labels FORMAT="Harvest Label for Lot Project" QUANTITY="1" PRINTERNAME="PFP3400E006" JOBNAME="JA272017">
<label>
<variable name= "ITEM">PM191_JTEST</variable>
<variable name= "ITEM_DESC">6 Pack Blue Assembled 2004 JTEST</variable>
<variable name= " LOT ">ja28-10</variable>
<variable name= "QUANTITY">1</variable>
</label>
</labels>
In the above xml, if i remove <!DOCTYPE labels SYSTEM "label.dtd"> and use the below query, I am able to get the details.
SELECT EXTRACTVALUE(VALUE(x), 'labels/@_FORMAT') format
,EXTRACTVALUE(VALUE(x), 'labels/@_QUANTITY') QUANTITY
,EXTRACTVALUE(VALUE(x), 'labels/@_PRINTERNAME') PRINTERNAME
,EXTRACTVALUE(VALUE(x), 'labels/@_JOBNAME') JOBNAME
FROM (SELECT XMLTYPE
('<?xml version="1.0" encoding="UTF-8" standalone="no"?> <labels FORMAT="Harvest Label for Lot Project" QUANTITY="1" PRINTERNAME="PFP3400E006" JOBNAME="JA272017"> <label> <variable name= "ITEM">PM191_JTEST</variable> <variable name= "ITEM_DESC">6 Pack Blue Assembled 2004 JTEST</variable> <variable name= " LOT ">ja28-10</variable> <variable name= "QUANTITY">1</variable> </label> </labels>' ) xml
FROM DUAL),
TABLE(XMLSEQUENCE(EXTRACT(xml, 'labels'))) x
But <!DOCTYPE labels SYSTEM "label.dtd"> tag is there means then i am getting error as
Invalid resource handle or path name "/label.dtd"
Please let me know how we can parse the xml and insert into table. OR how can i remove <!DOCTYPE labels SYSTEM "label.dtd"> tag and process it further.
Thanks and Regards,
Mahesh
Edited by: magu on Sep 2, 2009 3:15 PM
Edited by: magu on Sep 2, 2009 3:16 PMI don't understand why the DOCTYPE is in the XML, but it appears that Oracle is trying to resolve label.dtd to a registered resource. As you discovered, it may be easier to remove the DOCTYPE from the XML then try to register the label.dtd resource within Oracle. To do this, some options are
- Use the REPLACE command
- treat the data as a CLOB and instr/substr to build a new clob without the DOCTYPE tag in it.
- Use the REGEXP_REPLACE command
Also, if your DB version supports XMLTable, here is the way to do it with that.
SELECT *
FROM XMLTABLE('/labels'
PASSING XMLTYPE('<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<labels _FORMAT="Harvest Label for Lot Project" _QUANTITY="1" _PRINTERNAME="PFP3400E006" _JOBNAME="JA272017">
<label>
<variable name="ITEM">PM191_JTEST</variable>
<variable name="ITEM_DESC">6 Pack Blue Assembled 2004 JTEST</variable>
<variable name=" LOT ">ja28-10</variable>
<variable name="QUANTITY">1</variable>
</label>
</labels>
COLUMNS
format VARCHAR2(15) PATH '@_FORMAT',
quantity VARCHAR2(15) PATH '@_QUANTITY',
printername VARCHAR2(15) PATH '@_PRINTERNAME',
jobname VARCHAR2(15) PATH '@_JOBNAME'); -
Hi there,
I want to output info from my flash application and store it
in a database.
At present I am able to retrieve info from my database via
php and xml and use it in Flash.
Should I use the same path in reverse or is there an easier
way?
Thanks,
MartyThe only thing I could suggest would be to have a look at
AMFPHP -
www.amfphp.org
Really nice, and easy, once you get comfortable with it.
Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/ -
I have heard that there are ways that Flash can create an
external XML file. Most of my searches have revealed that this can
be done using PHP for server side solutions. However, I am
wondering if there are other ways that this can be done on a local
maching, using the XML resolver for example. There doesn't seem to
be much information about this out there.
Cheers,
PaulA native Flash projector or swf movie cannot write an file
directly to the
local drive.
A projector could with the help of a wrapper program such as
your own custom
C++ program or a third party wrapper program such as Zinc to
name one of
many out there.
Lon Hosford
www.lonhosford.com
Flash, Actionscript and Flash Media Server examples:
http://flashexamples.hosfordusa.com
May many happy bits flow your way!
"pablo4747" <[email protected]> wrote in
message
news:e7p6mt$sg9$[email protected]..
>I have heard that there are ways that Flash can create an
external XML
>file.
> Most of my searches have revealed that this can be done
using PHP for
> server
> side solutions. However, I am wondering if there are
other ways that this
> can
> be done on a local maching, using the XML resolver for
example. There
> doesn't
> seem to be much information about this out there.
>
> Cheers,
>
> Paul
>
> -
Hi,
I have a web application which recieves new info and has to
output it to a database via xml.
All I need to know is how to generate the xml itself.
The swf has dynamic/input text boxes and the variables in
these collect the info.
Can you help?
Also, if the answer is "to a string" then where can this
string be found for processing?
Thanks so much,
MartyHi Captainmkv,
Does the information in this post cover what you're trying to do: http://forums.adobe.com/message/5081928#5081928
Tristan, -
Input xml from output xml with reverse transformation
I have the transformation and the output xml file. Is there any way I get the input message using the trasformation and output message with minor manual changes? Is there any tool for that?
Hi Ragavalli,
I understand that you want to archive the incoming message before map is applied. (Assuming map is not to be there on send port as not very clear about restrictions you have)
There are two ways:
1. Use of Custom pipeline component to archive message . You can find one at :http://biztalkarchiving.codeplex.com/
2. The other option is to have
Recieve port without map
Two send port one pointing to Archive folder and other to temporary folder (intermediate)location
Add both the send port to Send Port group. Have filter on it as BTS.PortName = ReceivePortName
Create a receive port with temporary folder as receive location
Apply the inbound map on this port
If map can be allowed on send port then
1. Rec port without map
2. Two send port, one without map other with map.
Thus original message will be saved by Send Port 1 and transformed by Send Port 2
Maheshkumar
S Tiwari|User
Page|Blog|BizTalk
Server : Scheduling Orchestration using Trigger Message -
Hi, I need to know how I can save an image from a webpage
that usesFlash, in order to handle it .
Thanks a lotIf you have Acrobat 9, you might be able to save the webpage
using the "Create a PDF" from webpage command - depending on how
self-contained the flash file is. -
Just wondering if I can make a PDF file from data within my Flash application, using a native function say like the prinjob or do I have to utilise a third party application like AlivePDF. I have used printjob before to send flash files to printer but this time i want flash to make a PDF file specifically. Would love a native Flash solution for this, don't really like mucking about with third party components, plugins and API.
Any help or assistance would be quite welcome.Yes it will be on a server but a very restricted .edu server so I don't think I even want to entertain the thought of using fpdf for this job.
Right now, just explained to client to that we will be using printjob and relying on user to have PDF driver. All of the education department's computers in my state in Australia (QLD) are using a Managed Operating System (MOE) that has the PDF printer driver installed.
Just put some good instructions on the flash app and left it at that. When I have some more time would be interseted to check out Alive PDF.
Thanks for all your help! -
Can ant call a target from my build.xml from another xml file?
can ant have a target something like this:
<target mytarget>
<antcall file="C:\app\build2.xml" targetname="blah">
</target>
Is it possible to call a target in my build.xml that will then look in a file called build2.xml and call a target in that xml file?
Thanks,
TadI looked at the manual and the site and couldn't find anything, you don't have to tell me the exact xml if
it bugs you, all I want to know is if it is possible and if it is what task should I use, I will look up
the attributes and how to do it.Now this really takes the biscuit.
I gave you a very specific link to the document that tells you which task to use and which arguments to set. Did you check that link? If so, what else do you want? If not, why not? -
I want to save HTMLText, read from a textfield, and save it. Problem I am facing is that the data comes with < and > instead of regular HTML < and > tags. Any idea how can I get the angled brackets instead of < and > ?
how and where are you trying to save it?
-
How to extract a set of XML elements from an XML element
My XML, stored in a variable called v_XML_input, is as follows:
<Root>
<PackageName>MY_PKG</PackageName>
<ProcedureName>SAVE_ADJ_VALUES</ProcedureName>
<Parameters>
<Parameter>
<Name>p_xml_string</Name>
<Value><DocumentElement>
<tblAdjustments>
<EmpID>41439</EmpID>
<UserNTID>APPUSER</UserNTID>
<Comment>TEST RECORD</Comment>
<Amount>2000</Amount>
<RecordType>R</RecordType>
</tblAdjustments>
</DocumentElement>
</Value>
</Parameter>
</Parameters>
</Root>I want to extract only whatever is between <Value> and </Value>. In this case just this:
<DocumentElement>
<tblAdjustments>
<EmpID>41439</EmpID>
<UserNTID>APPUSER</UserNTID>
<Comment>TEST RECORD</Comment>
<Amount>2000</Amount>
<RecordType>R</RecordType>
</tblAdjustments>
</DocumentElement>The actual values between the <Value> and </Value> may not always be these same elements; they may be strings, numerical values, or other XML values.
I've tried the following in a LOOP, and it works for other strings and numerical values, but I get a ORA-30625: method dispatch on NULL SELF argument is disallowed when trying to extract an XML value as a string.
v_sql_str := v_XML_input .extract('//Parameters/Parameter[position() = '||i||']/Value/text()') .getstringVal()||'''';Any help is appreciated...TIA!Not sure what you are actually trying to accomplish.
What's wrong with
SQL> SELECT xmlserialize(content XMLTYPE
('<Root>
<PackageName>MY_PKG</PackageName>
<ProcedureName>SAVE_ADJ_VALUES</ProcedureName>
<Parameters>
<Parameter>
<Name>p_xml_string</Name>
<Value><DocumentElement>
<tblAdjustments>
<EmpID>41439</EmpID>
<UserNTID>APPUSER</UserNTID>
<Comment>TEST RECORD</Comment>
<Amount>2000</Amount>
<RecordType>R</RecordType>
</tblAdjustments>
</DocumentElement>
</Value>
</Parameter>
</Parameters>
</Root>'
).extract('//Value/*') indent)xml
FROM DUAL
XML
<DocumentElement>
<tblAdjustments>
<EmpID>41439</EmpID>
<UserNTID>APPUSER</UserNTID>
<Comment>TEST RECORD</Comment>
<Amount>2000</Amount>
<RecordType>R</RecordType>
</tblAdjustments>
</DocumentElement> ?
Note: xmlserialize is not necessary and is there just for pretty printing the result. -
I saved docs from a iMac to a flashdrive but when I plug the flashdrive into an iBookG4 and try to open the docs on the flashdrive, I get this message: Doc 2 cannot be opened. The required index.xml file is missing. Does this mean that I can't use the info on the flashdrive with the iBookG4 or can I do something to get the required index.xml file?
Thanks
jtIt appears if you write the document with newer version Pages and try to open it older version Pages.
-
Sliding Flash Interface - Using Links from an XML file Problem
Hi All,
Working on a new site for the company i've recently started
working for... fairly new to flash but wanted to try this sliding
interface for the graphic banner at the top of the page...
have a look here at an early version of the site - sliding
graphic interface at the top with coloured rollover buttons (a lot
of work still to do! feel free to post constructive criticism)
(am I allowed to post links??)
here is the unfinished version with no links in the flash bit
http://www.westfieldhealth.com/website/index.asp
The Problem:
I am pulling in a 'heading' 'text' and 'image' into the
sliding graphic interface from the following xml file... (there are
4 different xml files for 4 different slides)
<?xml version="1.0" encoding="iso-8859-1"?>
<content>
<dialogue>
<heading>Interested in selling our health
plans?</heading>
<text>Click here to learn more...</text>
<img>home_window/intSmall.jpg</img>
</dialogue>
</content>
I want to add a link to the xml that would be specific to
each instance of the window...
eg
<link>contact-us/index.asp</link>
But my limited knowledge of flash means I have no idea how to
pull the link through from the xml file to use in the flash...
Perhaps I need link text to pull as well
eg
<link-text>click here to contact us</link-text>
Here is the function that pulls in the img, heading and txt
public function onComplete(event:Event):void {
var loader:URLLoader = event.target as URLLoader;
if (loader != null) {
externalXML = new XML(loader.data);
mover_mc.heading_txt.htmlText =
externalXML.dialogue[0].heading;
mover_mc.myText_txt.htmlText = externalXML.dialogue[0].text;
var url:URLRequest = new
URLRequest(externalXML.dialogue[0].img);
myLoader.load(url);
} else {
trace("loader is not a URLLoader!");
Can anyone help me on how to pull in the link from the xml
and use it to navigate to a different page on the site
Thanks very much
Hans
link to
my unfinished flash file...What is the exact error you get (what db version also), could you post a simplified version of the SQL which fails also? I have splitter based maps that successfully read from file via the XMLType(bfilename....) style code and insert into multiple targets, I did this on 11g though.
Cheers
David -
XML editing from flash, any idea, suggestion
Hello,
I have created for a client a website dynamically loaded with
XML formatted content (XML Files), now the client wants to be able
to edit the contents of its site (CMS), the site displays several
things but more specifically a list of products, which you can see
by browsing the "PRODUCT RANGE" section of
http://www.cellap.com/.
I planned to use a php to rewrite the XML with the edited
data sent from the flash (oldData, newData), it works fine, except
that there are several problems:
-I use the "ereg_replace" command of PHP, which seems not to
handle correctly special charachters such as "*"...
-If the php is told to replace i.e. "FACE" with "FIGURE", it
will replace it everywhere on the XML, which is not what I want; so
maybe I'm not using the right technique; I know it'd be more easy
to do if the content was on a MySQL database, but the client wanted
XML, to be able to browse the site offline...
Any help or suggestions would be greatly appreciated!
Tksloading yes. editing no.
you need some sort of server script to do the editing(php,
asp, cmf)
Dan Mode
*THE online Radio*
http://www.tornadostream.com
*Must Read*
http://www.smithmediafusion.com/blog
*Flash Helps*
http://www.smithmediafusion.com/blog/?cat=11
"ELTIGRE" <[email protected]> wrote in
message
news:e94vsk$fjb$[email protected]..
> is it posible Loading and Editing xml data from flash
without any
> programing language using actionscript only?
Maybe you are looking for
-
I have spent an absolute fortune this afternoon buying adobe products such as the creative cloud monthly package and VSCO Film package and none of it is working!! I have downloaded them all on my windows 7 laptop, and loaded the creative cloud app an
-
SecurityDomain and Caching Issues
I am running into some caching issues when setting the securityDomain of an imported SWF to match the calling SWF file and I was curious if anyone had any ideas on how to get around this issue. Here is the scenario: A.swf is launched on Domain A, it
-
How do I set up my MBP so that a message does not pop up when the power button is pressed?
When I press my power button on my retina a message that says "Are you sure you want to ..?" How do I set it up so that that message does not pop up? My friends keep turning off my computer..
-
Installing 10.1.0.3
Greetings. I am upgrading because I can't login using Enterprise Manager 10.1.0.2. I've checked the SYSMAN and DBSNMP and both accounts are unlocked. I also check the policy settings and everything appears to be fine. When installing 10.1.0.3 in the
-
Error: TextFrame.fit() cannot work with instances of this class
Hi, As I am very new to indesign scripting, I am getting very strange kind of error when fit textFrame in indesign document. can any one please help me to get ride of these strange looking error. Thanks in advance.