Hello,
I am looking for an example of how, in C#, to put a xml document in the message body of a http request and then parse the response. I've read the documentation but I would just like to see an example if there's one available. Does anyone have a example?
thanks
...
I have an XML (XAML) string that looks something like:
<Zot xmlns="clr-namespace:A.B;assembly=A"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
</Zot>
The Silverlight XamlReader class is unable to load this string, it needs a particular default namespace:
<z:Zot
xmlns="http://schemas.microsoft.com/winfx/2006/xa...
So you have a third-party web service that likes to abuse XML and return things in an order that makes your programming a complete pain in the neck. For example...
<file>
<node1>Foo</node1>
<price>4.99</price>
<node2>
<key>XX999</key>
</node2>
</file>
There are about a thousand of these sorted in order by price.
How can ...
is it possible to write xml in silverlight with vb
...
I was wondering how i should go about writing an XML data layer for a fairly simple php web site. The reasons for this are:
db server is not available.
Simple data schema that can be expressed in xml.
I like the idea of having a self contained app, without server dependencies.
I would possibly want to abstract it to a small framework f...
I am developing an app that needs to send text messages, so I have carrier information stored in a database. I also need that information in an XML file for client side code to read. To make this happen, I am writing a script that reads the carrier information from the DB and creates an XML file in the config directory. I felt this sc...
Say I have this piece of xml:
<AA>
<BB>foo</BB>
<CC>bar</CC>
<DD>baz</DD>
<EE>bar</EE>
</AA>
How do I select all the child nodes of <AA> that have `bar' as its contents? In the example above, I'd want to select <CC> and <EE>. I'm thinking the solution is something like:
<xsl:template match="AA">
<xsl:for-each select="???">
</xsl:fo...
The following link to a URL in my application is giving me an XML Parsing Error on the second equals sign when I try to view the page.
<a href="http://www.example.com/admin/banning.php?do=banuser&u=3">Ban User</a>
I think the problem is the ampersand in the URL. If I encode the ampersand the parsing error goes away but the URL ...
I have a situation where I have an xml file that I don't want to modify.
The AddAnnotation function in XElement class provides an option to add memory-only data which is not serialized and not part of the XML.
I want to be able to save these annotations (for example: to another xml file) and then to deserialize both the xml and the ann...
I am new to XML, and DOM. I guess I need to use DOM API to find go through every non-text nodes once, and output the node name.
say I got this example XML from W3C
<bookstore>
<book category="cooking">
<title lang="en">Everyday Italian</title>
<author>Giada De Laurentiis</author>
<year>2005</year>
<price>30.00</price>
<page pa...
I am creating a XSD schema to represent a key-value pair list. I would like to restrict keys to string (that is easy) but the values are allowed to be any XSD simple types (datetime, string, int...). However, I do want the values in the xml instance documents to be strongly typed, i.e., it should be explicitly declared if a value is date...
Hi
I have an XML doc:
<statuses>
<status>
</status>
<status>
</status>
</statuses>
I have parsed this into an XDocument, and want to use LINQ to select the elements into a strongly typed collection of Status classes (all status elements are simple types, either string or int).
Any ideas how I can do this?
Thanks!
...
Hello Guys,
I am using libxml/xmlparser.h library in my program to parse the xml file. Is there any function in that library that can remove a node from the xml file?
I want to completely remove the node, i.e. its attributes and properties also.
...
Hello,
I'm trying to serialize a very large IEnumerable<MyObject> using an XmlSerializer without keeping all the objects in memory.
The IEnumerable<MyObject> is actually lazy..
I'm looking for a streaming solution that will:
Take an object from the IEnumerable<MyObject>
Serialize it to the underlying stream using the standard seriali...
I am not sure whether the title clearly explains my problem, will try to include as much details I can.
I need to convert below xml to a properly formatted one using Xslt 1, so that I can deserialize it to a .net type.
Source XML
<ax21:result type="test.ws.Result">
<ax21:columnNames>fileName</ax21:columnNames>
<ax21:columnN...
Given a piece of Xml Like the one below. How would I write an XPATH Query to get the value of the 'leaf2' child where the 'key' value has a particular values (say 2)
I'm working in C# .NET. At the moment I'm just looking at getting the Xpath for key using SelectNodes , finding the right value then navigating back up to leaf2.
<root>
...
How can we load data to Mysql Tables from XML Files??
Is there any way to read data from XML Files and Write to MySql database..
I have a bulk of data in XML Files.
Thanks in Advance for help.
...
I'm using a seperate .dtd file as a doctype for my custom xml file:
names.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE name SYSTEM "names.dtd">
<names>
<name>
<text>Pepé</text>
<creator>&lost;</creator>
<history>&lost;</history>
</name>
<name>
<text>Charles</text>
<crea...
given this simplified data format:
<a>
<b>
<c>C1</c>
<d>D1</d>
<e>E1</e>
<f>don't select this one</f>
</b>
<b>
<c>C2</c>
<d>D2</d>
<e>E1</e>
<g>don't select me</g>
</b>
<c>not this one</c>
<d>nor this one</d>
<e>definitely not this one</e>
</a>
...
I have 20 forms which I am printing using XML and XSLT. Now I need a functionality where I can print these forms as blank. For example I have a "Name" field in my XML and a corresponding
<span>Name:</span>
<strong class="data">
<xsl:value-of disable-output-escaping="yes" select="Name" />
</strong>
I need 2 functionalities:
I wa...