I have a List which is populated with objects of various concrete types which subclass BaseType
I am using the WCF DataContractSerializer
<Children>
<BaseType xmlns:d3p1="http://schemas.datacontract.org/2004/07/Tasks"
i:type="d3p1:ConcreteTypeA"></BaseType>
<BaseType xmlns:d3p1="http://schemas.datacontract.org/200...
I'm having a problem accessing the contents of an XML document.
My goal is this:
Take an XML source and parse it into a fair equivalent of an associative array, then store it as a persistable object.
the xml is pretty simple:
<root>
<element>
<category_id>1</category_id>
<name>Cars</name>
</element>
<element>
<category_id>2...
this page shown an xml file and im trying to use simplexml to parse the data out and print it. what am i missing? cause all it does is show a blank page when i run it.
<?php
$url = "http://api.scribd.com/api?method=docs.getList&api_key=somestring";
$xml = new SimpleXMLElement($url,NULL,true);
foreach($xml -> result as $value) {
...
I am in a need of programatically convert an Word-XML file into a RTF file. It has become a requirement, because of some third party libraries. Any API/Library that can do that?
Actually the language is not a problem because I just need to work done. But Java, .NET languages or Python are preferred.
...
Hi all,
I am going to develop an application which will parse the RSS feeds and display the items in my custom cell.(Cell containing the image, label, description, etc). The most popular way of parsing is using the NSXMLParser. But this is bit of a lengthy way. So is there any other way to do this. Or my question will be, which is the b...
I would like to define the z order of the views of a RelativeLayout in Android.
I know one of doing this is calling bringToFront.
Is there are better way of doing this? It would be great if I could define the z order in the layout xml.
...
This is really just a syntax question.
I have a PHP script that parses my WordPress feed and returns the latest posts. I also want my script to parse the # of comments, but the WordPress feed XML object for number of comments has a colon in it (slash:comments). It causes the following error:
Parse error: syntax error, unexpected
...
here is the page i want to parse
(the api link i gave is just a dev test so its ok to be public)
http://api.scribd.com/api?method=docs.getList&api_key=2apz5npsqin3cjlbj0s6m
the output im looking for is something like this (for now)
Doc_id: 29638658
access_key: key-11fg37gwmer54ssq56l3
secret_password: 1trinfqri6cnv3gf6rnl
titl...
Hiya,
I'm trying to use the Last.fm API for an application I'm creating, but am having some problems with validation.
If an API request gives an error it returns a code and message in the response XML like this:
<lfm status="failed">
<error code="6">No user with that name</error>
</lfm>
However, the request also returns an HTTP stat...
Tried to implement a small XML validation tool with XercesC.
For some reason I cannot use existing validators right from the box - I need some preprocessing and would like to combine it with validation in a single tool.
I used DOM parser and specified DOMErrorHandler.
Instead of a set of errors with detailed messages like I saw from xml...
When we use a namespace, we should also indicate where its associated XSD is located at, as can be seen in the following example:
<?xml version="1.0"?>
<Artist BirthYear="1958"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.webucator.com/Artist"
xsi:schemaLocation="http://www.webucator.com/Artist Artist.xsd"...
Where can I find a good XMPP (Jabber) tutorial with detailed information on the XML that's sent to/from a Jabber client and server. I've looked at the xmpp.org website, but what they show there is confusing and doesn't help me learn.
I want to write an XMPP client in C# that uses a TcpClient to connect to the server and send/receive XML...
Here's my jQuery:
var docname = $('#doc').val();
function parseXml(xml)
{
$(xml).find("rsp").each(function()
{
alert("success");
});
}
$('#submit').click(function() {
$.ajax({
type: "GET",
url: "img_upload.php",
data: "doc=" + docname,
dataType: "xml",
success: parseXml
});
return false;
});
Not...
I'm looking for a streaming xml pretty printer for C/C++ that's either self contained or that uses libxml2 or expat and has a BSD-ish license. I've searched a bit and not found one. It seems like something that would be generally useful. Am I missing an obvious tool that does this?
Background: I have a library that outputs xml without w...
Hi, i'm trying to learn a little bit XSD and I'm trying to create a XSD for this xml:
<Document>
<TextBox Name="Username" />
<TextBox Name="Password" />
</Document>
... so there's an element, which is an abstract complex type. Every element have elements and so on. Document and TextBox are extending Element.
I trid this:
<?xml v...
I'm trying to build a player for a radio station that automatically updates the current song from an XML file, the problem is that I don't want it to update the UI (updateSongIMG) unless the song has actually changed. I have a hidden div called settings_songid that stores the song id and it should check that against a value in the XML fi...
My website will use a Neural Network to predict thing based on user data. The user can select the data to be used in training the network and then use their trained network to predict things.
I am using a framework to create, train and query the networks. This uses Java. The framework has persistence for saving a network to an XML file....
hi helpful people,
i'm trying to get my old blogger blog feed URL (/blog/atom.xml) to redirect to my new blog feed URL (/blog/feed). A regular 301 redirect didn't work, and the advice given on the wordpress site, which is:
RewriteRule ^oldfeed.php(.*)? /wordpress/?feed=newfeed [QSA]
isn't quite cutting it either - probably because i'm...
What can be the problem here?
...
I'm going to be doing some webscraping and my plan is to have something like this:
public class Searcher
{
public void Search(string searchTerm)
{
}
private void Search(string term)
{
//Some HTMLAgilityPack Voodoo here
}
private void SaveResults()
{
//Actually save the results as .XML f...