Hi,
I have an xml file which represents a number of objects for which I have a class in my application. For example, blogposts:
<blogposts>
<blogpost id="604">
<title>afdghadfh</title>
<body>adfgadfgda</body>
</blogpost>
<blogpost id="605">
<title>dafghadh</title>
<body>afadf</body>
</blogpost>
</blogposts>
...
Hey Everybody,
I am trying to build a rake tasks, that fetches a product feed and adds it to my db.
task :testme => :environment do
require 'nokogiri'
require 'zlib'
require 'open-uri'
@url = "http://some_url/filename.xml.gz"
@source = open((@url), :http_basic_authentication=>[USERID, "PASSWORD"])
@gz = Zlib::GzipReader.new(@s...
I will try to explain shortly what my problem is...
I'm loading an XML file (using touchXML) to populate a UITableView with data.
expositions = [[NSMutableArray alloc] init];
// Get XML string from XML document.
NSString *xmlURL = EXPOSITION_XML_DOC;
NSString *xmlString = [NSString stringWithContentsOfURL:[NSURL URLWithString:xmlURL]...
The '&' in the text gets escaped and gets converted to & when creating the xml file using XmlTextWriter
but i dont want the conversion to take place how to prevent it?
Is there any other way besides using WriteRaw func of xmltextwriter?
...
I want all nodes of an xml document that are not descendants of nodes X.
(My actual problem is a little more complex, but I'm stuck with the "are not descendants" part right now).
...
How would I represent something like this
<product>
<sku>12452</sku>
<attribute name="details">good stuff</attribute>
<attribute name="qty">5</attribute>
</product>
for use in my WCF service? Not sure how to define the multiple attributes whose only difference is the "name".
I need this properly setup as a DataMember so xml ...
Hello,
Im stuck on this httpWebRequest problem. I need to send XML to a website. But I keep getting negative responses on my request. I saw some code examples where the ContentLength was set... And that might be the issue but i dont know....
The XML written in writePaymentRequest(...) is exactly as the website needs it to be, because t...
Given a table with an XML column, how can I expand a list stored therein, into a relational rowset?
Here is an example of a similar table.
DECLARE @test TABLE
(
id int,
strings xml
)
insert into @test (id, strings)
select 1, '<ArrayOfString><string>Alpha</string><string>Bravo</string><string>Charlie</string></ArrayOfString>' union...
I've got a little stuck here. My boss has asked me to look into the possibilities of RSS feeds, to use them to show updates of a website. If it was just how to create a simple RSS feed, I would have done it already, no trouble there.
But, he wants some more specific functionalities, as I've so far have had a hard time finding any usable...
In the past I have created a php file that generates the XML and then referenced it in place of the xml file and it has worked. I am trying this with a precompiled flash app and it is not working.
Any ideas why?
It works if I run the script, save it and then reference that file to the swf. I would rather not generate a file to the file...
I'm trying to build an app that uses some xml data using Python's built-in xml.etree.ElementTree class. It works properly when I run from the command line, but when I build it, I get an error "ImportError: No module etree.ElementTree." I'm guessing this is because I'm not importing that module correctly, but I haven't been able to figure...
Hi, I've got some XML files that recently changed so that some of the nodes now have the attribute xsi:nil="true". I've got an XSLT style sheet that renders the XML into HTML for some quick eyeballing of data. Currently to make things easier on myself I strip out the namespaces out of the XML before I apply the style sheet. That worke...
Every time I've searched for something on how to serialize to XML, I found the bean serializers. It seems that everything has to be declared as a property, which defeats my purpose. I want to serialize complex hierarchies (until they get to primitives, of course) in XML, start with (say) a Dictionary or List as the parent object.
What o...
I'm using SQL Server 2008 with Report Builder 2.0 to try and query data from a Sharepoint List, as described in this tutorial. The report is set up to use an XML data source with the connection string set to http://mySharepointSite/_vti_bin/lists.asmx.
However, I cannot seem to get all the fields from the Sharepoint List, even if I spe...
I have some XML to work with, something like this:
<admin_list>
<admin>
<name>user1</name>
<authentication_source>Local</authentication_source>
</admin>
<admin>
<name>user2</name>
<authentication_source>Local</authentication_source>
</admin>
</admin_list>
I can't seem to retrieve a specific ad...
I have a project with huge XML files that I'm copying and pasting into Emacs to edit. It's all on a single line, so I'd like to have a tool to make one XML element per line. Is there an Emacs function that I can use? I guess I'll even settle for a command-line tool that nicely integrates with Emacs, but that's not ideal.
...
So I have a XML structure like this one:
<layout>
<pattern> ... </pattern>
<row> ... </row>
</layout>
How can I select the first node of /layout/ by its index, using xpath?
W3C says:
There is a problem with this. The example above shows different results in IE and other browsers.
IE5 and later has implem...
So I was just looking for basic examples of reading xml structure data with visual basic subs/scripts.
specifically, if possible, how can i take structure data of xml, read the data with some vba, and lay it into excel spreadsheets?
or just a learning resource for this type of thing. thanks very much!
...
I have an application which receives dynamic XML data from a server. The structure of the XML is dynamic and the tags/attribute names cannot be predicted. NO row items can be hardcoded. The data is coming back from a database (imagine columns and rows), and the type of the data is known on the server side. The following is just an ex...
Hello,
I have the following XML as part of my WSDL.
<schema targetNamespace="http://compservice.com" xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://bean.compiere.org"/>
<import namespace="http://xml.apache.org/xml-soap"/>
<import namespace="http://schemas.xmlsoap.org/soap/encoding/" schemaLocati...