This code can't read a specific attribute - the name attribute more specifically.
Instead it read the text of node elements and does a concat on them - result: 1F20 is added to the list
var reader = new StringReader(xml);
var xmlreader = new XmlTextReader(reader);
xmlreader.WhitespaceHandling = WhitespaceHandling...
Is there an .NET-enabled embedded database (like SQLite.NET) with support for XML?
It doesn't matter for me if it is SQL or NoSQL, XPath, document-oriented or not.
I just know of BerkeleyDB XML, but this project is still alha and seem to be dead for a year.
...
How can I get the SOAP header of my web service function as xml?
I need an XML version of my working SOAP header to use as an example for someone with broken SOAP headers. He's using a different programming language, but since the headers are sent in XML, we're hoping we can compare those easily. I'm using C# and ToString() just give...
I am creating an Android application that connects to the Fogbugz XML API (sends a request to the API, receives back an XML file). Right now, I am creating a service that will handle these requests, and parse each in order to access usable information. What would be the best way to do this? If I am getting an inputStream, should I use th...
I want to compress XML in Flex, send it to Java, decompress it in Java and recompress it in Java, resend it to Flex, decompress it and use it.
How to do please ? thnx
...
http://soulseekrecords.org/psysci/animation/tarot.html
If you go to that page and click the deck of cards. Some clicks don't work. Most clicks do. This onclick problem also happens when testing the movie in flash.
//import tweening files
import com.greensock.*;
import com.greensock.easing.*;
import flash.display.MovieClip;
import flash...
I have writen my own xml schema and one large xml file that is an instance of that schema. Now I would like to define include element in my xsd so that xml file can be made out of several smaller units. How do I do that?
For example in my file I have
<item>1</item>
<item>2</item>
<item>3</item>
<include src='foo.xml'>
and foo.xml has...
I have the following xml
<?xml version="1.0" ?>
<Persons>
<Person>
<Id>1</Id>
<Name>someone</Name>
</Person>
<Person>
<Id>2</Id>
<Name>someone2</Name>
</Person>
</Persons>
and the following xsl file for it
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas...
I am presently using SAXParser with SAXParserFactory, and I have run into a problem with strings being cuttoff at '&' symbols. For example: "Nation Created Our World & everything in it" becomes "everything in it".
Obviously, I dont want this to happen. In the xml input, the character is properly escaped as &. How can I resolve this...
Hi, I have this class defintion:
@XmlRootElement
public class RssRoot {
private String _version;
private String _xmlns_content;
@XmlAttribute()
public String get_version() {
return _version;
}
@XmlAttribute()
public String get_xmlns_content() {
return _xmlns_content;
}
public void set_version(String version) {
_version = ...
Hi I have an XML file that's structured like this:
<foo>
<bar></bar>
<bar></bar>
...
</foo>
I don't know how to grab a range of nodes. could someone give me an example of an xpath expression that grabs bar nodes 100-200.
...
I am currently writing an application to manage some customers. The customers have some relations like orders. You can imagine this like the northwind database. I want to save the data in an xml file. My application should read, modify and save the data. I think, there are two approaches. The first approach is to save, read and modify th...
This block of code essentially takes a JAXB Object and turns it into a JSONObject
StringWriter stringWriter = new StringWriter();
marshaller.marshal(jaxbObj, stringWriter);
try {
JSONObject jsonObject = XML.toJSONObject(stringWriter.toString());
resp.getOutputStream().write(jsonObject.toString(2).getBytes());
} catch (J...
Hi,
I want to create a dynamic (fetching data from the database) XML sitemap which I can submit to Google webmaster tools.
Surprisingly, I couldn't find any recent controls/code online to do this. The most recent code I found was this http://weblogs.asp.net/bleroy/archive/2005/12/02/432188.aspx which is for ASP.Net 2.0. I don't mind u...
Hi
I'm using textview objects to hold labels such as Score, Level etc on my game screen but they don't seem to be displayed where I want them to be. I understand about view hierarchies (parents, children) and am using the gravity tags in the XML layout file but it doesnt seem to have any effect.
Could someone just quickly provide a gu...
So, using that
<xsl:for-each select="./@*">
[<xsl:value-of/><xsl:value-of select="."/>]
</xsl:for-each>
I can iterate over attribute values.
But I want to see attribute names too.
I want see a table:
attr1 - val1
attr2 - val2
attr3 - val3
...
Thanks for help!
...
Why does parser is cutting url to this:
inside node:
http://img844.imageshack.us/content.php?page=done&amp;l=img844/4783/php4dd.jpg
after parse:
[done_page] => l=img844/8828/php4e8.jpg
private function _parse($result)
{
$XMLparser = xml_parser_create('UTF-8');
xml_set_element_handler(
$XMLparser,
Array($this, 's...
Sometimes I want to emulate stored data of my classes without setting up a round trip to the database. For example, let's say I have the following classes:
public class ShoppingCart
{
public List<CartItem> Items {get; set;}
public int UserID { get; set; }
}
public class CartItem
{
public int SkuID { get; set; }
public ...
Is it possible to skip nodes when parsing and how, does this skippedEntity have anything to do with it?
Consider this XML :
<?xml version="1.0"?>
<nutrition>
<daily-values>
<total-fat units="g">65</total-fat>
<saturated-fat units="g">20</saturated-fat>
<cholesterol units="mg">300</cholesterol>
<sodium units="mg">2400<...
Hi,
I have been trying to output XML with php but encountered a strange(!) error in Internet Explorer.
The expected xml output is this:(simplified)
<root>
<match_id>12</match_id>
<stadium_id>43</stadium_id>
<tribune_id>2</tribune_id>
<fan_id>453</fan_id>
</root>
I am producing this output with the following php code:
echo "<?xml v...