I always think of xml like a set data structure. Ie:
<class>
<person>john</person>
<person>sarah</person>
</class>
Is equivalent to:
<class>
<person>sarah</person>
<person>john</person>
</class>
Question One: Are these two things logicly equivalant?
Are you allowed to make things like this in xml?
<methodCall>
<param>h...
If i have an xml of the form
<Details>
<Detail>
<Name1>Value1</Name1>
<Name2>Value2</Name2>
</Detail>
...
</Details>
And i define a class in my c# code for Detail and provide setters/getters for Name1, Name2 etc
is there an api to directly read the xml and create Detail objects.
...
I'm having some trouble with XSL-processing when there are stylesheets that include other stylesheets relatively.
(the XML-files may be irrelevant but are included for completeness - code is at the bottom).
Given the XML-file:
<?xml version="1.0" ?>
<famous-persons>
<persons category="medicine">
<person>
<firstname> Edward </fi...
Hi,
For a web service I'm developing I would like my embedded code (on the client's site) to fetch an xml file from my sever script which resides on my domain.
As this is a cross-domain request I figured to use jsonp as it seems the de facto standard for such apis. However, for my application it would be easier for me to use xml inste...
I'm submitting to a rails webservice the following message:
xmlPostData = "<message>
<message-text>" + MESSAGE_WITH_XML + "</message-text>
<name>" + subject + "</name>
<f1>" + toPhone + "</f1>
<f2>" + fromPhone + "</f2>
</message>";
The problem...
hi,
How to select items whose sub-tag key's text starts with '001'?
<root>
<item>
<key>001001</key>
<text>thanks</text>
</item>
<item>
<key>001002</key>
<text>very</text>
</item>
<item>
<key>002001</key>
<text>much</text>
</item>
</root>
$(xml).find("item>[filte...
I have an xml document that was serialized into a byte stream and persisted to a database. I any get the byte stream back, but how do I convert it into an xml file again?
...
I'm using a flash rotating banner in my website which takes images and descriptions from an XML file.
I do changes to my XML very often... but in my local machine, the banner takes a day or two to get updated.
Although I can clear my local machine's cache, the problem still remains for other users who visit my web page..
is there a ...
Hi. I'm currently exporting a database table with huge data (100000+ records) into an xml file using XmlTextWriter class and I'm writing directly to a file on the physical drive.
_XmlTextWriterObject = new XmlTextWriter(_xmlFilePath, null);
While my code runs ok, my question is that is it the best approach? Or should I write the whole...
I have an application that performs a little slow over the internet due to bandwidth reasons. I have enabled GZip which has improved download time by a significant amout, but I was also considering whether or not I could switch from XML to JSON in order to squeeze out that last bit of performance. Would using JSON make the message size s...
This script works with and without XPathContext. Why should I use it with XPathContext?
#!/usr/bin/env perl
use warnings; use strict;
use XML::LibXML;
use 5.012;
my $parser = XML::LibXML->new;
my $doc = $parser->parse_string(<<EOT);
<?xml version="1.0"?>
<xml>
Text im Dokument
<element id="myID" name="myname" style="old" />
...
I'm spinning my wheels on this. How do I get the values from the following nested elements from the XML below (I've also put my code below)? I am after the "descShort" value and then the capital "Last" and capital "change" :
<indices>
<index>
<code>DJI</code>
<exchange>NYSE</exchange>
<liveness>DELAYED</liveness>
<indexD...
I am having some problems parsing this piece of XML using SimpleXML. There is always only one Series element, and a variable number of Episode elements beneath. I want to parse XML so I can store the Series data in one table, and all the Episode data in another table.
XML:
<Data>
<Series>
<id>80348</id>
<Genre>|Acti...
When I try to load a xmlfile which has the '%' in an attribute, I get a XmlException at the position of the '%'. See at the Example in the tag 'humidity'
<current_conditions>
<condition data="Klar"/>
<temp_f data="63"/>
<temp_c data="17"/>
<humidity data="Feuchtigkeit: 30 %"/>
<icon data="/ig/images/weather/sunny.gif"/>
<win...
I am using "HtmlAgilityPack" to parse HTML content.
My target is to get number value.
<div>
some content 1
<br>
some <b>content</b> 2
<br>
<b>NUMBER:</b>
9788492688647
<br>
some content 3
<br>
some content 4
</div>
aim:
- get "9788492688647"
Anybody can tell me how to get value between /d...
I have XML:
<point>
...
<longitude>34.123123</longitude>
</point>
<point>
...
<longitude>11.12534534</longitude>
</point>
<point>
...
<longitude>32.567653</longitude>
</point>
<point>
...
<longitude>33.345345</longitude>
</point>
...
Task:
get values of <longitude> in javascript (in variable).
Whic...
When i use
new XStream().toXml(someObject);
it returns following xml...
<response>
<status>SUCCESS</status>
<isOwnershipVerified class="boolean">false</isOwnershipVerified>
</response>
and, when i use
new XStream(new JsonHierarchicalStreamDriver()).toXml(someObject);
it returns following json...
{"response": {
...
I'm working on a web based form builder that uses a mix of Jquery and PHP server side interaction. While the user is building the form I'm trying to determine the best method to store each of one of the form items before all the data is sent to the server. I've looked at the following methods
Javascript arrays
XML document
Send each fo...
Where is the documentation for quartz xml files (specifically jobs.xml)? I found the javadoc online, but I can't seem to find the documentation for how to write an xml file, just some brief examples e.g. this one from O'Reilly.
edit: apparently the java class that reads the jobs.xml is JobInitializationPlugin, but I don't see the docs f...
Hi, I'm using this XML classes for the first time and can't find this piece of info.
I'm doing:
xmlDoc = new XDocument(new XDeclaration("1.0", "utf-8", "yes"));
xmlDoc.Add(new XElement("Images"));
xmlDoc .Save("C:\\Backup\\images.xml");
But doesn't work. It only works if I use just the filename, like "images.xml", but of course, the...