I have some code that receives some XML and there is the possibility that a CDATA tag element will be present. A flag is passed into the method that states whether the CDATA tag should be present, if the flag is false, then the CDATA tag should be removed if present, how would I do this without parsing the query.Value?
private static vo...
I can't seem to find much information on the web about the different approaches to building a REST API in Rails; so I kinda have two questions:
Can someone point me to some articles that show the pros/cons of the different
approaches?
Would you please share your thoughts on the pros/cons of the following approaches?
Proposed Appro...
what is XML and how is it used in databases? if this looks like a homework assignment,it is.
...
I am using LINQ to interact with data in a DataSet in a C#.NET program. The data is imported into the data set from an XML file so that is where it gets it's schema. I want to be able to grab a single row from the table and then access the specific columns of that row in a strongly-typed manner (with intelli-sense). I think I am close on...
I've tried Axis 2. It dies when trying to parse my WSDL from Seibel. I don't want anything that requires a container (Metro). All I want to do is parse and form SOAP messages. I don't want them sending the messages on my behalf. I'm already using HttpClient for that and am happy with it.
...
I'm trying to send XML doc to server from client. But when server get a XML doc. It's always empty. Here is my jquery function. It's send XML to server:
var str = '<?xml version="1.0" encoding="UTF-8"?><foo><bar>Hello World</bar></foo>';
var xmlData = strToXml(str); // convert string to xml
console.log($.isXMLDoc(xmlData)); // r...
Consider this example SOAP Client script:
$SOAP = new SoapClient($WDSL); // Create a SOAP Client from a WSDL
// Build an array of data to send in the request.
$Data = array('Something'=>'Some String','SomeNumber'=>22);
$Response = $SOAP->DoRemoteFunction($Data); // Send the request.
On the last line, PHP takes the arguments from th...
I have a Task where I have to read an csv file and write the content into a c# List.
Since the csv file can change its layout (caption/order) in the future I want to use a configuration file for mapping the attributes.
Now I am wondering if there is an example out there so I don't have to reinvent the weel :D
My datasource looks like t...
A requirement of my website is that I pull down data from external sources. To pull down the data, I have created a timer job (SPJobDefinition). In this job, I need to store the external data somewhere. First I was thinking I would just store it in cache, but then I was thinking I might want to have the data around longer (plus, I don't ...
I'm making a media player application in android where one part of my screen has a animation which is made in OpenGL (ofcourse with Android/JAVA).....So my screen consists of 2 parts:
1) Left hand side consists of all the widgets (using xml).
2) Right hand side consists of the animation made in OpenGL.
I'm able to make the Gui (xml ...
Is it possible to define the scenes and the frames in XML in Flash CS4, so that we can parse it in actionscript 3.0 and define the interactivity. I want to define all the UI elements and the event associated with UI like List control or button in XML format (XUL??) and then use actionscript to build the application logic. Are there some ...
I am trying to parse the XML found on the page ...
http://www.rapleaf.com/apidoc/person
Name: Test Dummy
Age: 42
gender: Male
Address: San Francisco, CA, US
Occupation:
University: Berkeley
first seen: 2006-02-23
last seen: 2008-09-25
Friends: 42
Name:
Age:
gender:
Address:
Occupation:
University:
first seen:
last seen:
Friends:
1) ...
Hi,
I want to get child elements from XElement using C#.
Thanks,
...
Hello,
here is my scenario,
I copy XML Files from the Original Directory to the Target Directory
I modify the file's attributes in the Original Directory
I compare the modified file's attribute(from the Original Directory) with the copied file's attribute (in the Target Directory) They shouldn't be the same of course
My problem is t...
I'm trying to read a XmlReader into a XDocument
//GetContentStructureReader() retrieves the reader from an external source
XmlReader reader = GetContentStructureReader();
XDocument.Load(reader);
I keep getting the following exception with one specific data source:
System.ArgumentNullException was unhandled by user code
Messag...
I'm using jQuery to parse XML which is retrieved via ajax, however I have found a problem/bug with using the actual XML input.
Consider the following example:
var $line = $('<example dir="value">Example Text</example>'), dir = $line.attr("dir");
console.info("dir: ", dir);
This example should return 'value' instead it returns an em...
i want to insert arbitrary xml into SQL Server. The xml is contained in an XmlDocument object.
The column i want to insert into is either nvarchar, ntext, or xml column (If it makes your life easier then you can pick which type it is. Really it's an xml column).
Prototype
void SaveXmlToDatabase(DbConnection connection,
XmlDocume...
Hi guys,
Been stuck on this for a while and tried a few various things.
Basically I've overridden frame layout to create myself a custom button. The frame layout has two children a button and a linearlayout with items in it.
The problem is I'm trying to the get the button to stretch to the size of the frame layout (i.e. fill parent) a...
I want to access the 'url' attribute in the media:content element below. I am pretty sure this gives me the media:content, but I can not seem to get the url (see what I tried below):
$theContent = $item->children('media', true)->content;
xml:
<item>
<media:content type="image/jpeg" url="my url" />
</item>
I have tried variations:
...
Hi all,
I am new to xsl transformations and I have a question.
I am looping through an xml like this:
<PO>
<Items>
<Item>
<Price>2</Price>
<Quantity>5</Quantity>
</Item>
<Item>
<Price>3</Price>
<Quantity>2</Quantity>
</Item>
</Items>
<QuantityTotal></QuantityTotal>
</PO>
Now I want to insert a valu...