xml

How to break a for-each loop when value is set to prevent a double evaluation?

UPDATE: Improved the explanation so hopefully the problem is clear now :) Hi all! I've got a XML in which transitions of a FSM are declared (and events and states offcourse). Here's a simplified version of the XML which also causes the problem which is described below: <?xml version="1.0" encoding="UTF-8"?> <FSM name="MediaPlayer"> ...

CIM RDF and RDFS

On .NET platform: Has any body used RDFS Validation for CIM RDF/XML Files? Has anybody used RDFS Validation for RDF/XML Files? ...

xsl:cdata elements inside xsl:element

I am trying to get the following output : <name><![CDATA[ SomeNameHere ]]></name> using the following xslt : <xsl:element name="name"> <xsl:cdata> <xsl:value-of select="name"/> </xsl:cdata> </xsl:element> But while compiling I get the following exception : 'xsl:cdata' cannot be a child...

SelectSingleNode returns nothing

I'm testing the SelectSingleNode function to fetch a single node from an XMLNode object in Visual Studio as follows: Dim nsmgr As XmlNamespaceManager = New XmlNamespaceManager(xmlDoc.NameTable) nsmgr.AddNamespace(ndListItems.Prefix, ndListItems.NamespaceURI) Dim dummy As XmlNode = ndListItems.SelectSingleNode("/l...

Erlang xml to tuples and lists

Hi everyone! I'm very excited to be starting my erlang journey, but I've been stuck on this for a few days now and I'm starting to get scared I won't meet my deadline. I'm trying to create key, value pair tuples out of xml. I'd like to make a list out of any nested xml. It seems like a very common thing to do, but I can't find any ex...

Are there hidden advantages to deep XML representations versus shallow representations with intra-document references?

I'm engaged in a debate over XML representations of groups of objects. Given an object hierarchy of entities like Artist, Album and Track, with a high amount of connectivity between the object, what are the pros and cons of formatting the XML representation of a given object graph with deep XML versus using object references. I'm fir...

SQL Server: Import XML from web-server?

Is there support in SQL Server for loading/reading/transferring/importing/fetching/inserting XML, directly from a web-server, into a table? Pretend i want to fetch XML from a web-server, such as: exchange rates published by the Bank of Canada a web-site's current sitemap an rss feed SQL Server 2005 (and newer) has native support fo...

XML file not showing up in browser in Vista

Hello, I have a xml file in my desktop. When I try to open it in my browser it shows a a normal text without wordwrap. I tried to create a webService using VS.net 2008 and when I try to open the WSDL file it shows as blank. Please help ...

Listview error can't run; force close

Hi all! I've managed to show existing user in a textview. But it can only show one at a time so I decided to use listview. package log1.log2; import android.app.ListActivity; import android.database.Cursor; import android.os.Bundle; import android.widget.ArrayAdapter; import android.widget.SimpleCursorAdapter; public class AdminMain...

How to query XML nodes based on the value of the attribute of its parent node

I have an XML which looks something like this: <Library> <Author Name = "JRR Tolkien"> <Book Title = "Lord Of the Rings" /> <Book Title = "The Hobbit" /> </Author> <Author Name = "JK Rowling"> <Book Title = "Harry Potter and the Sorcerers Stone" /> <Book Title = "Harry Potter and the Prisoner of Azkaban" /> </Author> </Library> What i...

Get text from XML file and print it in HTML File

Hi All, I have a simple XML file created in R that consists of the following lines: <statistics> <mean>15.75</mean> <sd>2.83</sd> </statistics> I want to extract the mean and sd to a HTML page, that has a Flash graph and I would like this underneath: Statistics Mean = 15.75 Standard Deviation = 2.83 What is the easiest ...

How to check for XmlDeclaration in XmlDocument C#

What is the more efficient way to check an XmlDocument for an XmlDeclaration node? ...

how to get width in pixels of view with android:layout_width="wrap_content"?

I have view, which have layout_width="wrap_content". If i use view.getWidth() in code, it returns 0. :-( How can I convert width of view "wrap_content" to pixels? ...

How to use fn:replace(string,pattern,replace) in XSLT

How to use fn:replace(string,pattern,replace) in XSLT is it like < fn:replace(...)/>?? ...

Loading XML is VERY slow

Hello, I inherited a data-storage which was using simple text-files to save documents. Documents had some attributes (date, title, and text), and these were encoded in a filename: <date>-<title>.txt, with the body of the file being the text. However in reality Documents in the system have many more attributes, and even more again were...

lxml problem: is there a switch to ignore undefined namespace prefixes?

I'm parsing a non-compliant xml file (Sphinx's[1] xmlpipe2 format) and would like lxml parser to ignore the fact that there are unresolved namespace prefixes. An example of the Sphinx XML: <sphinx:schema> <sphinx:field name="subject"/> <sphinx:field name="content"/> <sphinx:attr name="published" type="timestamp"/...

WCF Returning HTML Instead of XML

Can some one tell me why am I getting the following data in return of WCF service request? I want the formatted XML so that I can parse it. <?xml version="1.0" encoding="utf-8"?><string>&lt;DocumentElement&gt;&#xD; &lt;UT&gt;&#xD; &lt;UserFirstName&gt;z&lt;/UserFirstName&gt;&#xD; &lt;UserLastName&gt;z&lt;/UserLastName&gt;&#xD;...

Correcting Powerpoint 2007 XML Errors

I'm currently writing a process that generates Powerpoint reports programmatically from a given template using the MSXML library via VBScript. The only manipulation of the XML I'm doing is to duplicate slides, insert data into the Excel datatables for charts and a couple of title-text text replacements. I'm testing on 2 templates which a...

Excel Vs XML on Data Upload

I'm trying to upload Excel (2003) file into Sql server 2005. At present we are using SSIS to upload the file into a Temporary table (with defined schema) and then moving the data to their intended location using Stored procedure. This gives lots of errors due to datatype mismatch and sometimes null values are uploaded into table even t...

Using embedded file in VS2008 ASP.NET Project

I have an ASP.NET project and want to include an XML file inside the project to store some relatively static data. To do this I selected "Add File" from the solution context menu and picked my XML file. Having added this to my project, I then wanted to load the XML from within code. I tried the following: XmlDocument xmlDoc = new Xml...