xml

Cross Domain RSS (XML) Client Side Only Solution?

Assuming my conditions for building a RSS feed reader were I had to provide only a Javascript snippet. The RSS is cross domain and is only XML. What are my options and how can I implement them? thanks ...

Is it possible to create the following XML using Xdocument and append the relevant protion in subsequent go(C#3.0)

<?xml version='1.0' encoding='UTF-8'?> <StockMarket> <StockDate Day = "02" Month="06" Year="2010"> <Stock> <Symbol>ABC</Symbol> <Amount>110.45</Amount> </Stock> <Stock> <Symbol>XYZ</Symbol> <Amount>366.25</Amount> ...

Sorting based on existing elements in xslt

Hi , I want to sort in xslt based on existing set of pattern . Let me explain with the code: <Types> <Type> <Names> <Name>Ryan</Name> </Names> <Address>2344</Address> </Type> <Type> <Names> </Name>Timber</Name> </Names> <Address>1234</Address> </Type> <Type> <Names...

How to get CDATA of from xml node using xsl ?

Hi All, I am trying to fetch CDATA section of XML node using XSL. Node looks like; <node id=1 text="Book Information" ><![CDATA[This is sample text]></node> Does anyone have any idea about this? Thanks in advance. ...

to change xml data to ArrayCollection

I have xml file with data as below and i want to convert this into Flex ArrayCollection including the id and name of the tags. I am using httpService to get the file. data.xml <data> <result month="Jan" value="0.666"> <info id="jan01Display" name="jhon" age="20" /> <info id="jan02Display" name="adams" age="24" /> <info ...

Should I create a new extension for an xml file?

I'm working with a data model stored in XML files. I want to create some metadata for the model and store it alongside, but would like to be able to distinguish between the two. The data model is imported into some software from time to time and we don't want it to try to import the meta data files. To get round this, I've been thinking ...

Call a web service and parse xml response in blackberry

Hello All... Currently I have a ready design for blackberry application. Now, I need to call the web service in my app, and that web service will give me some xml response. So, I need to parse that response from xml to some POJO. So, for parsing the xml response should I go with the basic DOM praser, or should I use any other J2ME sp...

Add Header section to SOAP request using SOAPpy

Hello! I need to construct this SOAP query using python SOAPpy module: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt; <soap:Header> <LicenseHeader xmlns="http://schemas....

How to check if a node's value in one XML is present in another XML with a specific attribute?

The question seems to be little confusing. So let me describe my situation through an example: Suppose I have an XML: A.xml <Cakes> <Cake>Egg</Cake> <Cake>Banana</Cake> </Cakes> Another XML: B.xml <Cakes> <Cake show="true">Egg</Cake> <Cake show="true">Strawberry</Cake> <Cake show="false">Banana</Cake> </Cakes> ...

TouchXML - reading only certain elements

Hey everyone, So I have an XML file and am using TouchXML to read it. There are only some elements in the XML file that I require. So I created a class 'Contact' with properties that I wish to save from the XML file. What i've come up with so far is this: NSMutableArray *res = [[NSMutableArray alloc] init]; CXMLDocument *doc = [[[...

How to make google search show my website like this

When searching for some websites on google, it shows the first result like this: eBay - New & used electronics, cars, apparel, collectibles Motors Computers & Networking Electronics Home & Garden Clothing, Shoes & Accessories Cell Phones & PDAs Sporting Goods I guess it ha...

XHTML 5 Prologue vs XHTML 1 Prologue

Are there any differences between prologues of XHTML 1 and XHTML 5? Is it possible to find out whether a document is XHTML 1 or XHTML 5 simply by looking at its prologue? ...

How to query an EF model (EDMX document) with XPath.

I'm trying to write a utility that automatically sets the ProviderManifestToken attribute in an EDMX document Schema element, but even my basic XPath is not working. What am I doing wrong? The XML: <?xml version="1.0" encoding="utf-8"?> <edmx:Edmx Version="1.0" xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx"&gt; <!-- EF R...

find value by tag name in xml

How can I find value by tag name in xml file? using C#.net 2.0 There are just 10 distinct nodes in my xmldocument. I dont want to write xpath. I think there is an auto find property. ...

Android sax with rdf

Hi, i try to parse an rdf file using android.sax and android.utils.Xml methods. My parser ouputs nothing and don't send any exception. RDF file: <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss1full.xsl"?> <?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedb...

Deserialize Xml with empty elements in C#

Trying to deserialize some xml snippits from a vendor into objects. The problem is that I'm getting an invalid format on every empy element tag. I can deserialize the object no problem when all of the elements have values. Or the empty elements are ommitted. Xml Snippit: <foo><propOne>1</propOne><propTwo /></foo> C# Class: ...

Does using "JSP Document" / "JSP in XML notation" imply outputting XHTML?

I'm really not sure about this: does using "JSP Document" / "JSP in XML notation" imply outputting XHTML? If so, is there anything special to look after as to produce a "valid" XHTML page? More specifically: can I have a valid "JSP Document" (JSP in XML) that is producing an invalid XHTML page? ...

JavaScript, jQuery, XML - if statement not executing for unknown reason

Hi, I have a 'for' loop which extracts data from an XML document and adds it into some JavaScript objects, each time the loop executes I want it to run a certain function depending on the value of the attribute 'typ' which is being retrieved from the xml. Currently, the data from the XML is successfully being parsed, which is proven by...

BaseX XML database code

I'm a student of computer science and we have to use BaseX (a pure Java OSS XML database) in one of our courses. While browsing through the code I discovered the following piece of code: /** * Returns a md5 hash. * @param pw password string * @return hash */ public static String md5(final String pw) { try { ...

JavaCC: How can one exclude a string from a token? (A.k.a. understanding token ambiguity.)

Hello, everyone! I had already many problems with understanding, how ambiguous tokens can be handled elegantly (or somehow at all) in JavaCC. Let's take this example: I want to parse XML processing instruction. The format is: "<?" <target> <data> "?>": target is an XML name, data can be anything except ?>, because it's the closing tag...