I think that html is the easiest thing to learn when you are starting to learn about web, scripting and programming. I know that html is not like real programming languages, but that's not the point of the discussion. So, wouldn't it be nice if people could script their programs in a html way, like XML?
I've searched on google for a whi...
tl;dr: I want to load an XML file once and reuse it over and over again.
I have a bit of javascript that makes an ajax request to a PHP page that collects and parses some XML and returns it for display (like, say there are 4,000 nodes and the PHP paginates the results into chunks of 100 you would have 40 "pages" of data). If someone cli...
Hi, i'm trying to read a xml/atom file, the code is:
$.ajax({
type: 'GET',
url: options.url,
data: options.data,
dataType: 'xml',
async:options.async,
success: function(xml) {
var feed = new JFeed(xml);
if(jQuery.isFunction(options.success)) options.success(feed);
...
I'm struggling to parse an XML file in PHP:
Here's the XML
<rss xmlns:ac="http://palm.com/app.catalog.rss.extensions" version="2.0">
<channel>
<title>Device App Updates for US</title>
<link>http://www.palm.com</link>
<description>Updates</description>
<language>en-US</language>
<pubDate>Mon, 04 Jan 2010 18...
Hello
I Use XJC tool to generate Java classes for my XSD schema. When I use JAXB Marshaller to marshall classes into XML payloads, I'm missing "schemaLocation" parameter in the output XML, but I declare this parameter in xsd file. How to enforce "schemaLocation" parameter in the output XML?
Below is the beggining of my xsd schema file ...
Hello,
I have been asked to parse a simple file which is stored as an XML file, the data is to be then put into a mysql database.
However I have absolutely no clue what to do and after looking online all the examples given seem either too complicated for my problem or not the right solution. The XML file looks like this:
<shop>
<produc...
I need a loop up to a specific node position() and sum of these nodes. For example:
if my position is 2 then node[1] + node[2]
if my position is 5 then node[1] + node[2] + node[3] + node[4] + node[5]
How can that be done in XSLT?
do have following xml
<?xml-stylesheet type="text/xsl" href="sum.xsl"?><root><FIDetail Node1="5" Nod...
I am trying to write a simple location lookup call with jQuery and the yahoo maps service. i.e. A user puts a location into a search box and as they are tying jQuery calls a page on my site that returns the XML from yahoo.
Geocode.aspx.cs
protected void Page_Load(object sender, EventArgs e)
{
var url= "http://local.yahooapis.com/Ma...
How to convert XML to something else using xslt stylesheet?
In C++ C# PHP or ActionScript?
For example I have this html2wiki xslt stylesheet I want to send to my programm my XML (in this case HTML file ) and get back a file (in this case Wiki mark up text )
So How to translate one text file into another text file using XSLT styles...
I am storing data in XML databases. Now I want users to be able to edit certain records. E.g. my db could look like this:
<items>
<item id="1">
<prop_a>some text</prop_a>
<prop_b>TRUE</prop_b>
<prop_c>29.01.2010</prop_c>
...
</item>
// next item and so on
Is there a tool which can generate a html form (for which ...
Hi.Is there a way to tell JAXB to not remove underscores when creating getter/setter names from XML Schema?
Reason: this causes loss of information and it is harder to trip between XML and Java; e.g. in written communications where one participant might be confused about "different names".
Example: NR_ROR should not become getNRROR but...
I have a simple site put together to play a few flash videos. I have the information for the videos and their related comments stored in an xml file. I use SimpleXML to iterate through all of this and display the stuff in reverse chronological order. Everything works perfectly in IE8, Safari, and Chrome, but in Firefox the same video (t...
I am trying to declare private variables that will be used elsewhere in my flex mxml main application. But I need to only create the variables when their is an equal number in my xml file.
My xml snippet looks like this:
<POIs>
<location>
<name>jane</name>
<lat>12345</lat>
<long>12345</long>
...
Hi,
I'm having a lot of trouble with unicode (UTF-16) values and PHP/XML. I want to read a set of unicode values from XML and output the correct glyphs to the browser. I've tried with UTF-8 and I get the same problem.
This is a simple working example I used for my first test:
$text = "\x00\x41";
$text = mb_convert_encoding($text, "AS...
In Powershell,
suppose I have the following xml:
<Users>
<User Name="Foo">
<Friends>
<Friend Name="Bar"/>
</Friends>
</User>
<User Name="Foo2" />
<User Name="Foo3">
<Friends>
<Friend Name="Bar"/>
</Friends>
</User>
</Users>
How can I get all the users that have a "Bar" as...
Hi Guys,
Is it possible to extract the node name using apache digester?
So, if the xml looks like
<furniture>
<sofa>
.....
</sofa>
<coffeeTable>
.....
</coffeeTable>
</furniture>
is it possible to extract the node name "sofa", "coffeeTable"?
I know it is possible using xpath but is it possib...
Hello all,
I have an XML document built with
org.xmlpull.v1.XmlSerializer
This document contains following XML prolog
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
When I try to parse this document using
import org.xmlpull.v1.XmlPullParser;
with following configuration code
XmlPullParser pullParser = Xml.newPullPar...
For a custom application I need to transform xhtml to (custom) xml. After some experimentation I decided to give php5's XSLT functionality a try, but so far I'm unable to transform nested p tags to their xml equivalent.
Basicly we have code like this:
<p>Some text</p>
<ol>
<li><p>Some more text</p></li>
..
</ol>
This needs to b...
I'm trying to ascertain what should happen when an XML parser reads in attribute a of element x in the sample below:
<!DOCTYPE x [
<!ELEMENT x EMPTY>
<!ATTLIST x a CDATA #IMPLIED>
<!ENTITY d "
">
<!ENTITY a "
">
<!ENTITY t "	">
<!ENTITY t2 " "><!-- a real tab-->
]>
<x a="CARRIAGE_RETURNS:(&d;
),NEWLINES:(&a;&...
We use Visual Studio 2008 to generate a sample XML from a XSD.
The XML that is generated is UTF 8, but we need UTF 16. Is there any way to do this?
...