xml

Editing the XML attributes from a XML file using Python

Hi , I have an XML file which contains some data as given. <?xml version="1.0" encoding="UTF-8" ?> - <ParameterData> <CreationInfo date="10/28/2009 03:05:14 PM" user="manoj" /> - <ParameterList count="85"> - <Parameter name="Spec 2 Included" type="boolean" mode="both"> <Value>n/a</Value> <Result>n/a</Result> </Parameter> - ...

Easiest Way to get id or link and updated date from a RSS feed?

I tried to use linq but failed because i have no xml knowledge. What is the easiest way to get the id or link and updated from an rss feed? (an example feed -> http://stackoverflow.com/feeds/question/1926343) I have no idea how to skip all elements until the first entry element. I also dont know how to pull each link and data from each...

Web Automation Using MSHTML

We want to automate a web application which is developed in asp.net. For automating this site we are planning to use the MSHTML. But before finalizing MSHTML I would like to know if there are any known limitations of MSHTML or please share list of controls which we may not be able to automate using MSHTML. Please share your experiences ...

Flex + Drawing dynamically

I want to try display a relationship diagram. I have the xml <School> <Class> <Name>1st Grade</Name> <StudentName>A</StudentName> <StudentName>B</StudentName> <StudentName>C</StudentName> <StudentName>D</StudentName> </Class> <Class> <Name>2nd Grade</Name> ...

How to get the text from XML with position in the XML file?

I want to parse HTML (you can assume as a XML, converted via Tidy) and get all the text nodes (which means nodes in Body tag that are visible) and their location in the XML file. Location means the text position in the flat XML file. ...

In C#, how to get XML node value that is white space?

I have a XML node with a value which is a white space. Example: <sampleNode> </sampleNode> I am using a Serializer to get the data from XML document to store it in an object. Now, the problem I am facing is: If the XML node value contains nothing but a white space, as does the sample node above, the serializer interpretates it as a s...

How to pass data as XML via sockets ?

Hi, Could someone please help and provide me links where I can find materials/examples describing how to exchange data in the form of XML schemas between socket programs written in C/C++? Actually I have two software tools running in different OSs, in which I coupled with socket programs written in c/c++. As both work with xml, I am loo...

Why .NET XML API doesn't protect me from null character?

My application receive strings from outside and construct an XML document string fromOutside = "\0"; XAttribute a = new XAttribute(fromOutside); when the attribute value contains null character then I got exception when trying to save XML to the disk (when it goes into XmlWriter) System.ArgumentException : '.', hexadecimal value 0x00...

Way to parse XML (org.w3c.Document) on Android

Can anyone point me to a explanation for or explain to me how I can easily parse the XML and get values of a w3c.Document on Android using only Android OS Libs? I tried to use a implementation of dom4j, but it is very slow :-( ...

Rollbacking changes in XML Document

I Want to raise an event to prevent any modification on the Xml file. Simply raising an event is enough ? like XElement doc = XElement.Load(@"d:\XMLFiles\namespace.xml"); doc.Changed +=new EventHandler<XObjectChangeEventArgs>(doc_Changed); What is the code do i need to write inside doc_changed(..,...) to rollback any modifications? ...

Handling node with inner xml in xslt

I have an xml document with a node containing the escaped xml serialization of another object, as in this example: <attribute> <value> &lt;map&gt; &lt;item&gt; &lt;src&gt;something&lt;/src&gt; &lt;dest&gt;something else&lt;/dest&gt; &lt;/item&gt; &lt;/map&gt; </value> </attribute> How can I ap...

XML character problem

Hi I am using xml,and I have ad problem with turkish characters.Just like this <Ürün></Ürün>... I use str_replace for solition but its not desirable :( what do i have to do=? ...

C# Display in XML Format

I am expecting an xml as output when execute the following XElement Root = XElement.Load(@"d:\xmlfiles\Customers.xml"); XElement BringContact = Root.Element("Contact"); Response.Write(BringContact); as <Contact> <Company>Alfreds Futterkiste</Company> <City>Berlin</City> </Contact> But the Response.Write() displays values only ...

How to replace a node-name with another in Xslt?

Bad wording on the question, sorry about that. Will try to explain what I'm trying to do. Basically I have the output from a search as Xml and in that Xml there is a node like this one: <FIELD NAME="body"> Somebody named <key>Doris</key> and <key>Arnie</key> </FIELD> In short, what I need is to replace "<key>" with "<stron...

WCF: SOAP output body contains tag names instead of elements

I have an object created with the xsd.exe tool that defines xml attributes in the code, but the SOAP response from my web service is returning xmlelements instead of attributes. /// <remarks/> [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroug...

another question about getting entries from StackOverflow atom feed

I feel like an idiot for asking this question again, as I know it's been asked several times. I cannot for the life of me get this code working even with the answers that have already been provided, so I'm hoping that by offering my current code, someone can help me determine where I'm going wrong: Dim RSSReader As New Xml....

Performing a "Group By" query in XPath XSL

Hi, Given the following XML: <results name="queryResults"> <int name="intfield1:[* TO 10]">11</int> <int name="intfield2:[10 TO 20]">9</int> <int name="intfield1:[10 TO 20]">12</int> </results> I would like to produce this XML: <results> <field name="numberfield1"> <value name="[* TO 10]">11</value> <val...

Parsing XML via jQuery, nested loops

I am using jQuery to parse XML on my page using $.ajax(). My code block is below and I can get this working to display say each result on the XML file, but I am having trouble because each section can have MORE THAN ONE and im trying to print ALL grades that belong to ONE STUDENT. Here is an example of the XML. <student num="505"> ...

Create dynamic array from each in jquery?

Is it possible to create a dynamic array using something like this and store X elements, then get the average? How would that be possible? $(xml).find('student').each(function(){ var name = $(this).find("name").text(); var myArray = DYNAMIC ELEMENTS student_list.append("<tr><td>"+name+"</td><td>"+cid+"</td><td>"+grade+"...

Is this valid XML?

I know that syntax is valid, but my question is whether it is logically valid: <parent> <name>John</name> <child>Mary</child> <child>Lucy</child> <child>Hannah</child> </parent> or a proper way to do this is: <parent> <name>John</name> <child> <name>Mary</name> </child> <child> <name>Lu...