The location of the XML file?
Hi - Maybe it's a weird question, but I hope someone can help me. I'm supposed to copy and paste the XML of my client on the server whenever it is updated through DW when connected to FTP. So far, I have not been able to access the server, so I have no way of knowing exactly where the XML file. This is the page which takes XML:
http://www.gulfspillrestoration.NOAA.gov/oil-spill/Gulf-spill-data/
I assumed that there is a kind of folder on the server that holds the file called "matrix". For the life of me, after looking at the link above, code I can't well it say anything on a matrix file.
In DW, I made a small test page and put in place a Spry data set and took a picture of the code [see below]:
Spry shows clearly where the file is located in the photo above, but I can't find it on the link. In addition, scientists are telling me that all I have to do is to download the XML through WordPress (the above site using WP CMS) but when I did it - downloaded the XML through WP - it is not too much to write the previous version but rather re - name (such as matrix1.xml).
So I think the only way to download and replace a DW FTP access and copy and paste the new code XML on the server.
Is my analogy this correct? You can see the path I might be dominant in the page above that points to the matrix file? I want to just make sure that the XML file is located on the link server in a directory above.
Thank you.
Sorry - I was referring to your second question on downloading the file with FTP. If you want to download it with WP, and then delete the existing since the first Panel to SUPPORT XML file.
Tags: Dreamweaver
Similar Questions
-
Is it possible to read the contents of the XML file rather than the properties for the location of FLEX
Strictly speaking, this is not really true. When running, the ResourceManager of IResourceBundles for localization, not deal with XML files or properties files. As long as you implement IResourceBundle, you can back it up with XML, properties, JSON, AMF files - what you want. The problem is that mxmlc will not build modules of resources for you what it is, with the exception of properties files, and cannot compile just resource bundles in a .swf using anything other than properties files. If you build your own interface to spit IResourceBundles, this could work, but it is probably more trouble that it's worth.
(Assuming that you establish the link in the application) the best solution is to write a script to pre-process the XML in properties files.
-
HTTP Communication tutorial - parsing of the XML file error
Hello again,
I went through the tutorial of HTTP Communication today is here. Built just fine and it loaded into the Simulator, however when I hit refresh to load the XML from an HTTP network call I get the error:
XmlDataModel: Analysis of the file error... /... /.. /Data/model.XML on line 14, column 8: "unexpected character.
After the end of the XML file, given the location of the character of line 14, column 8 is that it really confused me.
Any thoughts on how to bypass this?
The XML file can be found at https://developer.blackberry.com/cascades/files/documentation/device_platform/networking/model.xml
try changing the url https://developer.blackberry.com/cascades/files/documentation/device_platform/networking/model.xml
-
Hello
I try to access a web service. I am currently using NetBeans 6.5. I am able to acess webservice by creating the stub.
This draft is back this xml content in a string format
so, when I try o use
SAXParserFactory saxfact = SAXParserFactory.newInstance ();
SAXParser sp = saxfact.newSAXParser ();
Sax InputSource = new InputSource (temp); Temp is the string that's been out since the heel in a string format
TPI Parse (Sax, this); on this step, the code is throwing an exception
/ * org.xml.sax.SAXParseException:
org.xml.sax.helpers.DefaultHandler.fatalError (+ 1)
com.sun.ukit.jaxp.Parser.panic (+ 18)
com.sun.ukit.jaxp.Parser.setinp (+ 203)
com.sun.ukit.jaxp.Parser.parse (+ 42)
analysis.(parsing.java:54)
to call_to_webservice.run(call_to_webservice.java:54) * /.I'm stuck here
I was trying to access xml directly, but the statement sp.parse () takes InputSource or InputStream
need help very urgent
Thanks in advance
Hi Panknaik,
Try this code,
try {}
SAXParserFactory plant = SAXParserFactory.newInstance ();
SAXParser saxParser = factory.newSAXParser ();
org.xml.sax.helpers.DefaultHandler Manager = new xmlReader (startTag, endTag); start and endtag you want to analyze. InputStream in = new ByteArrayInputStream (response.getBytes("UTF-8"));
InputSource source = new InputSource (in);
saxParser.parse (source, handler);
} catch (Exception e) {}---------------------------------------------------------------------------
Then extends DefaultHandle,
/**
* A class containing a generic logic to read an XML file.
*/
class xmlReader extends DefaultHandler {}
private String startTag; /**< start="" tag="" to="" be="" looked="" for.="">
private String endTag. /**< end="" tag="" to="" be="" looked="" for.="">
Private boolean currentTag;
Private boolean Errortag.
String tagValue;
/**
* Sets the start and end tag to be read in the XML file.
startTag @param tag beginning.
endTag @param tag end.
*/
{} public xmlReader (startTag, endTag String String)
this.startTag = startTag;
this.endTag = endTag;
}
/**
* Startup item implementation of the DefaultHandler.
*/
' public void startElement (String namespaceURI, String localName,
String qualifiedName, attributes atts) throws SAXException {}
If (localName.equals ("error"))
Errortag = true;
ElseIf (localName.equals (startTag))
currentTag = true;
}
/**
* Implementation of the DefaultHandler element ends.
*/
' public void endElement (String namespaceURI, String localName,
String QualifiedName) throws SAXException {}
If (localName.equals ("error"))
Errortag = false;
ElseIf (localName.equals (endTag))
currentTag = false;
Else if (currentTag == true) {}
attribValue.addElement (tagValue); Add it to vector
tagValue = "";
}
}
/**
* The treatment on the tag to read.
ch @param String containing the tag.
@param start starting location of the tag.
@param tag length.
*/
characters public Sub (ch of char [], int start, int length)
throws SAXException {}
Dim str As String = new String (ch);
String tempTagValue = str.substring (start, start + length);
If (Errortag is true)
errorNo = Integer.parseInt (tempTagValue);
Else if (currentTag == true)
tagValue = tempTagValue;
}
}I think that it solve your problem.
Kind regards
-Jitu.
-
I got following error when running tests on the Workbench 2.1
[February 19, 2014 16:27:10: TRANSPORT] [0] FRAME: Async command is monitored by the process of STAF 73
[February 19, 2014 16:27:10: FACTORYIMP] SETTING [0]: insert in the container
[February 19, 2014 16:27:10: TESTHASH] [0] INFO: VirtualMachine installation process
[February 19, 2014 16:27:10: VIRTUALMAC] [0] FRAMEWORK: the Setup() method called
[February 19, 2014 16:27:10: STAFBASE] SETTING [0]: command execution STAF: staf VTAF_VM localhost connect password of administrator agent 192.168.8.158 userid: 11:Infocore' 1 q ssl
[February 19, 2014 16:27:10: STAFBASE] [0] FRAME: command execution STAF: staf localhost VTAF_VM getvms anchor 192.168.8.158:administrator
[February 19, 2014 16:27:11: MULTITECH] [0] FRAME: called VTAF::TestLib:Sphere:Lib:STAFSDK:HostSystem:GetAllVMs (HostName = '192.168.8.150' password = 'infocore"username ="root") returned UNDEF
[February 19, 2014 16:27:11: VIRTUALMAC] [0] FRAMEWORK: new creation vaaivm1-150 VM from scratch...
[February 19, 2014 16:27:11: TESTHASH] [0] ERROR: cannot run processSetup for configuration: cannot run createHOMObj for configuration: No. GuestOS appearing in the XML file
[February 19, 2014 16:27:11: TESTHASH] WARN [0]: found objects that need to be cleaned
[February 19, 2014 16:27:11: VIRTUALMAC] [0] INFO: cleaning of the virtual machine: vaaivm1-150
[February 19, 2014 16:27:11: HOSTSYSTEM] [0] FRAME: HostSystem Cleanup() called
[February 19, 2014 16:27:11: HOSTSYSTEM] [0] FRAMEWORK: the location of the swapfile to the directory of the VM on the host 192.168.8.150 restoration VM...
[February 19, 2014 16:27:11: HOSTSYSTEM] SETTING [0]: setting VM Swapfile location to use the directory of the virtual machine
[February 19, 2014 16:27:11: STAFBASE] SETTING [0]: command execution STAF: staf VTAF_Host localhost connect password of administrator agent 192.168.8.158 userid: 11:Infocore' 1 q ssl
[February 19, 2014 16:27:11: STAFBASE] [0] FRAME: command execution STAF: staf localhost VTAF_Host setswapfilelocation anchor 192.168.8.158:administrator host 192.168.8.150
[February 19, 2014 16:27:31: MULTITECH] [0] FRAME: called VTAF::TestLib:Sphere:Lib:STAFSDK:HostSystem:SetSwapFileLocation (HostName = '192.168.8.150' password = 'infocore"username ="root") '1' returned
[February 19, 2014 16:27:31: HOSTSYSTEM] [0] FRAME: destruction of object 192.168.8.150...
[February 19, 2014 16:27:31: LOGMANAGEM] COMMENTS [0]: recovery log file 192.168.8.150 host vmkernel.log
[February 19, 2014 16:27:31: FILEUTILIT] [0] FRAME: PutTmpDirectory - called for destination host localhost
The same problem was sloved.
Re: Hardware Certification-do can not find the storage50info.txt file to...
-
Create an image slider using the XML file photo gallery
Hello!
I have created a photo gallery and generated an xml file. I want to implement a cursor image on the home page that performs a simple fade from one image to the other.
I'm not an expert on jQuery. The BC help section says to add code that retrieves in the XML file and THEN add another code query j who would style images and transitions.
I don't know how to do this. Here is my code and it does not work.
If you have a simple solution, it would be great.
There is a script called JSSOR
"< script type =" text/javascript"src ="... / js/jquery-1.9.1.min.js "> < / script >"
<!-use jssor.slider.mini.js (40 KB) instead for immediate release->
<!-jssor.slider.mini.js = (jssor.js + jssor.slider.js)->
< script type = "text/javascript" src = "javascripts/jssor.js" > < / script >
"< script type =" text/javascript"src="javascripts/jssor.slider.js "> < / script >
This is the beginning of the code BC gives to pull from the xml file into a div called "Gallery".
< div id = 'Gallery' > < / div >
< script type = "text/javascript" >
{$(function()}
$.ajax({)
type: 'GET ',.
url: " http://www.performanceaire.com/Fahrenheit-images/BannerGallery/Photogallery.XML ", / / replace with an absolute URL of the XML of your gallery of .
data type: "xml."
success: {function (xml)}
{$(xml).find('img').each (function ()}
location var = ' http://www.performanceaire.com/Fahrenheit-Images/BannerGallery/'; / / Replace with the absolute path to the directory that contains your images
var url = $(this) .attr ('src');
var alt = $(this) .attr ('alt');
$('<li></li>').html (' < a href = "' + place +" + url + ' "> < img src ="' + place + "+ url + '" alt = "' + alt + '" / > < / a > ').appendTo('#gallery');
});
}
});
});
This is the code taken from JSSOR to transitions occur, and it does not work... any ideas?
jQuery (document) .ready (function ($) {}
var options = {}
$AutoPlay: true, / / [optional] If auto play, to activate the slide show, this option must be set to true, the default value is false
$DragOrientation: 1 / / orientation [optional] to drag the slide, 0. drag, 1 horizental, 2 3 vertical or, default value is 1 (note that the $DragOrientation must be the same as $PlayOrientation when $DisplayPieces is more than 1, or in the parking position is not 0)
};
var jssor_slider1 = new $JssorSlider$ ("Gallery", options);
});
< /script >
www.performanceaire.com/index-FS.html
It is perhaps a bit much if you do not top:
-
load the XML file field Companion without cross-domain policy file
Hello.
Assuming that there are two areas companions on the same server: /public_html/domain1.com and /public_html/domain2.com
I'm trying to load the XML from domain2.com in domain1.com without using a cross-domain policy file (since it does not work with xml files in my case).
So the idea is to use a php file to load XML and read it back to Flash.
I found an interesting scripts that seems to do the job, but unfortunately I can't make it work. In my opinion, there is somewhere with AS3 part problem. Please take a look.
Here's the AS3/PHP scripts:
AS3 (.swf in www.domain1.com):
location of the xml file you want to load, full http address
var xmlLoc:String = " " http://www.Domain2.com/MyFile.XML ";
location of the php xml grabber, regarding the .swf
var phpLoc:String = "loadXML.php";
var xml;
var loader: URLLoader = new URLLoader();
var request: URLRequest = new URLRequest (phpLoc + "? location =" + escape (xmlLoc));
loader.addEventListener (Event.COMPLETE, onXMLLoaded);
loader.addEventListener (IOErrorEvent.IO_ERROR, onIOErrorHandler);
Loader.Load (request);
function onIOErrorHandler(e:IOErrorEvent):void {}
trace ("there was an error with the xml file" + e);
}
function onXMLLoaded(e:Event):void {}
trace ("RSS feed has been loaded");
XML = new XML (loader.data);
/ / string value, because it is passed from php as object
XML = XML (xml.toString ());
xml_txt.text = xml;
}
PHP (loadXML.php to www.domain1.com):
<? PHP
Header ("Content-type: text/xml");
$location = "";
{if (isset($_GET["location"]))}
$location = $_GET ['location'];
$location = urldecode ($location);
}
$xml_string = getData ($location);
return the url encoded Flash vars
echo $xml_string;
Loops of a URL and returns
function getData ($query) {}
/ / create resource curl
$ch = function curl_init();
/ / cURL url
curl_setopt ($ch, CURLOPT_URL, $query);
Set some required params for the use of CURL
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
Execute the loop works and decode the returned JSON data
$result = curl_exec;
return $result;
/ / Close the curl resource to free up system resources
curl_close ($ch);
}
? >
I think you might be right about / permissions on the server for php settings. Unfortunately I'm not allowed to adjust.
So I wrote my own script - this time I used the path instead of the http address of the XML file. It works fine in my case.
Here it is:
XML file on domain2.com:
SWF on domain1.com:
var imagesXML:XML;
var variables: URLVariables = new URLVariables();
var varURL:URLRequest = new URLRequest ("MyPHPfile.php");
varURL.method = URLRequestMethod.POST;
variable = varURL.data;
var MyLoader:URLLoader = new URLLoader;
MyLoader.dataFormat = pouvez;
MyLoader.addEventListener (Event.COMPLETE, XMLDone);
MyLoader.load (varURL);
function XMLDone(event:Event):void {}
var imported_XML:Object = event.target.data.imported_XML;
imagesXML = new XML (imported_XML);
MyTextfield_1.text = imagesXML;
MyTextfield_2.text = imagesXML.image [0] .attribute ("thumbPath"); reference sample to assign "thumbPath' of the first item
}
php on domain1.comfile:
<>
$xml_file = simplexml_load_file('.. /.. / /galleries/gallery_1/MyXMLfile.xmldomain2.com'); Directory of XML file on the same server
$imported_XML = $xml_file-> asXML();
Print "imported_XML =". $imported_XML;
?>
Concerning
PS: for those who have read the foregoing: the first and the second script works but you need to test which one is best for your situation. The first script will work also between two domains located on different servers. No. cross necessary domain policy file.
-
Need help with loading the XML file
Hello
I spent reviewing the web/forums for an example on how to do this for a few days now. I managed to get this working in Flash Pro easily enough, but I think I'm missing something when I want to do the same thing in Flex.
Basically, I want to load an XML file and then set the values of the text of labels 5, equal to the data in the XML file.
So I have a button created in MXML and have put the following click event:
Click = "dsSetup (Event)" "
I also stated the following:
public var myRequest:URLRequest = new URLRequest ("assets/myFile.xml"); folder located under the CBC in project
public var myLoader:URLLoader = new URLLoader();
public var myXML:XML;
My function that loads is as follows:
public function dsSetup(event:MouseEvent):void
{
trace ("dsSetup");
myXML = new XML (myLoader.data);
H3. Text = myXML.source.itemA;
H4.text = myXML.source.itemB;
H5.text = myXML.source.itemC;
H7.text = myXML.source.itemD;
H8.text = myXML.source.itemE;
currentState = "MainMenu";
}
myLoader.addEventListener (Event.COMPLETE, dsSetup); I think that this line is no longer as I put it in the MXML
myLoader.load (myRequest);
It's the way I did in Flash and it worked fine, but I must be missing something when it comes to Flex.
Can you explain or point me to a good tutorial that shows how to load XML in Flex code?
Those I've found seems to have about 50 lines of code just to load a file and add through a complex for a beginner.
Thank you very much
I suggest you save the data loaded in a variable that can be linked, then bind the properties of the text - who:
[Bindable]
var myXML:XML;
public void dsSetup(event:MouseEvent):void
{
myXML = new XML (myLoader.data);currentState = "MainMenu";
}...
-
1. some web pages gives "error extracting XML. The XML file that is assigned in the configuration.xml is wrong or corrupt.
2 Youtube gives, after having pressed the button start, message "an error has occurred. Please try again later.
Even youtube opening page with IE, there is no problem.3. scrolling on Mozilla firefox pages only works with the sidebar not with the mouse wheel.
Other user accounts on this computer is not these problems.
BR Juha
This can be caused by a recent update of Flash 11.3.
See:
-
repair of iTunes - fusion of the xml files or combine libraries
My iTunes xml I messed up a little bit and now all my old songs have the same Date added date, if they have been added to 4 years ago or on 02/07/15.
Titles added after 02/07/15 have correct dates.
I am trying to find the better (not necessarily the easiest) way to fix them.
It is important for me because I sort my titles by date added.
I have a huge library and can change them one by one in the xml file.
I think that the ideal way to change the dates maybe with a script that would take the correct dates back to the old xml and replace the incorrect in the xml of the last.
However, I do not have such a script, and I don't know how to write one.
So my other option is to merge libraries.
I will do this on a separate drive in order not to spoil the libraries either old or new.
I have a bunch of backups, but had not noticed the problem posed by the until after all the backups had already been updated with new and incorrect files.
I also have a fully functional library on a player removed from my MBP dead last year.
So I now several copies of a messed library and an obsolete library containing the correct information.
If I had to start with the old library I would need then to add all new titles that were added last year on my new computer.
I can sort of filter by modification Date to clear the majority of them.
I know that iTunes has a feature to add to the library , but before I use it I want to make sure that will accomplish what I am trying to do.
I hope that someone with real experience in doing that reads my post.
Useful suggestions of someone else is appreciated.
Too bad (as if someone was actually going to answer).
I have since discovered that the added Date cannot be changed.
So now I have copied the old library on an external drive, made iTunes open this library, and then added everything in my current library which was not in the old library. I now have a library with the correct dates for the majority of the files, but all my files since August 2014 have now to the current Date added date.
Better to have 16 months from the incorrect dates of 6 years.
-
Flatten XML does not record the names of the ListBox element to the XML file.
On my front, I have a ListBox indicator that has strings that the user can select. Also, the user can edit items in the drop-down list to add new items. After that the user selects one and pushes my "Save" button, I use the flatten XML function to save the selection in an XML file. But Flatten XML saves only the value (the index of the selected items to the XML file and not the names of items in ListBox.) This is enough information to reconstruct from the string of data that the user has selected.
A ListBox where a user is to select from a list of strings, flatten function XML should not also store the strings that have been selected?
-
The attached VI works when I run it initially to create the XML file, but when I change the data and run once the XML file is created, it is not updated with new data. What I am doing wrong?
Thank you.
It sounds like the logic that has been written in VI
Internal decision of true / false:
(file exists: false) write in the file XML, unflatten for display
(file exists: true) read the XML file, unflatten for display
At no time when the file exists (true case) is the XML file updated...
-
IMAQdx attributes listed in the xml file not found in labview
Hello
Some attributes of my camera our watch camera (DALSA CamExpert) software but are not displayed in MAX.
When I opened the xml file, I don't see a difference between the attributes shown and hidden.
Why LabView displays all possible attributes?
The sml file has specific requirements?
Any ideas?
Hello Eric,
I solved the problem yesterday!
I use a DALSA camera. Dalsa software downloads the XML file and saves it in a directory 'dalsa"on my local disk.
National instruments software (MAX) downloaded XML file and saves it in another directory. The 2 files were not equal. I replaced the XML file OR the XML of Dalsa file and now I'm able to get all attributes.
But thanks for your response!
Kind regards
Kim
-
How can I save xml file n, run the xml file? Please help me
How can I save xml file n, run the xml file? Please help me
Hello
The question you have posted will be well suited in the MSDN forum. Click on the link below.
http://social.msdn.Microsoft.com/forums/en/categories/
In the meantime, I suggest you to return the item mentioned below.
How to use XML Notepad to create an XML document
-
RSS feeds save in the xml file in the device memory
Hello
I'm in the analysis of an RSS feed with SAX parser. Now, I want to record the first RSS an xml file in the memory of the device or on the SD card. Can someone guide me through this process
To write in an XML rss content, start by creating the file with the extension ".xml" with the help of the FileConnection API, then write content (rss data) in the XML file.
You can use code below to write the content in the file. We must give the path as a string & content in byte format.
public boolean writeFile(String path, byte[] data) { javax.microedition.io.Connection c = null; java.io.OutputStream os = null; try { c = javax.microedition.io.Connector.open("file:///" + path, javax.microedition.io.Connector.READ_WRITE); javax.microedition.io.file.FileConnection fc = (javax.microedition.io.file.FileConnection) c; if (!fc.exists()) fc.create(); else fc.truncate(0); os = fc.openOutputStream(); os.write(data); os.flush(); return true; } catch (Exception e) { return false; } finally { try { if (os != null) os.close(); if (c != null) c.close(); } catch (Exception ex) { ex.printStackTrace(); } } }
Maybe you are looking for
-
How much does it cost for a replacement battery for an iPhone 5
How much does it cost for a replacement battery for an iPhone 5
-
Why my MBP say, ' Attention, violation of integrity!
Several times recently I have working away on my MBP and he heard: "Attention!" Breach of integrity! » There is never a screen with this, and I have no idea what it means. On the last two times I had my Pages application to crash in the vicinity on h
-
So far, all the patches require firefox to be on. Mine does not start.
Mozzilla will NOT start.
-
Equium P300-16 t - problem with volume wheel
Equium P300-16 tjust installed windows 7 64-bit having problems with the volume dial if I try and adjust the volume using wheels he iratic even if I click on the speaker in the taskbar.If I open ie Notepad and wheel is the round automatically shows "
-
Deployment of VeriStand model to cRIO-9024
Hello I am trying to deploy a dll of Veristand simulink to my target RT VxWorks cRIO model 9024 but I get error compatibility while deploying, saying:... Specified model is not supported in the current execution target! I created the DLL file and out