xml

Problem with passing the querysrting values from one page to another in c# using xml/xsl

Hello all, My problem is this, I'm a student, working on northwind. I've created an aspx page that deals with deferent xml/xsl results by just using sqlparams. I need to preserve the state of the last querystring so that I could preserve the result set from the last aspx page in the next...and I just can't find a way to do it.....looki...

XmlSerialization and List

I have the following class public class Notifications : List<Notification> { } Unfortunately, when it's serialized it looks like <ArrayOfNotification> <Notification> ... How can I get that root node to be Notifications? I've tried a few different attributes on the class, but none compile. ...

LINQ to XML problem with reading XML in C#

Hi - I am trying to read an XML file using LINQ. I have had no problem reading and parsing simple XML files but this one has me stumped. Here is a portion of the file: The file is properly formed and valid. <Activities> <Activity Sport="Other"> <Id>2009-12-17T19:53:14Z</Id> <Lap StartTime="2009-12-17T19:53:14Z"> ...

Looking for the Java equivalent of C#'s XmlConvert.EncodeName

The rules for defining a properly constructed XML name are defined here. C# has a utility method to convert strings into a valid XML name: XmlConvert.EncodeName. What is the Java equivalent of this utility method? Note: XML names must begin with a letter, _, or : character. After the first character, be composed only of letters, digit...

Refresh Pivot Table With XML From ServerXMLHTTP Response

I have succesfully made an Ajax like request to a web service using Microsoft Excel. My goal is to have a button that the user can click to pull down the information and refresh the pivot tables and charts in the excel document to reflect the udpated information. Can I set the Pivot Table to have an XML as it's source? If not, what a...

XmlNode.ReplaceChild is complaining that the node I'm trying to remove is not a child despite the fact that I got to the node via ParentNode

I have a simple function that's designed to copy a section of an xml document to another. I want to replace one node with the other so ReplaceChild seems like the logical choice. I keep getting the error 'The reference node is not a child of this node.' though. That seems odd since I found that node by asking for the parent in the fir...

Merge two XML and then transform the merged xml

Hi, I'm working on a XSLT transformation that consists on merging two XML and then transform the result using another template. The idea is that depending on a field of the original XML file, the secong XML changes. For example: <?xml version="1.0" encoding="UTF-8"?> <data> <information> <stmtinfo> <type>80</type> <language>...

Why is ASP.NET 2.0 removing the automatic XML summaries on Designer.cs when it regenerates?

I'm working on a large project with several other programmers, using Subversion source control. The problem comes when I change files, regenerating the designer.cs file, and go to commit my designer.cs files--they strip out all XML comments, giving a source history like this: Before: /// <summary> /// MenuUpdatePanel control. ...

Give me an example of Unicode XML parsing using PugiXML

I have tried to find some code for this job in the tutorials and by googling, no luck. If someone has used PugiXml, could you please help me out ? My main trouble is Unicode, otherwise the library is very easy to use. Thanks in advance. ...

Feed XML content into a wordpress page

I am looking for a widget or similar for feeding some xml content (articles) into a wordpress page. ...

How to map XML schemas to C/C++ code?

What the best way to map XML schemas to C/C++? Here is an example: ------ C/C++ ----- struct zone { char *var_name; float var_value; }; ------ XML ----- <xs:element name="zone"> <xs:complexType> <xs:sequence> <xs:element name="Var_name" type="xs:string"/> <xs:element name=...

How do I write my information inside of an XML file?

Hi there, I'm kind of lost about writing my information to an XML file. I want to save both literal strings and images. I have no idea how to write the syntax of the XML file. When I create an XML file in Visual Studio 2008 all the file has is this: <?xml version="1.0" encoding="utf-8" ?> So I have no clue on how to add things. **E...

Why Android R.java file can be in src/ or gen/ ?

Hi all, When i started learning android i learned that R.java files goes to /gen folder recently i saw it on /src file ( in WROX-Professional Android App Dev- sample code downloads ). How does this work. and also in some code i saw ( xml layout ) android:id="@+id/R.id.someName" ( i don't remember in which web page i saw this code ,...

isvalid rss feed url

Before adding a rss feed url to the database, how can i check and make sure that it a valid rss url. via vb.net code. Please let me know. ...

How can I set the source of an Image by stating the XML "location" of said image.

I'm creating a folder in my Solution Explorer and in that folder I have all the images I need. I'm guessing in XML all I have to do is (pseudo): <xml> <TestItem> <Name>Orange</Name> <Image>Images/FruitPictures/Orange.jpg</image> </TestItem> </xml> Correct? So in my XAML code, how can I call upon that elemen...

xml catalogue help

hi, need help on an xml task, im new to xml. the task is to build a xml catalogue which has 4 genres of music with two examples know i have manged to make that but im having difficulty write the code for the xsl stylesheet ...

Update data in txt/xml file in C#

Hi, I have a txt file with some data that looks like this: a:1(2,3) 55(33,45,67) b:2(1,33,456) 4(123,12444) which means that word "a" appear in text 1 in places 2 and 3 and in text 55 in places 33,45 and 67.. I have some texts and I go all over those texts and if I see that the word "a" appears in a text then I need to update the te...

creating dynamic xml with php

here is my xml code <autoLoad value="true"/> <autoPlay value="false"/> <playContinuously value="true"/> <jumpToNextCategory value="false"/> <loop value="false"/> <keepAspectRatio value="true"/> <volume value="50"/> <controlsPadding value="5"/> <showPreviewImage value="true"/> <showShareBtn value="fa...

get xml from excel, create dataset from xml and import into tables.

I need to create an dataset from excel. Currently I am doing it by following way :- Go through each worksheet in workbook, get each cells value..and create datatable for each worksheet..and create a dataset for given workbook. But we change the extension of an excel file to .xml(a.xls -> a.xml)..and create dataset out of this xml (this...

webservice return incorrect data

Hi, i'm using webservice to return data to my mobile applicaion. when some field mixed with hebrew(right direction) and english(left direction) it's break the SOAP-XML serializer someone can help me with this problem thanks ...