xml

XSLT is duplicating a Description when I recurse XML

Hi All, I am using XSLT to recurse some XML and then apply some HTML to the output. It will recurse the data, but it duplicates the parent item description and I am not sure why? I am sure it is right in front of my face, but I don't see it. It is inserting right after the <ul> tag when it goes to the next level in the XML. XML Example...

How can I get a feed of NFL players and their positions and teams?

I saw a post about player stats and data. All I want is a list of NFL players. Is there an easy way to find this data for free? Will I have to scrape it off a website or do it by hand? If scraping is the route to take, can someone offer documentation, or library to help do this with php? ...

Efficient XML parsing in Java | Equivalent of C# XmlDocument in Java

Below is my XML structure <values> <inputs> <input>one</input> <input>two</input> </inputs> <inputs> <input>one</input> <input>three</input> </inputs> </values> GOAL : Want to put all input node values into a collection I can write SAX/DOM parser, read based on the node name and put each value into the collection. Is that the mo...

How can I extract child values from XML with Perl's XML::Twig?

I am parsing the XML file and trying to access the values in XML file. #!/usr/bin/perl -w use strict; use XML::Twig; my $file = 'files/camelids.xml'; print "File :: $file\n"; my $twig = XML::Twig->new(); $twig->parsefile($file); # print "twig :: $twig\n"; my $root = $twig->root; # print "root :: $root\n"; my $num = $root->children(...

Trying to study Android Development, but I don't know Java

I've been studying Android Development for the past week or so. The xml stuff is pretty easy to understand. However, I have NO knowledge of java. Whenever the documentation says to do callbacks to the .java file and use oncreate() I get confused and see nothing but errors. Is there an easy way to understand the java stuff? I'm very motiv...

What is the most efficient way to store and parse data in AS3?

What way of reading and storing data is fastest for AS3. For debugging right now it is just reading the raw XML, but I suspect it would be faster if I made them into nested arrays. Would parsing the XML into nested arrays to be read later be the most efficient method?, or is there a better way to read lots of data? ...

More efficient way of looping in JavaScript to display XML data?

Hi there. Can you please look at my JavaScript and let me know if there's a more efficient way to write it in terms of looping through my XML? My JavaScript code looks like this: <script type="text/javascript"> function loadXMLDoc(dname) { xhttp=new XMLHttpRequest(); xhttp.open("GET",dname,false); xhttp.send(); return ...

ColdFusion "system has attempted to use an undefined value" Null Pointers

So I have this error on a feed that magically stopped working for no reason. The error i get is "The system has attempted to use an undefined value, which usually indicates a programming error, either in your code or some system code. Null Pointers are another name for undefined values. " OK, i look up Null pointers and Ben Nadel (god...

send xml data to server and get response

i am making an app in which user's data is send to a server...the data should be in xml format. presently i have made a string and put all into it...like following format NSString *s=[[NSString alloc]initWithFormat:@"%@%@",name.text,address.text]; (this is just an example i have made a string with full xml tags including xml version tag...

Strange Problem when Handling xml using DOM ,PHP

I want to handle a xml like this: <GeocodeResponse> <status>OK</status> <result> <type>street_address</type> <address_component> <long_name>Beijing</long_name> <short_name>Beijing</short_name> <type>locality</type> <type>political</type> </address_component> <address_component> <long_name>Beijing</lon...

Sorting xml with either repater/xml functions in vb.net

Hi! I need to sort and choose only the last 5 inputs to my xml, Ill give you an idea of how my xml looks like. <News> <Article> <Headline>First</Headline> <Content>First</Content> <ID>1</ID> </Article> <Article> <Headline>Second</Headline> <Content>Second</Content> <ID>2</ID> </Article> </News> And im ...

Transform SQL table to XML with column as parent node

Hi, I'm trying to transform a table to an XML struture and I want one of the columns in my table to represent a parent node and the other column to represent a child node. I have got part of the way but I don't have the complete solution. I need the TABLE_NAME column to transform to a xml parent node and the COLUMN_NAME column to trans...

XSLT problem during transformation

<xsl:stylesheet xmlns="http://www.w3.org/1999/xhtml" version="1.0" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:infoRequest="ControlSkin3" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="xmlns"> <xsl:output omit-xml-declaration="yes" method="xml" encoding="utf-8" /> I've got...

How to display Data from RSS Feed in Parts in Iphone Application

Hi all. I am displaying RSS feeds in my table view. as there are hundred of feeds so my application takes lots of time to load them and display them i want to load just first 25 feed and display them in Table view and when User Click on More 25 application load next 25 and display them. Any Idea........... :) I am using TouchXML t...

Reading XML file in C# with XpathNavigator

I am trying to read the book.xml file provided as an example on the MSDN website. <?xml version="1.0" encoding="utf-8" ?> <bookstore> <book genre="autobiography" publicationdate="1981-03-22" ISBN="1-861003-11-0"> <title>The Autobiography of Benjamin Franklin</title> <author> <first-name>Benjamin</fir...

xml as input for a .net 4.0 webservice

We're rewriting our 2008 VS website in 2010 and I have just gotten to our webServices and when I went to test them out I'm getting the Cross Site Scripting message because we need to accept XML as our input. I've seen all over the web where people are just putting the following into the web.config and I would rather not take our site ba...

Can't get this XPath to work...

Hi all, I have some XML: <metadata> <dataIdInfo> <idCitation> <resRefDate> <refDate>1996</refDate> <refDateTyp> <DateTypCd value="007" /> </refDateTyp> </resRefDate> <resRefDate> <refDate>1998</refDate> <refDateTypCd> <DateTypCd value="003" /> <...

How can I generate XML from the JSON Data using c#?

I have the JSON data something like below: { "#data": [ { "nid": "814", "type": "resource", "language": "", "uid": "125", "status": "1", "title": "title 1", "description": "description 1", "rating": "5", "picture": "" ...

Android color xml resource file

Does anyone have or know where I might get an Android color xml resource file containing all the X11/w3c color codes? ...

Xerces C++ XML: escape is really hard to do?

I am using Xerces library, everything is fine to use but now I want to escape the XML string and I found there is a XMLFormatter class used for that, after I dig into the doc, I see it is really hard to use from the constructor perspective. What I want is just 2 functions: string escape(string); string unescape(string); why xerces mak...