I have an xml file that contains its element like
<ab:test>Str</ab:test>
When i am trying to access it using the code
XElement tempElement = doc.Descendants(XName.Get("ab:test")).FirstOrDefault();
Its giving me error
System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Xml.XmlExc...
I'm trying to take the data returned from:
http://ipinfodb.com/ip_query.php?ip=74.125.45.100&timezone=true
Into a dict in a fast and easy way. What's the best way to do this?
Thanks.
...
My code doesn't return the node
XmlDocument xml = new XmlDocument();
xml.InnerXml = text;
XmlNode node_ = xml.SelectSingleNode(node);
return node_.InnerText; // node_ = null !
I'm pretty sure my XML and Xpath are correct.
My Xpath : /ItemLookupResponse/OperationRequest/RequestId
My XML :
<?xml version="1.0"?>
<ItemLookupRespons...
https://search.twitter.com/search.json?q=doug
How do I read this like VIEW SOURCE, so that I know what I'm looking at?
Is there a website that can prettify it for me?
BTW, I use python
...
Hi,
I just wondering if anyone has already tried of doing something like schema inheritance in BizTalk schemas?
I am using WCF Adapter and using 'consume adapter service' to generate a schema automatically, what I wanted is instead of always generating a schema and since most of my schema is the same then I want to have something like ...
Hi,
how to select an element based on an order and dependent of its existence in XPath ?
For example how to select the best quality video if it exist.
<VIDEOS>
<LOW_RES>video_L.flv</LOW_RES>
<HI_RES>video_H.flv</HI_RES>
<HD/>
</VIDEOS>
this should return video_H.flv because the hd version doesn't exist
this case can exist...
What is XML authoring and are there any industry standard automated tools to do the same.
...
private void BindCountry()
{
XmlDocument doc = new XmlDocument();
doc.Load(Server.MapPath("countries.xml"));
foreach (XmlNode node in doc.SelectNodes("//country"))
{
usrlocationddl.Items.Add(new ListItem(node.InnerText, node.Attributes["codes"].InnerText));
}
}
The above code am using for loading countries ...
Assume we have some DataTable or IEnumerable with ChildID, ParentID and Title.
We need to serialize it to XML like
<Entity title="">
<Entity title=""></Entity>
<Entity title=""></Entity>
</Entity>
As i found out, standard DataTable.GetXML() returns something different. I thought about initializing class tree like Entity e = n...
Hi
my problem is want to use tag in xml file of joomla module . i don't want to include each and file in XML file . Thanks for the help
...
I asked this question a week ago, but did not do a good job of describing the problem. Here's a second attempt.
I'd like to produce data-driven charts, graphs, and other data visualizations, starting with data in an xml database and ending up with the visualizations as SVG.
Here's an example from the W3C. It uses Javascript to create a...
how do you import data from an xml document to mysql having difficulty do this does anyone know to do this
...
First off I already know about the Node.asXML() method. Assuming I have a dom4j node and I wish to get at that nodes xml but none of its children's xml. So in the example below If I have Node B and I only want to get , do some stuff, then get . Basically I wish there was an asXMLBeforeChildren() and asXMLAfterChildren() methods. Any hint...
I am going to generate XML file based on the data returned from SQL Server, but there are some special characters like  and  (there may be other characters like these), which will fail the XML.
Is there any way to escape them?
Thanks!
...
Hi,
I have the following xpath query which seems to be working but I just want to be sure its not incorrect:
//link[@type='application/rss+xml' or @type='application/atom+xml' and @rel='alternate']
The purpose is to do feed autodiscovery from a web page.
What I want it to do is:
all link tags with either (rss or atom) and rel alter...
Hello
Im building a new version of an iPhone application and Im wondering if I should review how my app communicates with the server.
My iPhone client sends and receives XML over HTTP requests.
To send the information I use ASIHTTPRequest framework. I "manually" build the XML request by appending strings.
To parse the response Im usin...
I've got an XML document that is in either a pre or post FO transformed state that I need to extract some information from. In the pre-case, I need to pull out two tags that represent the pageWidth and pageHeight and in the post case I need to extract the page-height and page-width parameters from a specific tag (I forget which one it i...
I'm converting my static HTML site to a dynamic PHP/XML-driven one.
This is my current code:
<div class="divider"></div>
<div class="main" style="width: 552px;">
<div class="time">00:00</div>
<div class="show"><h3><b>Radio Show</b></h3>
<p>Description</p></div>
<div class="footer"></div>
</div>
and my XML file:
<?x...
Hi,
is there an easy approach to store my model, which I use with EclipseLink, in XML files?
I want to implement an export functionality in my program and I was wondering if this can be done with eclipselink or with any other framework.
Thanks
...
Greetings,
I'm new to TCL scripting, and I have a very very basic xml file which I need to import information from into tcl.
Example of XML Document Structure:
<object>
<type>Hardware</type>
<name>System Name</name>
<description>Basic Description of System.</description>
<attributes>
<vendor>Dell</vendor>
<contract...