xml

How can I import and export data from SQL Server 2005 to XML format?

I am very confused about how SQL Server 2005 supports importing and exporting of XML files. I was thinking that BCP was the way to go. However after reading all of the documentation it seems like there is no way to just take a regular table and export it in XML format. The reason that I am asking is that I am working with a client tha...

Applying XSLT to XML on ASP.NET

I am following the tutorial here: http://www.aspfree.com/c/a/XML/Applying-XSLT-to-XML-Using-ASP.NET/2/ The tutorial shows how one converts xml to html via xslt. Unfortunately, one of the first steps is to "Drag an XML control from toolbox on to the webform". Which section of tools is this and which control are they talking about? ...

Select values from XML field in SQL Server 2008

Just looking at my XML field, my rows look like this: <person><firstName>Jon</firstName><lastName>Johnson</lastName></person> <person><firstName>Kathy</firstName><lastName>Carter</lastName></person> <person><firstName>Bob</firstName><lastName>Burns</lastName></person> Note that these are three rows in my table. I'd like to return a S...

Is XML Serialization really different from XML databinding, and if so, how?

There's a related question What is the preferred Java XML binding framework? In the answer currently ranked 2nd there, the poster drew a distinction between XML Serialization, and Java/XML data binding. As best I can tell, XML data binding means "creating an in-memory object graph from an XML document". And XML Serialization means "cr...

.Net Webservice won't take parameters for XML call

For some reason my webservice does not like the data I'm sending it. I keep getting the following error: System.InvalidOperationException: Request format is invalid: text/xml; charset=utf-8. at System.Web.Services.Protocols.HttpServerProtocol.ReadParameters() at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest() ...

Why can't Eclipse resolve the spring-dwr schema?

Eclipse is showing the following errors in my Spring's applicationContext.xml: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dwr:configuration'. myappservlet-servlet.xml MyApp/src/main/webapp/WEB-INF line 23 XML Problem cvc-complex-type.2.4.c: The matching wildcard is strict, but...

Editing xml files with long lines is really slow in vim. What can I do to fix this?

I edit a lot of xml files with vim. The problem is that, because of the long lines, navigation/editing in vim is extremely slow. Is there something I can do (besides turning off syntax highlighting/filetype plugins and filetype indentation) to be able to edit these files without all that lag? It's really frustrating that a trivial thing...

How to fire a GET request over a pseudo REST service in C#.

I need to communicate with legacy php application. The API is just a php scripts than accepts get requests and return a response as XML. I'd like to write the communication in C#. What would be the best approach to fire a GET request (with many parameters) and then parse result? Ideally I would like to find something that easy as the...

How can I get google earth building mesh data?

Hi I'm making a an application and i would like to import the 3D buildings in google earth that you can find in Chi,NYC,SF, etc. Is there any way to do this? ...

XML and ASP: Retrieve and parse a remote file

I'm building a site on a Windows Server with ASP enabled. I need to retrieve an XML document from another server and return a value in that document. The xml file is small - only one node with a text value. I just need to return that text value. I've never worked with ASP before, and Googling around has led me to some code examples, but ...

Parse an XML string in MySQL

Hi, all. I have a task of parsing a simple XML-formatted string in a MySQL stored procedure. XML looks like this (testing purposes only): <parent> <child>Example 1</child> <child>Example 2</child> </parent> What I need MySQL to do is to produce a result set one row per match. My stored proc code looks like this: DECLARE xmlD...

I want to store instant messages I get on AIM into a hashtable collection in C#.

Can someone provide me some C#.NET code/insight? I'm working on a windows service that logs my instant messages on AIM. Conversations are stored in a XML file, (which also serves as an RSS Feed)... If i get an instant message that says, blog_on - i want it to log my instant messages to the XML file. blog_off - i want it to not log ...

Fastforward and rewind music in XBMC

As I was listening to the Stack Overflow Podcast #54 in XBMC on my XBOX I wanted to skip back a bit and hear something again. To my chagrin the controls for seeking like in the video app weren't working. I then tried to use the seek buttons in the music OSD. No success. I next tried going to visualization mode and using the seek control...

How can I write to XML via Java and display it via HTML?

How can we insert a record into an XML file using Java? How can we display one record from this XML file using HTML? ...

How to use XmlReader class?

I want to save and load my xml data using XmlReader. But I don't know how to use this class. Can you give me a sample code for start? ...

State pattern with SAX

I have to parse some xml with java SAX parser. As I was busy, I saw that the state pattern could be used here. There are clear states and state transitions defined, resembling the structure of the xml document. To implement the state pattern, I have to define a interface (or abstract class). The most obvious interface methods would b...

Official docs for the XML content escaping?

I'm looking for docs on the "official" way to escape stuff in XML. Like the full list of the "&lt;" constructs (whatever they are called) and how to use them. I'm not asking for how to do it, just the official docs (or a good, reliable and correct tutorial). ...

JQuery - Storing ajax response into global variable

Hey All, Im still somewhat of a newbie on jQuery and the ajax scene, but I have an $.ajax request performing a GET to retrieve some XML files (~6KB or less), however for the duration the user spends on that page that XML content should not / will not change (this design I cannot change, I also don't have access to change the XML file as...

e4x query based on sub attributes

I'm trying to execute an E4X query (on the xml below) that will return all "accessor" nodes that contain a "metadata" node with a "name" attribute that equals "Required". I tried... type.accessor.(metadata.@name == "Required") ...but that only works for accessor nodes that have only 1 metadata node. Any clues? <type name="org.sprin...

C# HttpWebRequest - How to disgtinguish between HTML and XML pages without downloading ?

I need to be able to tell if a link (URL) points to an XML file (RSS feed), or a regular HTML file just by looking at the headers, or something similiar (without downloading it) Any good advice for me there ? :) Thanks! Roey ...