xml

can't read the xml data send from flex in php

Hi i have used the code from http://www.switchonthecode.com/tutorials/sending-flex-data-to-php-using-xml#comment-3635 to send xml data to php... I don't know y i am having problem acessing data in php. Can anyone tell me how to see if the data has arrived at the php. Thanks ...

XML element problem when linking Zmags and Google Checkout

Hi guys, I am attempting to use google checkout to process a shopping cart created with Zmags. With Zmags you can integrate a basket with your e commerce shopping cart, however I want to send it straight to google checkout. Problem is the XML output from zmags is not the same format as the one required by google checkout... The XML ...

Best Practices for storing large amounts of XML type data in SQL Server

Does anyone have any best practices they can share with regards to storing XML field type data in SQL Server 2008? We have lots of small XML structures, yet some larger (>50MB). We're finding that things get a little slow on DELETE. Any advice/war stories would be appreciated. ...

vs2008: create and consume xml files

what is the best way to create and consume xml files in vs2008? I am not sure if LINQ could be used? are there any good tutorials out there for vs2008 xml? ...

Deserialization error in a new environment

I have a web application that calls a third-party web service. When I run it locally, I have no problems, but when I move it to my production environment, I get the following error: There is an error in XML document (2, 428). Stack: at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeser...

How can i use "like" in linq to xml

I wanna do something like this. I know it’s wrong: var a = from h in xdoc.Root.Elements() where h.Element().value like = "1234" select h; ...

XmlException - inserting attribute gives "unexpected token" exception

Hi, I have an XmlDocument object in C# that I transform, using XslTransform, to html. In the stylesheet I insert an id attribute in a span tag, taking the id from an element in the XmlDocument. Here is the template for the element: <xsl:template match="word"> <span> <xsl:attribute name="id"><xsl:value-of select="@id"></xsl:...

XML+XSD (pay1+ | pay2* | pay3* | pay4*)+

I'm trying to construct a xsd scheme to validate a xml. The xml is: <payments> <pay3>5.1</pay3> <pay1>1</pay1> <pay2>50</pay2> <pay3>2</pay3> </payments> Tags <pay2>, <pay3> and <pay2> are optional and <pay1> is mandatory. All the <payX> tags may occur in any order and more than once or not to occur (except for <pay1>). So far...

PHP outputs a normal question mark instead of ‘ or ’

Hi, I'm currently parsing an RSS feed and subparsing the html in the description field in order to create a custom XML structure. In the description field there are ‘ and ’ signs and PHP outputs them as regular question marks. How come? I've tried different encodings like UTF-8 and iso-8859-1 but nothing works.. This is the xml I'm p...

Can i use jquery to select a sub tree out of a xml tree?

hi guys, i'm totally new to jquery and i was looking around to see if this can be done. basically i have a xml tree structure that looks like this: <?xml version="1.0" encoding="utf-8" ?> <RecentTutorials> <Tutorial author="The Reddest"> <Title>Silverlight and the Netflix API</Title> <Categories> <Category>Tutorials</Cat...

JQuery XML option node

hi, I am having an issue with parsing XML with JQuery when there is a node with an option node <preferences><dashboard> <report id="si_pg_vw" order="0"> <header> <data> <option type="reportname" value="Page View"/> </data> </header> </report> the following code in firebug returns no children $reportElement.find("...

Load XML Data (Key/Value Pairs) into Data Structure

I have an XML Data Source which contains a list of key/value pairs. I'm looking for a simple way to load the same data into an array or some other data structure so that I can easily look up the data. I can bind it to a GridView with a couple of clicks but I'm failing to find a straightforward way to load it into something that isn't a U...

Best practices for having HTML/XHTML content within XML elements

Anyone know what the best practices are or have general advice around having HTML/XHTML content within an XML element? Is it best to use CDATA or to just HTML encode the HTML? ...

Find all nodes that have an attribute that matches a certain value with scala

Hi, I saw the following example on Nabble, where the goal was to return all nodes that contain an attribute with an id of X that contains a value Y: //find all nodes with an attribute "class" that contains the value "test" val xml = XML.loadString( """<div> <span class="test">hello</span> <div class="test"><p>hello</p></div> </div>""" )...

UTF-8 encoding issue

Hi, I am trying to fetch data from rss feed (feed location is http://www.bgsvetionik.com/rss/ ) in c# win form. Take a look at the following code: public static XmlDocument FromUri(string uri) { XmlDocument xmlDoc; WebClient webClient = new WebClient(); using (Stream rssStream = webClient.OpenRead(uri)...

view the html source of an xml document transformed by xsl

Hi guys, This is a fairly simple case. I have an xml document, linked to an xsl stylesheet, that can be viewed in a web browser. Now that the output is not really what I expected, so I want to look at the (output) html code to see what happened. However, when I say "view source", the browsers just throw the original xml file at me. Pleas...

SelectNodes not scoped to the Element

If I call SelectNodes on an XmlElement, and pass XPath query such as this: XmlNodeList nodes = xmlElement.SelectNodes("//OtherNode"); The nodes list will be for all the OtherNode elements in the document not just the ones from xmlElement. I seem to recall that this is by design, and for a good reason, but I can't remember what that g...

Using - in XML attribute name

Is it oke to use - in an xml element name? e.g. <rank-type>Rank</rank-type> ...

Select Nodes from a serialized WCF xml configuration file

It has been years since I messed with XPath and need some guidance. Here is the xml fragment: <?xml version="1.0" encoding="utf-8"?> <ConfigurationObject xmlns:i="http://www.w3.org/2001/XMLSchema-instance" z:Id="1" i:type="AlgorithmDataSourceConfiguration" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" xmlns="http://www....

pretty print XML in crystal reports

I have a crystal report that includes some XML data. This XML string is stored in a database column (Oracle 10g). Right now the report just displays the whole string in one big ugly mess. Is there any good way to either pretty print the xml (put tags on seperate lines, maybe indent nested tags) or even format the xml as I would other ...