xml

how to use xsl to change name child node

how to use xsl to change name of child node if it = to the parent node and apply to all nodes example < items > < items >3</items > </items > to < items > < parentname-"inner"childname >3</parentname-"inner"childname > </items > thank you very much ...

find a node in xml using Jquery

Hi I am really new to Jquery and have a problem with my script , I want to access the 2nd 'heading' tag in my xml file using jquery . this is my script so for but what I want to do is assign a vairiable to the 2nd value of heading . $(document).ready(function() { $.ajax({ type: "GET", ...

iPhone: Parsing large xml files and adding the content to the sqlite db

I'm using libxml2′s DOM parser in my iPhone to parse a XML file with 100'000 lines and put the content into a db! This process takes several minutes to complete! Too much to be user friendly! Im looking now for any hints on how to make this process more efficient! I guess, that the biggest part of the time gets lost writing the data into...

PHP's SimpleXML doesn't save edited data

I'm trying to edit some xml data. After this I want to save the data to file. The problem is that the edited data isn't saved by simplexml but the node has changed. $spieler = $xml->xpath("/planer/spieltag[@datum='" .$_GET['date']. "']/spielerliste/spieler"); for ( $i = 1; $i < 13; $i++ ){ if (!empty($_POST['spieler' .$i ])){ ...

Eclipse text-editor drag-and-drop mouse click key combination

In the Java source editor in Eclipse, you could select a block of code, pick it with a mouse click and drop the block of code into another area of the code. You can't do that for other text editors like XML, HTML, etc. I had to press a key combination before I could use the mouse to move and drop the selected text. I have a new Eclipse ...

Specific .NET XML enumeration procedure

I'm slightly overwhelmed by how many ways there are of processing XML in .NET.. In my case, I'm porting a ton of C lines over and I would like to wrap my code and keep it basically the way I had it (but use classes of course). I'm not exactly looking for THE fastest way, but more or less something consistent with the API I had before. ...

Sitemap using sax and webcrawler

Hi everyone this is my first question here and im not a programmer. I would like to generate a sitemap. I am crawling a website with webcrawler (crawler.dev.java.net). Is there any way to use a sax parser for the data i get? I also used jtidy and i got the homepage html data converted in an xml file. im very confused there are so many...

XSL, using XML as parameter to template

Is it OK to pass XML to an XSL template through a parameter? For example, below I have the template body call template test1 which passes some XML through the parameter var1. I then attempt to walk to the node a using XPATH <xsl:template name="test1"> <xsl:param name="var1" /> <fo:block> <xsl:value-of select="$var1/a" /...

XSLT: How to get a list of all used namespaces

I'm writing an XSLT 1.0 stylesheet to transform multi-namespace XML documents to HTML. At some place in the result HTML I want to list all the namespaces, that occured in the document. Is this possibile? I thought about something like <xsl:for-each select="//*|//@*"> <xsl:value-of select="namespace-uri(.)" /> </xsl:for-each> but o...

get index value of an element from XML using jQuery

New to jQuery, I have a script that returns data from an XML file. What I need is the index number of the element returned. I know I can retreve a single element with this name = $("sitelist:eq(1)",data).text(); but in my script I need to know each element position for the displayed data. something like position = $(data,eq).value ...

How to sort specific values from an xml file

Hi, all! I have an xml file as follows: <Exchange DateTime="17/09/2010 18:00:00"> <Content Percent="0.20" Price="63.862" Sign="1"/> <Content Percent="0.25" Price="80.989" Sign="1"/> <Content Percent="0.07" Price="1.4970" Sign="1"/> <Content Percent="-0.31" Price="1.9530" Sign="-1"/> </Exchange> There are 4 variables called A,B,C,D. ...

Help on XML to JTable Please

Hi all, I am trying to learn how to import from XML to JTable. I am analyzing the following code in an attempt to understand what is happening. The problem is I am unable to figure out why am I failing to see any values in the JTable. I am sure that the XML is being parsed using the DOMBuilder etc. I have included the code and the X...

Set User-Agent when using XmlTextReader

Is it possible to set the User-Agent string when making an HTTP request with XmlTextReader? If so, how might I go about doing that? I am using VB.NET with the .NET 2.0 runtime, but can read your C# suggestions just fine. Thank you for your time. ...

Sending large xml data through a socket

I'm newbie to XML using Java. I've to write a method to send a large XML data having lots of nodes through a socket to client application. What is the suitable method to generate XML? What is the best method to send large XML through sockets? ...

SQL: How to create reports in SQL Server 2005/2008 Reporting Services using XML data?

Any suggestions on how to create report/s in SQL Server Reporting Services using XML data (found in existing table/s)? ...

Can't get IgnoreGravity within RelativeLayout to work

I have two buttons. I want one to be aligned at the top center of the application. I want to get the other button to ignore the gravity settings and go where I tell it. How do I do this? <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/relative_la...

Help creating an instance of a class using Linq and XML

I am trying to create an instance of a class using Linq and XML. I am getting the following error in my code and do not know how to fix it. My code editor is telling me the "select" in the following code is the culprit. I am very new to Linq so any help is appreciated. Cannot implicitly convert type 'System.Collections.Generic.IEnume...

WCF: XmlNode as a parameter in method (or property in contract)

At this moment I try to move from ASP.NET WEb Services to WCF (using basicHttpBinding). In asmx services I used XML node as a parameter in my methods, but now it is a problem. I get DataContract Serializer Exception - xmlnode can't be serialized when I try to provide XMLNode parameter in DataContract. Is there any way to use XML node as ...

Creating Chart using javascript

I need to create chart using javascript. should be look like as in link below (click play to see chart sample): Please suggest me which control should i use/purchase, which allows me to create chart in such style shown in link. chart data will be in xml format and i am asp.net developer thanks ...

xsl transformation

how to make template match and select on the result of the previous templates example if previous template change node name and in next template i want match to the new name. another question is how to force match on child elements only without root node if the root and chiled have the same name thank you ...