xml

How to read an xml subnode into ASP.NET repeater

I am reading XML using xmlreader, and then binding the xml to a Repeater Here's the code behind: XmlReaderSettings settings = new XmlReaderSettings(); settings.ProhibitDtd = false; XmlReader xmlData = XmlReader.Create(webClient.OpenRead(requestUrl), settings); try { xmlData.Read...

Read specific data from XML file

Hi there, i´m familiar with writing and reading my own XML files like e.g. for Setting but i need to read data from a huge xml file but i cant find my starting point. - <span class="mw-headline" id="Kader_der_Saison_2010.2F11.5B51.5D"> Kader der Saison 2010/11 - <sup id="cite_ref-50" class="reference"> <a href="#cite_note-50">[51]<...

Viewing raw RSS feed?

I use WordPress for several websites. I want to customize one of the RSS feeds and create a template for the outputted data but everytime I click on the feed link (myurl.com/feed) it takes me to a Google page to add it to my Google Reader. I use Google Reader and normally want everything else to default to that, but how can I override ...

Placing a TextView before EditText element in Android layout XML causes EditText not to show

As the title says, every time I put a TextView before an EditText element in a LinearLayout, the EditText does not show. When I don't, it does. I've narrowed the problem down to the TextView's layout_width attribute. If I give it "wrap_content", it works, but doesn't "block" down, and it appears on the same line as the EditText. <?xml...

DataSet column can be NULL but not converted to string ?

I have a string which can be empty if its not empty it is containing a xml document. The problem is null values are allowed in this dataset column of DataType System.String. Error Message:this.MetaData' threw an exception of type 'System.Data.StrongTypingException' base {System.SystemException} = {"The value for column 'MyData' in tabl...

XML - CSV data output: server-client interaction and optimization

Hi gurus, I am planning an application that involves pulling XML data from the server side and manipulating it on the client side before allowing the user to save it as CSV. On the server side, I will use Apache and PHP as the primary service interface, and the data source could be coming from MySQL server and/or Exist database server....

selecting a parcticular element in xml via jquery

can somebody help me select the url from this XML document where the ID = 2. via ajax. <images> <image id=0> <url>images/pic.jpg</url> </image> <image id=1> <url>images/pic.jpg</url> </image> <image id=2> <url>images/pic.jpg</url> </image> </images> I am guessing something like this... But currently it is displaying all the entries i...

Service, but no WSDL

I have to get data from a web service, but they do not publish a WSDL file. My SSIS component won't work without the WSDL. Is it possible for me to create a WSDL file for someone else's Web Service? ...

if xml element exists, exit or skip

how do i check in xml [with php dom] that if a particular element exists, it should not repeat it. for example, if i have an element 'activity', it should check against the xml file if this element exists, and if it does, it will not create it again. in other words, i would like to create the element 'activity' only once in the beginnin...

PHP function for parsing xml into array that doesn't strip nodes with namespaces

I am trying to parse an rss feed that is using the well formed web comment api and having some issues pulling in parts of the XML that contain namespaces. I checked here: http://stackoverflow.com/questions/2483887/php-parsing-xml-file-with-and-without-namespaces but it seems his solution was more for just one specific namespace. Here ...

Is there a tool similar to the Web.config tranformation tool that I can use on xml in general?

I've been having to perform changes to a handful of xml configuration files which is tedious and error prone. I was wondering if there was a tool available like the web.config transformation tool that I could use to transform regular xml with. ...

Python and libxml2: how to iterate in xml nodes with XPATH

I have a problem with retrieving information from a XML tree. My XML has this shape: <?xml version="1.0"?> <records xmlns="http://www.mysyte.com/foo"&gt; <record> <id>first</id> <name>john</name> <papers> <paper>john_1</paper> <paper>john_2</paper> </papers> </record> <record> <id>second</id> <...

SharePoint Designer Keeps turning &#xa; within source code into literal new line.

I am using an if statement that tests the amount of lines in a cell. <xsl:if test="string-length(@Example) - string-length(translate(@Example, '&#xa;', '')) &lt; 10"> When I type in this code and hit save, that code turns into this: <xsl:if test="string-length(@Example) - string-length(translate(@Example, ' ', '')) &lt; 10"> Instea...

how to create xml message in c?

My application is written in c, and I need to create some XML messages to send over HTTP. what's the best way to create XML messages? Thanks! ...

How can I select tags from an SQL XML Query?

How can I retrieve the fields within an XML field in MS SQL? Every query I try does not work as intended whenever I use this XML code: I want to select the AccNumber value. <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSch...

What is the correct way in .NET to encode an XML string for Posting to a URL?

For the first time, I am having to use a vendor's API by posting an XML dataset to a URL. If I encode the dataset using http://meyerweb.com/eric/tools/dencoder/, and manually paste the URL & dataset into a browser, I get a successful response. However, when trying to do the same thing with .NET, I get a response from the vendor API ind...

Have an extra /directory/ in the results of a dynamic link on php page

Here I am again. I hate to be a bother but here's another zinger. I have a custom made shopping cart and have some dynamic links in the page that when served up in a browser will replace $name with the product name and $p with the procuct id number. I'm aiming for a link on the page like this: http://www.something.com/buy/ProductName/38...

What is the fastest way to generate lots of XML data?

I'm working on a Java utility that generates a bunch of XML documents matching a specific DTD using slightly randomized layout generation (so, for example, the document might look like <a><b><c /></b></a> or it might look like <a><b/><b><c>text</c></b></a>. Right now, I've gotten it to the point where I can generate roughly 32,000 docum...

Does VS2010 have an xml schema validator?

Hi I am wondering does VS 2010 have something that I can use to compare an xml document to my schema? I tried a few online tools but my xml document seems to big and my browser just crashes. Thanks ...

Is something wrong with my regex?

Hi I made an XML Schema and I have this in it. <xs:element name="Email"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:pattern value="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"/> </xs:restriction> </xs:simpleType> </xs:element> Some of my emails in one of my XML documen...