OK, its Friday afternoon and I need to get this done:
The following xml needs to be transformed:
<?xml version="1.0" encoding="UTF-8"?>
<ProfiledSettings>
<PropertySet File="properties.txt">
<Property Name="scheduler.time">19h30</Property>
</PropertySet>
<PropertySet File="properties2.txt">
<Property Name="inclusions.filt...
I'm using URLLoader in an ActionScript project to read in some XML. I then process it, and put it into a textfield. Everything looks fine. However, I don't really want the XML to be external to my SWF. So I did this:
var internalXML:XML = <Content><P>It was in <City>Paris</City> that I first
took a <Activity>walk in nature</Activity>.<...
I have an XML schema that uses enumerations, but when I look at the generated XML object in Delphi, the enumeration restriction has been dropped. Is there any way to get Delphi to generate the enum and build it into the object?
XSD Snippet:
<xs:simpleType name="enumType" final="restriction">
<xs:restriction base="xs:NMTOKEN">
...
We are getting an XML document from a vendor that we need to perform an XSL transform on using their stylesheet so that we can convert the resulting HTML to a PDF. The actual stylesheet is referenced in an href attribute of the ?xml-stylesheet definition in the XML document. Is there any way that I can get that URL out using C#? I don...
Hello,
I want to ask this question because the php documentation doesn't mention it
How would one put xml data and binary data together?
$imagecontent = @file_get_contents($imagelocation);
$xmldata ="<xml></xml>";
$headers = array("MIME-version: 1.0");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
curl_setopt($ch, CURLOPT_HTTPHEADER,...
I'm playing with VB XML literals for returning and Excel XML file.
the problem is that the first line containing <?xml version="1.0"?> does not make to the download.
Here is the code:
Public Class ReservasController
Function Test()
Response.Clear()
Response.AddHeader("Content-Disposition", "attachment; filename=test.xml")
...
I am using standard blog template. Normally it has one post gadget. But I want to create a table with one row and 2 column so that I add 2 gadgets left and right under the post. Just like this:
Is it possible to do that?if so, where can I edit the code?
...
Hi there,
got a little problem with receiving the contents of a xml file (using TouchXML).
My first query works very well, looks something like this:
NSString *url = [NSString stringWithFormat:STATION_ID, latitude, longtitude];
CXMLDocument *rssParser = [[CXMLDocument alloc] initWithContentsOfURL:[NSURL URLWithString:url] options:0 er...
I have a large-ish array (~400 elements) of ActiveRecord objects that I need to convert to XML. I've used array.to_xml for convenience, but it's very slow -- about 20 seconds when the server is busy, and about 5 seconds when idle.
I've just run a few benchmarks while the server was idle, and found that:
the ActiveRecord query (comple...
Is it possible to have an upload box on a website where as the XML file is being uploaded it can be parsed at the same time. So for example the values could start to populate say a div rather than waiting for the complete file to be uploaded and then parse.
...
I'm currently looking for an easy way to extract information from server XML responses using JavaScript. jQuery seems like a good candidate for this.
When it comes to parsing XML with jQuery, I keep coming across code examples similar to the following snippet:
function parseXml(responseXml) {
$(responseXml).find('someSelector')......
It seems every time I use an XMLReader, I end up with a bunch of trial and error trying to figure out what I'm about to read versus what I'm reading versus what I just read. I always figure it out in the end, but I still, after using it numerous times, don't seem to have a firm grasp of what an XMLReader is actually doing when I call th...
Hi
I am trying to change the root name when doing XML serialization with C#.
It always takes the class name and not the name I am trying to set it with.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using System.IO;
namespace ConsoleApplication1
{
class Prog...
I am trying to figure out how to do XML serialization.
This is how I want my XML document too look like in the end
<course>
<name></name>
<backgroundColor></backgroundColor>
<fontColor></fontColor>
<sharingKey></sharingKey>
<task id="">
<taskName></taskName>
<description></description>
</task>
...
Is there any program that will generate a compliant plist XML structure from a spreadsheet where the first column is the key (for the plist dictionary) and the value is a dictionary made up of the subsequent columns.
...
is there a way to output xml in php without user know that xml render using php ?
...
Is there a way to convert an XML file to a CSV using PHP?
...
I'm searching for a tutorial to load a XML file, read it, change it and finally save it with C++. I'm using Linux Ubuntu and tried to use Xerces. With Google and much time, I could only load an XML File:
#include <xercesc/parsers/XercesDOMParser.hpp>
#include <xercesc/dom/DOM.hpp>
#include <xercesc/sax/HandlerBase.hpp>
#include <xercesc...
I'm trying to set an attribute in one of the nodes for my XML as below:
rank = 1
for photo in s:
image = feed.createElement('Image')
images.appendChild(image)
image.setAttribute("rank", rank)
p = feed.createTextNode(str(main_url+photo.display.url))
image.appendChild(p)
rank += 1
This however results in the error: 'int' obj...
Hi there,
I just wanted to ask you if anyone can help me parsing the returned data from the Twitpic API?
I'm creating a HTTPFormRequest using the ASIHTTPRequest Wrapper for Cocoa. This all happens in an iPhone application:
NSURL *url = [NSURL URLWithString:@"http://twitpic.com/api/upload"];
NSString *username = t_user;
NSString *pa...