xml

Adding more hardware v/s refactoring code under a time crunch

Background: Enterprise application - very will written for its time in 2004. Stack: .NET, Heavy use of Remoting, ASMX style web services, SQL Server Problem: The application allows user to go through various wizards for lack of a better term, all of their actions are stored in what we call "wiz state", which is essentially XML that is...

How can I use Ruby to parse through XML easily to query and find certain tag values?

I am working with an API and want to know how I can easily search and display/format the output based on the tags. For example, here is the page with the API and examples of the XML OUtput: http://developer.linkedin.com/docs/DOC-1191 I want to be able to treat each record as an object, such as User.first-name User.last-name so that I ...

C#2.0 read and copy Xml file line by line?

Hello. I got an Xml file fileOri.xml and there are some lines like <SubItem name='somename' value='someVal'></SubItem> and I plan to copy these lines to another file fileDes.xml. Is there a rapidly & easily way? ...

How to return xml data to jquery ajax call from webservice

This is my ajax call to webservice -JsonWebService.asmx file $.ajax({ type: "POST", async: false, url: "/blkseek2/JsonWebService.asmx/GetList", data: keyword2, contentType: "application/xml; charset=utf-8", success: ...

hibernate using annotations or using hibernate configuration files.

I have seen many tutorials where the hibernate is implemented using annotations (basically hibernate annotations or JPA annotations). There are tutorial which mainly focuses on using the hibernate configuration files(hbm.xml files). No use of annotations at all. Now I am little bit confused, which one is better approach ? ...

[Android] Layout Parsing Xml

hi.. i'm make example parsing xml from http://www.androidpeople.com/android-xml-parsing-tutorial-using-saxparser/ in this example, layout using an array textview.. I tried to change the layout into a ListView, but is not working.. I get error in adapter.. can anyone help me? ...

Adding child node in xml file

I have an xml file <?xml version="1.0" encoding="UTF-8"?> <xml> <settings> <title>Calendar2</title> <subTitle>Calendar2</subTitle> </settings> <events date="02-09-2010"> <event> <title>HTML Tags</title> <description>HTML Tags</description> </event> </events> </xml> How i can add another event inside events tag with respect to date <?...

any disadvantages when opening XAML with XML Text Editor instead of Cider XAML Editor

I have made the experience that editing large XAML files is extremly faster when doing it in the standard XML text editor instead of the the split-screen cider XAML editor with the design view. This is also true when I have the "Always open documents in full XAML view" option enabled. Allthough it gets a little better when this option is...

XmlSlurper. How ignore case for name of @attribute?

def doc = """ <html> <body> <div tags="1">Test1</div> <div taGs="">Test3</div> <div TAGS="4">Test4</div> </body> </html> """ def html = new XmlSlurper().parseText(doc) html.body.div.findAll { [email protected]()}.each { div -> println div.text() } This code print only Test1! How ignore case for attribute @tags? ...

What is the best way to handling XML in Android

Android device is much slower and have much lower memory compare to PC/server, So what is the best way to handling XML in Android? And I have a set of very complex xml needed to parse. both SAX or DOM will cause too much code. Anybody have good suggestion? I want to make it clean and fast ...

Simple C# Xml Serialization

I have a class: public class Car { public string Model {get;set;} public string SeatFinish {get;set;} public string Audio {get;set;} } I want to use XML serialization attributes to serialize it to the following xml <Car> <Model>name</Model> <Options> <SeatFinish>Leather</SeatFinish> <Audio>5 speaker</Audio> </...

XSLT : Creating a Map in XSLT

Hi, I want to have a key value map in xsl and so defined a variable which has an xml fragment, but later when i try to access the xml nodes in the variable i get an error that type of the xpath xpression cannot be resolved. Below is the xsl- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt; <xsl:template...

Simple XML PHP error - Echo's nothing

Ok guys, Essentially, im loading a simplexml_load_file from a URL like this $stats = simplexml_load_file("http://example.com/api/api.asmx/Campaign.GetSummary?ApiKey=$apikey&amp;CampaignID=$CID"); Which returns this SimpleXMLElement Object ( [Recipients] => 1 [TotalOpened] => 0 [Clicks] => 0 [Unsubscribed] => 0 [...

Sed / awk script to correct illegal characters from XML (ampersand)

For parsing an invalid XML file, having either unencoded, illegal characters (ampersands in my case): <url>http://example.com?param1=bad&amp;param2=ampersand&lt;/url&gt; and encoded ones <description> The good, the bad &amp; the ugly </description> Please post an example with a sed/awk script that can encode the illegal characters....

Importing XML into Excel over HTTP

Hi, I've got a simple (inline) ASPX page that is ouputting XML. I want to import this XML into Excel 2007 using Data | From Other Sources | From XML Data Import. If I specify the URL for my APSX page Excel opens the result into the Text Import Wizard :( If I open my URL directly from Notepad, save the content to a file and import th...

How to delete the xmldocument saved in particular place

I have the following code where i save the xml file into this particular location shown below public bool GetList(string keyword1, string streetname, string lat, string lng, string radius) { XmlDocument xmlDoc= CreateXML( keyword1,streetname,lat,lng,radius); xmlDoc.Save(@"C:\Documents and Settings\Vijay.EKO-03\Desktop\blockse...

C# ftp download and stream to XML error

I'm trying to get an .xml file that's somewhere on a server loaded into a streamerader to stream it to XML and process it. This is what i get: EndOfStream = 'reader.EndOfStream' threw an exception of type 'System.ObjectDisposedException' I do see that im logged in on the server etc: StatusDescription = "226 Transfer complete.\r\n" It ...

Is there a keyboard shortcut in Visual Studio to jump up to the parent XML/XHTML node in XML code view?

Not too sure how to elaborate on this over what the title already states, but it would be super great if when I was hovering my carat on a node in the XML/XHTML source view, that I could press a key to jump up to the parent node. If not in Visual Studio, is it in any addons like ReSharper or [can't remember the name of any others..!]? ...

Grabbing a nodelist from a nodelist c# .net

The following code gives me a nodeList to itterate over: XPathNavigator thisNavigator = thisXmlDoc.CreateNavigator(); XPathNodeIterator dossierNodes = thisNavigator.Select("changedthisname/dossiers/dossier"); I am processing this nodeList, and i need to grab another nodelist out of this list. I am trying to do this by using this code...

Maintaining standalone > and < symbols to load in XML when the contents also have HTML tags

We have an editor where users can have HTML formatting. We need to have those standalone < and > symbols in the XML when we load the content. I can replace < and > with their character entity references as described here but that would also include those characters in the HTML tags. Could anyone provide any direction on the same? I am us...