xml

PHP: calling a child tag simplexml

Trying to parse a YouTube feed using PHP simplexml_load_file(); I am able to access other tags pretty simply using $xml->id; When I try to access <openSearch:totalResults> with $xml->openSearch->totalResults; I don't get any results ...

Convert a c# mdb solution to xml?

I have a system that uses an mdb database with an xsd descriptor written in c#. Now I want to use one or more xml files with the same data instead. I have generated a couple of adapters for the mdb, but now I don't know what is needed for using xml instead. Anyone have some tips? I have managed to save the mdb as a few xml files. ...

Export XML with only one MySQL request ?

I want to export in XML format some data from 7 tables (MySQL database), and then I want to import in another database. And I have a update or insert rule for data. I already have a SQL query retrieving all data, with JOINs on my 7 tables. But...when I try to put data in XML format, I reach a limit. My PHP loop can catch each row, but I...

How do I loop nodes using NSXML on the Mac and change each node's text value.

Hello - have been stuck on this for days now- How can I loop every node in an XML document and change the text value of the node. For example go from this: <root> <node1>some text</node1> <node2> <node3>some more text</node3> </node2> </root> to something like: <root> <node1>updated text</node1> <node2> <...

objective-c iphone XML parsing one element

I know that when parsing XML with objective-c most of the time you use NSXMLParser. But what if you only need to read one element. Using NSXMLParser sounds like an overload to me. The issue is that flickr API doesn't use JSON as response when uploading an image. So my response now is: <rsp stat="ok"> <photoid>4638598522</photoid> </rsp...

using C# WriteDocType() to generate Apple Property List-compliant XML

I'm trying to produce an XmlDocument which has a DocType as specified in Apple's Property List (P-List) format, which should look like this: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt; <plist version="1.0"> The code I have at the momen...

Android: SaxParser problems using ISO-8859-1 encoding

Hi all! Im facing some problems on xml parsing with android. The problem is that the xml from the server comes in "ISO-8859-1" set with setEncoding (i get <?xml version="1.0" encoding="ISO-8859-1"?>) format and the android device seems that its ignoring that encoding. For example this is part of the original xml that comes from the serv...

How can I change Excels default XML output encoding?

Hi, I'm working on a solution where Excel data is exported to XML. I've implemented a schema and I get all the data exported properly. The one problem I have is that the solution that will receive the XML files expects ISO-8859-1 encoding, while Excel by default outputs UTF-8. Is there any way to change this? Oh, and I'm using the xml...

Receiving XML document with python via HTTP

I want to do a very simple webserver in python able to receive XML document over HTTP and then to send as response XML document. Do you have any example? just to understand How arrange the work... many thanks! UPDATE: I need something like this: a client do a post with an xml document: < request > < name>plus< /name> < param>2< /pa...

Send xml from ActionScript to PHP

Hi, I have values inside an XMLList in Actionscript. Need to send these values to the DB and update it. My actionscript code is as follows: public static function saveUserPermList():void { var ht:HTTPService = new HTTPService(); ht.url = Config.getServerURL(); ht.method = URLRequestMethod.POST; //ht.resu...

How to digitally sign XML document using Oracle 9i PL/SQL

Let's say we have a simple XML document (doc.xml) like this: <?xml version="1.0" encoding="UTF-8"?> <Envelope xmlns="http://www.someexample.com/examples"&gt; <Salutation Id="test"> Welcome! </Salutation> </Envelope> And a certificate file:test.p12 How to make a solution using Oracle 9i PL/SQL that digitally signs XML document...

R Language XML Parsing

What is the best way to parse this XML document so that it is available in R? I would like for each country node to be an independent R object. ...

how i can check if this header exists ?

I am trying to check in my xml file if HeaderReportUnit exists, how i can check if this Header exists ? I am using 2.0 assembly , really thanks for help <?xml version="1.0" encoding="UTF-8" ?> - <HeadReportUnit> - <Title> <ModuleNum>ModuleNum</ModuleNum> <hdstSetPos>hdstSetPos</hdstSetPos> <hdstNzlName>hdstNzlName</hdstNzlNa...

XML parsing to plist iPhone SDK

Hi, guys. Could you, please, help me with parsing of this XML code: <?xml version="1.0" encoding="utf-8"?> <stuff> <parts> <part id='327'> <name>Logitech MX500</name> <serial>618163558491989</serial> <account>ASDALSKD</account> <number>987 789 456</number> <alarm>alarm...

How to send XML file to client in ASP.NET MVC

In an ASP.NET MVC I have a database table. I want to have a button on some view page, if some user clicks that button I my application will generate XML file containing all rows in the database. Then the file containing XML should be sent to the client so that the user will see a download pop-up window. Similarly I want to allow user to...

flex coverflow adding links to the images

Hi, I'm using sebastiaan holtrop's cover flow component in Flex. I would like to be able to add the sources to the images using xml. I would also like each image to have its own URL assosiated with it, so when I click it (if it's in the front of the coverflow), I go to that URL. I'm a bit clueless as to how to get that done (this is th...

[Python]Xml add a node from another xml document

Hi, I have two xml file: 1)model.xml 2)projectionParametersTemplate.xml I want to extract from 1) Algorithm Node with his child and put it in 2) I have wrote this code but it doesn't function. from xml.dom.minidom import Document from xml.dom import minidom xmlmodel=minidom.parse("/home/michele/Scrivania/d/model.xml") xmltempla...

Using Altova XmlSpy with web services!

Jumping into a project I'm kinda stuck. A project that worked with XML through Altova XmlSpy generated objects and as a intern I got stuck wiht trying to implement it as a Web Service a project that had been started and then abandoned. One problem I notice is that we had been trying to return from the web method one of the objects creat...

JAXB Locator - missing dependency?

On my current project we generate JAXB beans from an XSD file. We need line number information on the beans (beyond XSD validation errors!) so I used the -Xlocator option specified here: http://java.sun.com/webservices/docs/1.6/jaxb/xjc.html However, I'm missing the Locator class. The jar file referenced to on that six-year old page ca...

Write to XmlDocumentType.Entities but ReadOnly?

I'm trying to change the value of an entity in a document's DocumentType.Entities XmlNamedNodeMap but according to MSDN, it's read-only. How can I set one of the entities? ...