3,634 Topics

Member Avatar for
Member Avatar for mehnihma

Hi I have problem getting XML file with curl. I get empty XML and error: Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity "1" in /home2/public_html/xmlupdate.php on line 62 xml 1 not loaded. the code for curl: $ch =curl_init(); curl_setopt($ch, CURLOPT_URL,$xml_url_1); curl_setopt($ch, CURLOPT_VERBOSE, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1); …

Member Avatar for mehnihma
0
2K
Member Avatar for adishardis

Hi, I use this script to extract and insert the desired variables to mysql.It does the job. $xml = new SimpleXMLElement('file.xml'); foreach($xml->loanaccount as $mess){ $account_number= mysql_real_escape_string($mess->account_number); $main= mysql_real_escape_string($mess->main); $type= mysql_real_escape_string($mess->{'application-array'}->{'application-type'}), $date= mysql_real_escape_string($mess->{'application-array'}->{'application-date'}), //insert into databse mysql_query("INSERT INTO account (account_number, main) VALUES ('$account_number', '$main')") or die(mysql_error()); echo "inserted into mysql<br /><br …

Member Avatar for adishardis
0
216
Member Avatar for yaragalla_mural

i have to display a combo box with some dynamic values that comes from the database when user checked a checkbox on the currently being viewed html page. I am getting dynamic values from the webserver as json or xml. Now i have take the values from the json or …

Member Avatar for riahc3
0
108
Member Avatar for jaron1611

Morning, I am loading an xml file where i want to search low level node name if exists. For example: <xml> <A> <B> <c></c> <d></d> </B> </A> </xml> so i have IXMLDOMDocument and IXMLDOMNode, i need to load an existing xml file and to search the node <d> where i …

Member Avatar for pritaeas
0
57
Member Avatar for tunisia

I'm trying to expedite the process of manually opening up an XML file and searching for some info in it. I want to store some of the data, etc. Nothing elaborate. But I'm not clear on some of the file structure. For the seasoned XML data wrangler, can you instantly …

Member Avatar for tunisia
0
455
Member Avatar for adishardis

I'm trying to get an xml file from an ftp and then insert select data into mysql db. I'm shooting in the dark but from googling this is what i've tried so far: $curl = curl_init(); $file = fopen("import.xml", 'w'); curl_setopt($curl, CURLOPT_URL, "ftp://company@company.company.se/company/import.xml"); #input curl_setopt($curl, CURLOPT_FILE, $file); #output curl_setopt($curl, CURLOPT_USERPWD, …

Member Avatar for adishardis
0
480
Member Avatar for adishardis

Hi, I, getting a new xml file everyday to one of our external ftp servers. I want to get that file and then insert select data into my mysql. What I'm thinking is that I would use curl to get the file, then simplexml and then insert into database. But …

Member Avatar for adishardis
0
217
Member Avatar for bhagawatshinde

Hi, I am new in asp.net. i have an task to read xml file from server folder and insert these values to sqlserver 2005 database. how i can do this. thanks in advance.......

Member Avatar for softwareskill
0
889
Member Avatar for raaif

Hi again, I am trying to read an XML file in this format; [ICODE] <?xml version="1.0" encoding="utf-8"?> <words> <word id="Apple" def="A fruit" /> <word id="Dinosaurs" def="Now Extinct Animal" /> <word id="Giant Panda" def="An Endangered Animal" /> <word id="Asia" def="The Largest Continent" /> ..... </words> [/ICODE] I have more than 3000 …

Member Avatar for softwareskill
0
224
Member Avatar for buffalo0

Hi I have what I think is a simple problem but after much searching cant seem to find a solution. I have an xml file stored on an web server and I need to read the data using vb.net for a smart device application. I also need the ability to …

Member Avatar for softwareskill
0
5K
Member Avatar for jkdil33

Hi, I have a problem I want to save the values in user controls(textboxes) to an XML file(If not to text file) I want this to be done when client clicks on save data button I want to read the values in XML file(If not to text file) to user …

Member Avatar for softwareskill
0
216
Member Avatar for visweswaran28

Hi, I have a string like "\n <div> attrib1=\"test\"</div>" I want to pass this as parameter to xmldocument.loadXML(); I received an exception when I tried to pass the above string. Please suggest me to proceed. Thanks in Advance

Member Avatar for deceptikon
0
96
Member Avatar for ypks_destiny

hi i am working on a smallproject to display images from Xml to HTML page..It Works great on IE and FireFox But Not on Google Chrome this is my XML COde <Data> <Details> <Id> 1 </Id> <Photo><![CDATA[<img src=../Seceret/photos/download.jpg width=150 height=150>]]></Photo> <Mindet> Hi one </Mindet> <Maxdet> Hi I am 1 </Maxdet> …

Member Avatar for ypks_destiny
0
189
Member Avatar for rexdon

//Give me an example for Serialising Multidimensional array in c sharp. //While searching in net i found this code snippet [XmlIgnore] public char[,] Data; [XmlElement("Data")] [EditorBrowsable(EditorBrowsableState.Never)] public char[][] XmlData { get { /* copy contents of Data into a jagged array */ } set { /* copy contents of jagged …

Member Avatar for deceptikon
0
993
Member Avatar for jaron1611

Morning, I am new to xml with delphi. My problem is that i know how to build am xml file, the output is something like this: **<EXPORT> <IMPORTMODEL>1</IMPORTMODEL> <SESSION></SESSION> <STARTDATE>26-01-2011</STARTDATE> <ENDDATE>26-01-2011</ENDDATE> <VOUCHERS> <VOUCHER> <AUTHOR> X </AUTHOR> <INPUTDATE>1/23/2013</INPUTDATE> <REFERENCE>M1000009</REFERENCE> <ONDUPLICREF>N</ONDUPLICREF> <JOURNALTYPE>STANDARD</JOURNALTYPE> <DESCRIPTION>This is a test for the description of the voucher …

Member Avatar for pritaeas
0
215
Member Avatar for SpyrosMet

Hey everyone, so I have this project for windows phone i have to do and I have to put some pins on a bing map, but in order to do that I make an API request to google for google places. I get back an XML file and it's like …

Member Avatar for Ketsuekiame
0
3K
Member Avatar for pln89

I have question about json data. I can convert data from database to json data in asp.net web service but they come with xml tags. I need to remove string tags and xml information from this data. The appearance of the data is : <?xml version="1.0" encoding="utf-8" ?> <string xmlns="http://tempuri.org/"> …

Member Avatar for AleMonteiro
0
219
Member Avatar for merisha.iwanthi

I am asked to submit my assignment at the end of the day. I have done all the designing part except for the XML-List part. I have no idea how to do it as I'm really new to XML. Here is my assignment. Any help or direction to the right …

Member Avatar for pritaeas
0
157
Member Avatar for AndyPants

This php code: <?php $video_id = 'k3VevYjjwQk'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'http://gdata.youtube.com/feeds/api/videos/'.$video_id); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); if ($response) { $xml = new SimpleXMLElement($response); $title = (string) $xml->statistics->attributes()->viewCount; echo $title; } else { // Error handling. } ?> returns: Warning: main(): Node no longer …

Member Avatar for LastMitch
0
83
Member Avatar for welshly_2010

basically i have created a selection box which display the files i have got in a certain folder which are xml files, my problem is that i am unsure how to save the content of the file selected as a live variable which changes on different selected which the variable …

Member Avatar for veedeoo
0
118
Member Avatar for Lowchernhwee

Well i have troubles sorting the xml whenever i created a new info so here are the codes Imports System.Xml Imports System.IO Imports System.Text Public Class Form1 Dim m_strdata As String(,) = New String(999, 4) {} Dim w As Integer = 0 Private Sub read() Dim m_xmlr As XmlTextReader 'Create …

Member Avatar for TnTinMN
0
220
Member Avatar for anandschiru

How to extract an article which is a html page from a rss feed in php.

Member Avatar for diafol
0
111
Member Avatar for anandschiru

I want to extract the contents from the below link using Rssfeed in php. plz help me someone. i hvae tried all the possibilites,i am not getting. http://www.jacionline.org/current.rss

Member Avatar for blocblue
0
165
Member Avatar for eresh.leo

I have a situation in xsl where I had a param value that will be assigned some where in xslt transformation. But I get that param as a String , that param may contains a node a unbounded[0 or more repetitions] . How can I use param in for each …

0
99
Member Avatar for AquaNut

Hi Everyone, I am trying to read in a block of xml using the following code, but it always jumps over the foreach loop: XDocument doc = XDocument.Load(sourceFile); XElement root = XElement.Load(sourceFile); var DataRecords = doc.Elements("DATA_RECORD"); foreach (var dr in DataRecords) { //build up the values we're interested in string …

Member Avatar for nmaillet
0
356
Member Avatar for visweswaran28

Hi, I am new to XML. I have doubt. I am updating value of XmlAttributeCollection in XmlElement, whether my XmlElement gets updated or I need to go with some method to update my value in XmlElement. Here my code, XmlElement xntemplate = xmldoc.SelectSingleNode("//TableTemplate//ColumnStateXML//state//colref [@id='" + sPropName[1].Trim() + "']") as XmlElement; …

Member Avatar for visweswaran28
0
76
Member Avatar for mehnihma

I have this code to parse XML file I need to take elements "Name" and write them all to csv header (from every product in XML) with rest of the XML data, but I need values to be as data in csv For Now I can write just header, but …

Member Avatar for LastMitch
0
258
Member Avatar for BrackishWater

How do I configure the date format independently for each of my date fields? For example, let's say I have a CustomerOrder class with more than 1 java.util.Date fields in it. I need to be able to render like this: <customerOrder> <orderDate>2013-01-04T20:50:42.769Z</orderDate> <user>Bob</user> <state>CO</state> <estShipDate>2013-01-04</estShipDate> </customerOrder> So one of the …

Member Avatar for BrackishWater
0
182
Member Avatar for Hendo

Hello all, Okay, I've been beating my head for a couple of days over this one and I'm running out of time. I'm writing an app that reads an XML file, then uses the data in the XML file as variable values. Here's a sample XML file: <!--Test.xml--> <Test> <turn>right</turn> …

Member Avatar for Hendo
0
177
Member Avatar for mehnihma

Hi Can you help me with parsing XML elements I am trying to get values from XML and write it to csv file, so far I can read everything but inner elements in XML are confusing to me, so If you can give ideas how to solve this? I have …

Member Avatar for mehnihma
0
263

The End.