xml

linq to xml and ViewList problem

Hello everybody, I seems to run into problem, and not sure how to make it work. I am trying to take data from XML by using linq and the code works, however when i try use this linq data as DataSource for the ListView, i am getting an error. How can I make it work ? How do i convert my var variable to proper variable so ListView with th...

Retrieve value of an xml element in Oracle PL SQL

Does anybody know how to retrieve the values of <ZIPCODE> and <CITY> using PL/SQL? I have followed a tutorial over the net, however, it can retrieve the element names, but not their values. Any of you know what seems to be the problem? I have already consulted Google (the internet's well kept secret) over this but no luck :( <Zipcodes>...

Exchange data between programs written in various languages

I'm writing a small browser game and as I'm not a good designer, I wanted to start with the technical part first and add the user interface later, so I wanted to have the first version include bot support, so everyone could write their own bot and have it play the game. This way, I don't have to care about making graphics for the user in...

How to read all child elements with tag names and their value from a xml file?

I've a xml file in which I'm storing some HTML content in an element tag called <body>. Now I'm trying to read all the HTML content of body tag using XML DOM in JavaScript. I tried this code: var xmlDoc=loadXMLDoc('QID_627.xml'); var bodytag = xmlDoc.getElementsByTagName("body"); document.write(bodytag); but it is showing [object HTM...

How can I disable the security warning when viewing XML in IE?

When I view XML files in Internet Explorer, it does syntax highlighting and provides clickable expand/collapse controls. But for every file I open, I get a yellow warning bar that takes three clicks to dismiss. These are local files, so the security warning shouldn't be necessary. Can it be disabled? ...

Database design help with varying schemas

I work for a billing service that uses some complicated mainframe-based billing software for it's core services. We have all kinds of codes we set up that are used for tracking things: payment codes, provider codes, write-off codes, etc... Each type of code has a completely different set of data items that control what the code does an...

Create page based on xml schema and add data from xml record

Let's say I have a system that stores data for some complex objects in xml. These objects have a weak inheritance relationship: maybe 4 fields common to all of them and then another 20 that are unique to each type of object, say 6 to 8 different types of object. The data that is unique to each object may itself be complex: things lik...

SAX equivalent in .Net

Is there any equivalent for SAX (Java) in .Net? I am aware of XmlReader, but I am looking for a push parser. ...

how to extract data from cocoa iPhone sax xml parsing routine

I'm trying to read in and parse an xml document in an iPhone app. I begin parsing and then use the override method: static void startElementSAX(void *ctx, const xmlChar *localname, const xmlChar *prefix, const xmlChar *URI, int nb_namespaces, const xmlChar **namespaces, int nb_attributes, int nb_defaulted, c...

What is the difference between SGML and XML?

All the Google results suck. ...

how does an objective-c xmlchar data type work

In objective c how does an xmlchar data type work? I can't seem to find any API documentation. Specifically my declaration looks like: const xmlChar **attributes Am I classifying this correctly by saying it's an objective c data type or is it specific to cocoa or just C? ...

Indentation with DOMDocument in PHP

I'm using DOMDocument to generate a new XML file and I would like for the output of the file to be indented nicely so that it's easy to follow for a human reader. For example, when DOMDocument outputs this data: <?xml version="1.0"?> <this attr="that"><foo>lkjalksjdlakjdlkasd</foo><foo>lkjlkasjlkajklajslk</foo></this> I want the XML ...

Square brackets in XML?

In an XML document, how do I treat square brackets (] or [) ? ...

How to write ampersand in node attribude?

I need to have following attribute value in my XML node: CommandLine="copy $(TargetPath) ..\..\&#x0D;&#x0A;echo dummy > dummy.txt" Actually this is part of a .vcproj file generated in VS2008. &#x0D;&#x0A means line break, as there should be 2 separate commands. I'm using Python 2.5 with minidom to parse XML - but unfortunately I don'...

Insert images to XML file

I would like to insert an images within an element the XML file, what is the best way to do this? Would you please suggest some good way to include an images to xml file? ...

Warning message when opening a generated excel file in office 07

I generate an excel file using XML format outlined on stackoverflow in the following post: Generate excel file in .net However, when I open it up in excel 07, I get the following message: The file you are trying to open, "blah.xls", is in a different format than spefied by the file extension. Verify that the file i snot corrup...

WCF Array Serialization

I am using a WCF OperationContract that takes an array of integers as an argument. It is using basicHttpBinding. I've noticed that the generated SOAP from a client generated using Visual Studio "Add Web Reference" includes the xmlns thus: <ids> <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays"&gt;100&lt;/stri...

Populate XDocument from String

I'm working on a little something and I am trying to figure out whether I can load an XDocument from a string. XDocument.Load() seems to take the string passed to it as a path to a physical XML file. I want to try and bypass the step of first having to create the physical XML file and jump straight to populating the XDocument. Any idea...

querying xml store in a text field

I have a sql server 2005 table which has xml store in a text field. I am wondering if there is an easy way (using TSQL) of retrieving the a value from the xml data without doing a line by line parsing of the text? Doing a line-by-line parsing is a possibility because the amount of xml is pretty small. However, if possible I would like ...

Passing Parameters as Xml to a Stored Procedure

I've got a requirement to pass parameters as Xml to my stored procedures. I have a WCF service in the middle tier that makes calls to my data layer which in turn forwards the request to the appropriate stored procedure. The design is that the WCF service is responsible for building the Xml to pass to the Repository. I'm just wondering...