xml

Linq to xml, retrieving generic interface-based list

I have an XML document that looks like this <Elements> <Element> <DisplayName /> <Type /> </Element> </Elements> I have an interface, interface IElement { string DisplayName {get;} } and a couple of derived classes: public class AElement: IElement public class BElement: IElement What I want to ...

How to find out the name of the root element?

Suppose I have downloaded a valid XML document via Ajax (var docum = request.responseXML;). Now how do I find out the name of the root element? ...

XPath ancestor and descendant in XSL copy-of

hi! I am new to XPath, and from what I have read in some tutorials about axes, I am still left wondering how to implement them. They aren't quite behaving as I had expected. I am particularly interested in using ancestor and descendant axes. I have the following XML structure: <file> <criteria> <root>ROOT</root> <...

How to find out if an XML document contains a certain element (by tag name)?

Suppose I have downloaded a valid XML document via Ajax (var docum = request.responseXML;). Now how do I find out if it contains a certain element (by tag name)? ...

return sql query in xml format in python

When I first started working at the company that i work at now, I created a java application that would run batches of jasper-reports. In order to determine which parameters to use for each report in the set of reports, I run a sql query (on sqlserver). I wrote the application to take an xml file with a set of parameters for each report ...

using XSL to replace XML nodes with new nodes

I need an XSL solution to replace XML nodes with new nodes. Say I have the following existing XML structure: <root> <criteria> <criterion>AAA</criterion> </criteria> </root> And I want to replace the one criterion node with: <criterion>BBB</criterion> <criterion>CCC</criterion> <criterion>DDD</criterion> So that th...

Loading xml with Jquery - why doesn't this work

I have regular javascript code and am trying to utilize JQuery just to load and parse an xml file. I have the following: function loadXml() { $(function() { $.ajax({ type: "GET", url: "my_file.xml", dataType: "xml", success: parseXml }); }); } func...

SKOS - Simple Knowledge Organization System Namespace Document

Is there any working SKOS (Simple Knowledge Organization System Namespace Document ) code type? ...

Generating 8000 text files from xml files

Hi all, i need to generate the same number of text files as the xml files i have. Within the text files, i need the title and maybe some other tags of it. I can generate text files with the elements i wanted but not all xml files can be generated. Only some of them are generated. Something might be wrong with my parser so help out please...

HOw to find specific child node in XML using AS3 flash

I have this xml var testXML:XML = <family> <father name1="tom" age="5" ><father1 name1="test1"/><father2 name1="test2"/></father> <mother name1="tomylee" age="55" ><mother1/><mother2/></mother> <sister name1="sister1" age="35" ><sister1/><sister2/></sister> </family>; I want to get the child node with name1 = test1 ...

NOt able to parse "&"

HI all, my xml consist of words in few different language,latin words etc. i am able to parse these latin characters n all except the fact,that i am not able parse only "&" This is wat i am getting @gdb > Entity: line 223: parser error : > xmlParseEntityRef: no name Ull > always be mine 4 now & 4ever.Ull > always be mine 4 u r my trea...

Fast search in XMl files in .NET (or How to index XML files)

I have to implement a search feature which is able to quickly perform arbitrary complex queries to XML-data. If the user makes a query, all XML files must be searched to find possible matches. The users will have lots of XML-Files (a few 10000 or more) which are typically a few kilobytes in size. All the XML-files have almost the same st...

Open XML SDK 2.0 breaking changes between 2.0.3920.0 and 2.0.5022.0

I have a project which is using DocumentFormat.OpenXml.dll 2.0.3920.0. However, I want this to be upgraded to the 2.0.5022.0 from here. Note that there is change only in the revision number of the version. I removed the older reference and added the new one and It compiles fine. However, I need to know If there are any runtime breaking ...

XmlResolver Class' GetEntity function

I wrote a custom resolver class. It works OK for resolving SYSTEM DTDs, but not for resolving PUBLIC DTDs. When the class has to resolve PUBLIC DTDs instead of the URI of the resource, the function receives the public identifier through the absoluteUri parameter of the GetEntity function. Is there a solution to this. In examples: if I...

Change XML node element value in PHP and save file.

<testimonials> <testimonial id="4c050652f0c3e"> <nimi>John</nimi> <email>[email protected]</email> <text>Some text</text> <active>1</active> </testimonial> <testimonial id="4c05085e1cd4f"> <name>ats</name> <email>[email protected]</email> <text>Great site!</text> <act...

How to read local customconfig.xml with xElement in C#

Hi, I have added a customConfig.xml to my project. I'm struggling to read the file into xElement because I need a file path. Any help is greatly appreciated. Thank you ...

Read an XML Data from TCP Port Socket

I have a device which send me data over a particular port. The data is in XML Format. Now I already did a small console application which listen for the data and print out the data on the screen. Now my plans are to deserialize the xml data or I will create the insert statement into the database. 1) The device send me the data every s...

3d animation from cinema4d to blender

Hello, I need to import a mesh animation from Cinema4D into Blender. I tried to do that using Collada.The Collada 1.3 importer doesn't seem to do anything, the Collada 1.4 importer seems to work, but the animation didn't get imported into Blender. After reading this post: Problem solved! In case anyone comes in here looking ...

Webservice description - xsd schema and xml generation

Hello I want to design a WebService for communication between Win Mobile 6.5 based Palm device and a PHP web server. The Palm device software will be developed on .NET compact framework. The communication between web server and device I envision as XML over HTTP. I want a tool that will let me design the Webservice (interfaces, methods)...

Linq: read node innertext

i have a xml document like this: <ns:a xmlns:ns="http://NS1"&gt; <ns:b> <c xmlns="http://differentNS"&gt; c_text </c> <x xmlns="http://differentNS"&gt; Wanted </x> <d xmlns="http://differentNS"&gt; d_text </d> </ns:b> </ns:a> Now i want to use linq to read the element's "x" inner text. ...