xml

Rss question, replacing items

Hi, i have a rss source: http://feedity.com/rss.aspx/mr1-kossuth-hu/VVdXUlY <item> <title>2008. november 23.</title> <link>http://www.mr1-kossuth.hu/m3u/0039c36f_3003051.m3u&lt;/link&gt; <description>........</description> <pubDate>Wed, 26 Nov 2008 00:00:00 GMT</pubDate> </item> from this, i want to creat...

How to remove elements from xml using xslt with stylesheet and xsltproc?

I have a lot of XML files which have something of the form: ...

How do you rename the child XML elements used in an XML Serialized List<string>?

Hello, I'm serializing to XML my class where one of properties has type List<string>. public class MyClass { ... public List<string> Properties { get; set; } ... } XML created by serializing this class looks like this: <MyClass> ... <Properties> <string>somethinghere</string> <string>somethinghere<...

Is there a Perl module that validates an XML against a schema?

I need to validate an XML agaist a schema. I tried XML::SAX::ParserFactory; XML::Validator::Schema and related modules but looks like they are limited. Limited in the sense that it didn't recognize schema elements such as xsd:unique, xsd:group, xsd:keyref, xsd:union and xsd:key. Are these xsd:unique, etc. new additions? Appreciate...

ASP.NET 3.5 bind to xml string

With ASP.NET 3.5 I can easily bind to an xml file by using an XmlDataSource. How do I bind to an xml string instead of a file? ...

Schema-aware XML editing in Vim

When editing an XML file in IntelliJ IDEA, if the document references a schema, IDEA will fetch the schema and use the information for auto-complete. It knows which tags are valid in which contexts, so when you hit CTRL-space, it suggests only those tags. It also highlights any tags that are invalid according to the schema. Does anybo...

LINQ or XSLT to turn one Element into another in Visual Basic 9

Short version: Could anyone suggest or provide a sample in LINQ to XML for VB, or in an XSLT of how to change one XML element into another (without hardcoding an element-by-element copy of all the unchanged elements)? Background: I have an XML file, that I think is properly formed, that contains a root entry that is <collection> and ...

Flex and embedded XML

Hello. I'm using Parsley IoC in my current Flex project. So I'd like to embed the container configuration XML onto the result SWF. How could I load embedded XML file into action script XML object? ...

Typed DataSets with XML data sources and schemas

I've written an XML Schema file by hand (not using the DataSet Designer in VS) and a corresponding XML file containing structured data to be read in. I ran the xsd.exe program to generate a Typed DataSet class; on the whole it looks fine to begin with (ignoring how it uses lowercase for public class members), but when it comes to using ...

How to parse XML in JavaScript from Google

I want to parse this XML Document http://www.google.de/ig/api?weather=Braunschweig,%20Deutschland I want to be able to read out condition, temp_c and humidity. All this I want to do inside of JavaScript without using any server sided scripts such as PHP and I want it to work on modern browsers as well as IE7 and if without many problems ...

removing the "T" from a datetime when doing a xml+xsl=html with .net (XmlDataDocument,XslCompiledTransform,XmlTextWriter)

what is the easiest way to remove the "T" from the result? I want the result to be "YYYY/MM/DD HH/MM/SS" the vb.net code is really straight forward xmlDoc = New Xml.XmlDataDocument(data_set) xslTran = New Xml.Xsl.XslCompiledTransform xslTran.Load(strXslFile) writer = New Xml.XmlTextWriter(strHtmlFile, S...

What is the fastest way to parse large XML docs in Python?

I am currently the following code based on Chapter 12.5 of the Python Cookbook: from xml.parsers import expat class Element(object): def __init__(self, name, attributes): self.name = name self.attributes = attributes self.cdata = '' self.children = [] def addChild(self, element): self.chi...

LINQ to XML Newbie Question: Returning Nodes By Node Name

Greetings! If I have XML such as this: <Root> <AlphaSection> . . . </AlphaSection> <BetaSection> <Choices> <SetA> <Choice id="choice1">Choice One</Choice> <Choice id="choice2">Choice Two</Choice> </SetA> <SetB> <Choice ...

Can I make an XMLHttpRequest to another domain?

Is there a way to use XMLHttpRequest in combination with other domains? I would like to parse some xml from Google without having to use a server so it is minimalistically complex to run. var req = getXmlHttpRequestObject(); ... req.open('GET', 'http://www.google.de/ig/api?weather=Braunschweig', true); req.setRequestHeader("Con...

When to prefer JSON over XML?

My requirement is just to display a set of values retrieved from database on a spread. I am using jquery. ...

Programatically opening an xml file in MS Word

I'm opening an xml file in Microsoft Word 2007 using C#. I'm using an xsl file to define the layout which worked up to the point that I needed to include an image. I used the typical src html tag and the image displays when the xml is viewed in ie but not when it's opened in Word. I get the image place holder so I can only assume Word si...

XSL element selection using variable

Basically I have a small template that looks like: <xsl:template name="templt"> <xsl:param name="filter" /> <xsl:variable name="numOrders" select="count(ORDERS/ORDER[$filter])" /> </xsl:template> And I'm trying to call it using <xsl:call-template name="templt"> <xsl:with-param name="filter" select="PRICE &lt; 15" /> </xsl...

Sorting in XSLT v1.0 to obtain the greatest value, a new question

I have an XML document with several <person> elements, each of which contains the <name> of the person, and several <preferred-number> elements inside a grouping <preferred-numbers> element. I already found that to obtain the greatest <preferred-number> I have to do an <xsl:apply-template> with a <xsl:sort> inside it and then take the ...

Why is this regex returning errors when I use it to fish img src's from HTML?

I'm writing a function that fishes out the src from the first image tag it finds in an html file. Following the instructions in this thread on here, I got something that seemed to be working: preg_match_all('#<img[^>]*>#i', $content, $match); foreach ($match as $value) { $img = $value[0]; } $stuff = s...

Something similar to PHP's SimpleXML in Python?

Is there a way in Python to handle XML files similar to the way PHP's SimpleXML extension does them? Ideally I just want to be able to access certain xml datas from a list object. ...