xml

Oracle Pl/SQL: Loop through XMLTYPE nodes

Hi, I have a XMLTYPE with the following content: <?xml version="1.0"?> <users> <user> <name>user1</name> </user> <user> <name>user2</name> </user> <user> <name>user3</name> </user> </users> How can I loop in PL/SQL through all the elements "use...

Jquery XML parsing

I have an xml like this <resultGroups> <subGroups> <results> </results> <results> </results> </subGroups> <subGroups> <results> </results> <results> </results> </subGroups> <name> </name> </resultGroups> <resultGroups> <subGroups> <results> </results> <results...

XML parsing with Jquery

<resultGroups> <subGroups> <results> </results> <name></name> </subGroups> <subGroups> <results> </results> <name></name> </subGroups> <name>myname</name> </resultGroups> <resultGroups> <subGroups> <results> </results> <results> </results> <name></name>...

Removing the URL and @REPLIES from a tweet.

enter code for($i=0;$ientry);$i++) { //get the id from entry $id = $xml->entry[$i]->id; //explode the $id by ":" $id_parts = explode(":",$id); //the last part is the tweet id $tweet_id = array_pop($id_parts); //get the account link $account_link = $xml->entry[$i]->author->uri; //get the image link $image_link = $xml->entry[$i]->li...

How to receive post data(XML) in .NET like java servlet doPost

I want to receive the HTTP POST data(XML), the XML data post by other webServer(Tomcat, shttpd). On Java I can use servlet doPost receive post data, I'm a newbie on C#, I don't know how to write it on c#. ...

iReport: Sub-reports using XPath (XML Data Source) show up blank

Hello, I am using iReport 3.5.2 to create a report using an XML data source. I followed the "Step by step" example from the "Sub-reports" section of "The Ultimate Guide to iReport", and I was able to get the example working with SQL. However, when I try to use an XML data source and XPath, the sub-report comes out blank in the master r...

How to remove all namespaces from XML with C#?

I am looking for the clean, elegant and smart solution to remove namespacees from all XML elements? How would function to do that look like? Defined interface: public interface IXMLUtils { string RemoveAllNamespaces(string xmlDocument); } Sample XML to remove NS from: <?xml version="1.0" encoding="utf-16"?> <ArrayOfInserts x...

What is the best local-database solution for WPF applications?

What is currently the best solution for WPF applications which are meant to be used on one computer where various users log into them and use them to get/save information locally? Here's how I see the options: MDF would seem to be the best choice since I assume you can lock it down quite well so that even though users can access the .m...

how to load xml file into dropdownlist in asp.net

the file looks like this: <?xml version="1.0" encoding="utf-8" ?> <data> <a7190> <food>Almond</food> <food>American Cheese</food> <food>Apple</food> </a7190> <a7191> <food>Trout</food> <food>Tuna</food> </a7191> <a7192> <food>Turkey</food> <food>Wheat</food> </a7192> <a7193> <food>Yogurt</fo...

Where do I put Imports in ASP.NET?

I am trying to import the following: Imports System Imports System.Data Imports System.Data.SqlClient In order to be able to use "Dataset()" I am a beginner and don't know where to put the imports in ASP.NET. Please help! Maybe these are not necessary? I am trying to import a remote XML file into a DropDownList. ...

what is the point of an "ID" tag in xml?

<?xml version="1.0" encoding="utf-8" ?> <Countries> <Country> <ID>1</ID> <Name>Nepal</Name> </Country> <Country> <ID>2</ID> <Name>India</Name> <Country> <ID>3</ID> <Name>China</Name> </Country> <Country> <ID>4</ID> <Name>Bhutan</Name> </Country> <Country> <ID>5</...

weird nesting in xml

this seems to be a valid xml file and i was able to import it into dropdownlist, but i don't understand the funny nesting. : <?xml version="1.0" encoding="utf-8" ?> <Countries> <Country> <ID>1</ID> <Name>Nepal</Name> </Country> <Country> <ID>2</ID> <Name>India</Name> <Country> <ID>3</ID> <Name>China...

how to get unique elements?

<data> <food> <id>1</id> <name>asparagus</name> <catlog>7190</catlog> </food> <food> <id>2</id> <name>almonds</name> <catlog>7190</catlog> </food> <food> <id>3</id> <name>asparagus</name> <catlog>7192</catlog> </food> <food> <id>4</id> <name>asparagus</name> <catlog>7193</catlog> </food> </data> i would like to get the unique catlogs, ...

How can I change an XML element value from JavaScript?

I have an XML DB and I have been able to parse the XML using DOM with JS. The thing I am unable to figure out is, how can I change a value in my XML db? I tried using: xmlDoc.getElementsByTagName("COMMENT")[0].childNodes[0].nodeValue="text"; But this does not changes the actual DB. When I refresh my page, it gives me the same old v...

How can I cache the marshalled SOAP XML generated by Apache CXF for a particular Java Object to improve performance?

In my application, we have a webservice method called getFoo() which returns a Foo object. The getFoo() method is called several hundred times a second. The Foo object is Marshalled from our Java object to the SOAP XML response using Apache CXF. From profiling our application, we determined that the marshalling of this object (java ...

Reading Atom feed of gmail account from C#

Hi all, I have a project that will send an email with certain data to a gmail account. I think that it will probably be easier to read the atom feed rather than connect through pop the url that I should be using according to google is https://gmail.google.com/gmail/feed/atom The question/problem is how do I authenticate the email a...

Using XQuery in SQL 2005 to replace a node's value?

Given the following XML variable, how can I replace "UNKNOWN" in the StateCode node with "FOO" in TSQL for MS SQL 2005? declare @xmldata xml set @xmldata = '<Collection> <Plan> <StateCode>UNKNOWN</StateCode> <Type>Tubular</Type> </Plan> </Collection>' Unlike a similar question that I found, this is si...

How can I sort XML entries with LibXML and Perl?

I'm parsing an XML file with LibXML and need to sort the entries by date. Each entry has two date fields, one for when the entry was published and one for when it was updated. <?xml version="1.0" encoding="utf-8"?> ... <entry> <published>2009-04-10T18:51:04.696+02:00</published> <updated>2009-05-30T14:48:27.853+03:00</updated> <ti...

Javascript implementation of XML differences

I need to know. Is there some javascript implementation exist to handle deltas between XML data ? So main point is to detect difference existence, it doesn't matter what was changed: attribute or node value. Requirements are following: each node will have unique id (it's one of simplifications made to find more candidates-libraries) ...

Load NSPopUpButton dynamically content from XML file

How do I populate the content values of a NSPopUpButton dynamically using a XML file? I need to use arrays, right? Please, please provide example code. ...