Currently i need to construct and update large xml files. So what is the best C# xml parser to create or update the xml files? I heard about LINQ in c#, can this be used?
I have xml wherein i have xml within it again, like:
<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<Tag>
<Value1> </Value1>
<Value2><?xml version=\"1.0\" encoding=\"UTF-8\"?>... </Value2>
</Tag>
Deserializing doesnt work on this string in c#. I construct this string in java and send it to a c# app.…
I am using a third party web service that offers the following calls and responses
http://api.athirdparty.com/rest/foo?apikey=1234
<response>
<foo>this is a foo</foo>
</response>
and
http://api.athirdparty.com/rest/bar?apikey=1234
<response>
<bar>this is a bar</bar>
</response>
This is…
I have built a simple application in Flex. When the application loads, a GET request is made to the xmlService.php file with parameters "fetchData=letters". This tells the PHP to return the XML code.
In Flex Debug I can see the XML data being sent by the PHP to the flex client.
What I need it to do is populate the first drop down box…
It's possible to implement INotifyCollectionChanged or other interface like IObservable to enable to bind filtered data from xml file on this file changed ? I see examples with properties or collection, but what with files changes ?
I have that code to filter and bind xml data to list box:
XmlDocument channelsDoc = new XmlDocument();…
Hi Guys,
I have an XML file as follows, and I'm trying to read the content of the Name tag, only if the attribute of the Record tag is what I want. (continued below code)
The XML file is:
<?xml version="1.0" encoding="utf-8" ?>
<Database>
<Record Number="1">
<Name>John Doe</Name>
…
Hey awesome SO users,
I have an Android application that parses an XML file for users and displays results in a much more mobile friendly format. The app works great for most users, but some users have lots and lots of data and the app crashes on them because it runs out of memory.
Is there any way I have a DOM style…
Hi,
I'm writing a simple proof of concept application to load up an XML file and depending on the very simple code, create a window and put something into it (it's for a much larger project). Due to limitations in Mono, I'm having to run in this way.
The code I currently have looks like this
using System;
using…
I'm developping a xml data format. Besides other data there should be a xaml drawing. So I wanted to have a xml element, which can contain any valid xaml. How can this be expressed in the XML Schema? I tried to import the xaml schema, but I couldn't find a xsd file for it. The makeshift would be to use an encoded…
Is it possible to deserialize an XML file to a class in Flex without manually checking the XML and/or creating the class, with the help of a HttpService?
Edit: Explained a bit more and better.
We have an XML file which contains:
<Project>
<Name>NameGoesHere</Name>
…
Hi,
I need to create XML file, given a table/view in the Database. The actual requirement would be: The code has to get the table/view name as input parameter, read the schema of the same, create a corresponding XML file with the same structure as that of the table/view, and load the…
I'm pre-packaging a JSP web-app that relies on some file path settings found within web.xml. These settings are unknown at packaging time, because they reference a path the customer will set when deploying the entire application (of which the web-app is a management interface).
It…
I want to know how to validate XML with XSD . XML is not of an element type but a complex type . Since validator class's validate method compare only element type.
So basically I want to valide XSD's complex type with an XML.
e.g.
Basic XSD below
xs:element name="Customer">
…
I have a class which loads an xml file using the following:
Path.Combine( AppDomain.CurrentDomain.BaseDirectory, "Xml", documentName );
The documents that are being loaded are set to copy to the output directory. However, when I run mstest the xml file is not being copied to the…
If I try to create a new xml document in a java applet by this code:
http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/parsers/DocumentBuilderFactory.html#newInstance()
DocumentBuilderFactory.newInstance();
I will get this error:
Java Plug-in 1.6.0_19
Using JRE version…
I have an XML file, part of which looks like this:
<wave waveID="1">
<well wellID="1" wellName="A1">
<oneDataSet>
<rawData>0.1123975676</rawData>
</oneDataSet>
</well>
... more wellID's and rawData…
Hi stack, i'm working on an app that loads some data from xml file from internet.
Is this a good way to develop iPhone apps??...I think xml is more light than SQlite database...
Basically my logic is:
1 - Parsing Xml file from internet to retrive the data
2 - Load data…
import urllib
import xml.etree.ElementTree as ET
def getWeather(city):
#create google weather api url
url = "http://www.google.com/ig/api?weather=" + urllib.quote(city)
try:
# open google weather api url
f = urllib.urlopen(url)
except:
…
I have an XML file that I am pulling from the web and parsing. One of the items in the XML is a 'content' value that has HTML. I am using XML::Simple::XMLin to parse the file like so:
$xml= eval { $data->XMLin($xmldata, forcearray => 1, suppressempty=> +'') };
…
I'm trying to write a parser for a xml postback listener, but can't seem to get it to dump the xmlfor a sample. The API support guy told me to use 'DOMDocument', maybe 'SimpleXML'? Anyways here's the code: (thanks!)
<?php
$xml_document =…
I need to Convert a CSV into an XML document. The examples I have seen so far, all show how to do this with a fixed number of columns in the CSV.
I have this so far, using LINQ:
String[] File = File.ReadAllLines(@"C:\text.csv");
String xml =…
Hi!
I found this example PHP source code at HTTP POST from PHP, without cURL
I need some help modifying the example PHP source to support XML DOM for manipulating a REST API.
I thought that if I update the CASE statement for the XML section below…
I have Data.xml:
<?xml version="1.0" encoding="utf-8" ?>
<data>
<album>
<slide title="Autum Leaves"
description="Leaves from the fall of 1986"
source="images/Autumn Leaves.jpg"
thumbnail="images/Autumn…