I have an XML file with company data in it, for 30 companies across 8 industries, on a portfolio page. The user has the option to sort this data by Industry, and this XML file will be added to constantly.
This sorting is done in my XSL file using <xsl:choose>. Example:
<xsl:when test="(invest[@investid='con'])">
<xsl:for-each selec...
I've been working on a piece of software where I need to generate a custom XML file to send back to a client application. The current solutions on Ruby/Rails world for generating XML files are slow, at best. Using builder or event Nokogiri, while have a nice syntax and are maintainable solutions, they consume too much time and processing...
I'm a newbie to C#.
I want to develop C# List box in Windows Form. I found this link to be helpful.
But the input to the List box will be an XML of the following format:
<LISTBOX_ST>
<item><CHK></CHK><SEL>00001</SEL><VALUE>val01</VALUE></item>
<item><CHK></CHK><SEL>00002</SEL><VALUE>val02</VALUE></item>
<item><CHK></CHK><SEL>00003</SE...
I need to create a service that:
accepts HTTP requests (with query string or HTTP POST parameters)
does some processing on the requests (checking if the request is valid, authentication etc.)
reads data from a custom store (another HTTP call in our case)
returns the result as custom XML (defined with XSD)
I'm trying to think of vario...
When there are special characters like & in the xhtml the DOM / SAX parser throws parse exception. The xhtml document is got as an input for my component. I want to ignore such special characters when i parse. How can i achieve it using DOM/SAX JAVA parser.
...
I've been googling for a while to try and convert and incoming XML request into an active record object. I've tried using the ActiveRecordObject.new.from_xml method but it doesn't seem to handle relationships.
For example, say I have the following xml:
<blog>
<title></title>
<blog-pages>
<blog-page>
<page-number></page-nu...
I'm working with an XML document where a tag must either have one set of attributes or another. For example, it needs to either look like <tag foo="hello" bar="kitty" /> or <tag spam="goodbye" eggs="world" /> e.g.
<root>
<tag foo="hello" bar="kitty" />
<tag spam="goodbye" eggs="world" />
</root>
So I have an XSD schema where ...
I have very little experience designing databases, and now I want to create a very simple database that does the same thing I have previously had in xml. Here's the xml:
<services>
<service type="writing">
<small>125</small>
<medium>100</medium>
<large>60</large>
<xlarge>30</xlarge>
</service>
<service type="analys...
Hello!
I have this html code:
<table>
<tr>
<td class="test"><b><a href="">aaa</a></b></td>
<td class="test">bbb</td>
<td class="test">ccc</td>
<td class="test"><small>ddd</small></td>
</tr>
<tr>
<td class="test"><b><a href="">eee</a></b></td>
<td class="test">fff</td>
<td class="test">ggg</td>
<td class="test"><small...
I have the following XML:
<root>
<name>The name</name>
<long>
<path>
<value>Some Value</value>
</path>
</long>
<field>/root/name</field>
<field>/root/long/path/value</field>
</root>
and I want to select these paths in the field tags however, when I try the following:
<xsl:value-of select="/root/field[1]" />
...
This is my xml result return from facebook
<fql_result_set list="true" xmlns="http://api.facebook.com/1.0/">
<comment>
<object_id>340982187784
</fql_result_set>
<fql_result_set list="true" xmlns="http://api.facebook.com/1.0/">
<fql_result_set_elt list="true">
<fql_result_set_elt_elt key="object_id">340982187784811202...
Hey guys,
I'm having some trouble storing the results of an RSS feed in my Flex 4 app. Here is the variables view, showing the result of the HTTPService which gets the feed:
And here is the code I use to store the result:
public var rssXML:XML;
rssXML = event.result as XML;
But after this code is run, rssXML is still null. What am...
I have to parse a xml file in C++. I was researching and found rapidxml library for this.
I have doubt about "doc.parse<0>(xml)"
can xml be .xml file or it needs to be a string or char *?
If can take only string or char * then I guess I need to read the whole file and store it in a char array and pass the pointer of it to the functio...
I've posted the same question here and I've also got couple of good answers as well. While I was trying the same answers, I was getting compilation errors. Later I got to know that we are using .NET 2.0 and our existing application has no references to LINQ files.
After searching in SO, i tried to figured out partly:
public partial cla...
HI Guys,
I have a java code to read XML nodes, I want to add in the addition and want to read the parent node value also.
my XML file sample is below:
<breakfast_menu><food id=1><name> Belgian Waffles </name><price> $5.95 </price><description> two of our famous Belgian Waffles with plenty of real maple syrup </description><calories>...
Hi
i am working with java and jsp for mail project i want to redirect the page with xml r by some way when the session is expired
or i want to deactivate the window when session is expired...
please help me..
thanks in advance...
...
Hello, I need to parse large XML Feeds (>100 mb) and persist into mysql database. XML files are well formatted and contain many child elements. I was thinking to use Java + XMLbeans and SAX to process the XML feeds and persist.
Please suggest me right approach to handle this case. I am worried about performance.
thanks in advance.
...
Hi, I wanna insert in second line :
<?mso-application progid="Excel.Sheet"?>
but I'm started to think that it is impossible.
Here is my base code:
XmlDocument doc = new XmlDocument();
XmlReader reader = cmd.ExecuteXmlReader();
doc.LoadXml("<results></results>");
XmlNode newNod...
Hey Guys,
analogue to this one (http://stackoverflow.com/questions/2788345/replacing-xml-in-file-from-document-in-java or
http://www.exampledepot.com/egs/javax.xml.transform/WriteDom.html) I try to use it under Android...
The problem is, that I can't use the suggested solution under android, because it throws java.lang.verifyError...
...
How build ASP.NET MVC View page from XML file?
<?xml version="1.0" encoding="utf-8" ?>
- <TecajnaLista>
- <Valuta>
<Drzava>Australija</Drzava>
<Oznaka>AUD</Oznaka>
<Sfr>036</Sfr>
<Jedinica>1</Jedinica>
<Iznos>4.385692</Iznos>
</Valuta>
- <Valuta>
<Drzava>Japan</Drzava>
<Oznaka>YPY</Oznaka>
<Sfr>392</Sfr>
<Jedinica>100</Jedinica...