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...
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 ...
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?
...
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: ...
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 ?
...
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?
...
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
<?...
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...
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?
...
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
...
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>
</...
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">
<xsl:template...
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&CampaignID=$CID");
Which returns this
SimpleXMLElement Object
(
[Recipients] => 1
[TotalOpened] => 0
[Clicks] => 0
[Unsubscribed] => 0
[...
For parsing an invalid XML file, having either unencoded, illegal characters (ampersands in my case):
<url>http://example.com?param1=bad&param2=ampersand</url>
and encoded ones
<description> The good, the bad & the ugly </description>
Please post an example with a sed/awk script that can encode the illegal characters....
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...
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...
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 ...
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..!]?
...
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...
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...