xml

Is there a way I can send a NULL value to a SQL stored proc through XML?

I'm wondering if there is a way I can send a NULL or DBNull.Value from my C# data service to a stored proc through some configuration xml parameter. In the proc, I want to pull some values out of the xml as a bit but because the UI allows for a third state, the bit value coming in from the xml can be NULL in which case I want to ignore ...

IXmlSerializable

Could you guys help me I have a problem with deserialization via IXmlSerializable var ArrayOfAccounts = new Accounts(); //This class structure I'm trying to read Class Accounts:List<Session>{ } Class Shedule{ public DateTime StartAt { get; set; } public DateTime EndAt { get; set; } } Class Session:IXmlSerializable { public strin...

Convert XML to Plain Text

My goal is to build an engine that takes the latest HL7 3.0 CDA documents and make them backward compatible with HL7 2.5 which is a radically different beast. The CDA document is an XML file which when paired with its matching XSL file renders a HTML document fit for display to the end user. In HL7 2.5 I need to get the rendered text, ...

Reference to parent node in XSD?

Hi In current w3c version of XSD, is there a way to refer to parent node or child node, when defining rules for a particular node? To make it more clear, can i add a rule in child node that compares the parent node value and vice versa? Thanks & Regards, Pavan. ...

php,xml,ups shipping: "Cannot view XML input using XSL..." Where's the bug?

Hey, so I'm deploying a shipping calculator using this function, and I'm getting this error only when I use IE. Firefox does just fine with the shipping calculator. I'm unfamiliar with this error, and google searches tell me that it's a problem with the xml format. Problem is: the XML response from UPS's shipping calculation server shoul...

JScript/VBScript error

I'm trying to have a script automatically transform an xml file into several html files using different xslt style sheets. However, whatever I try, I get errors. I've tried it in both VBscript and JScript, and both give me errors. The xml file is 537 KB, and the xsl file is 5 KB. Here's iteration 1 in JScript. This script works for one ...

Can generic XML by parsed as nicely as simple XML in Groovy?

Given a nice, simple XML structure, XmlSlurper() can allow me to read values from it very easily. def xml = "<html><head><title>groovy</title></head></html>" def html = new XmlSlurper().parseText(xml) println html.head.title Is there a way to make this simple tree navigation possible for generic (type-based, etc) XML. Ideally, in t...

How do I store a rating in a song?

I want to be able to store information about a song that has been opened using my application. I would like for the user to be able to give the song a rating and this rating be loaded every time the users opens that file using my application. I also need to know weather I should store the ratings in a database or an xml file. ...

cross-browser standard Xml processing in Java Script

I am trying to figure out how to process XML in java script So i googled for it. The problem is , I don't know whether the tutorials I see will work only on IE. What is the "Standard" way to process Xml data in java script? Edit: Thanks for all your answers. I want to ask another question then. Is there some kind of 3rd party library w...

In java, how do I create my own xml subclassed elements in a DOM returned by 3rd party tools.

So I'm using HTMLCleaner which returns a org.w3c.dom compatible DOM. Now, I want to insert my own subclassed Elements (which implement additional functionality outside the dom) into this dom tree. Is this possible? If you use the Document.createElement(), you can't say that you want it to create your implementation of an element. Ideall...

PHP: Auto-generated XML carriage return entities appear w/ SimpleXML and xpath

I'm using SimpleXML and xpath to read elements from an external UTF-8 XHTML document. I then iteratively echo the output of SimpleXML's asXML() function executed upon each element returned from an xpath selector. But the XML carriage return entity is annoyingly inserted after every line of my code. There aren't any extra characters in th...

jquery for xml parsing

Hello folks, I am trying to use jquery for xml parsing. Snippet of my XML is as follows <ex>Some text here <it>some italic text</it> some more text <it>text more </it> text text <it>some more italic</it>go go</ex> I want to get the text within and tags and display my content as follows Some text here <i>some italic text</i> some...

Design db for questions and answers with tags on a blog page

Use XML files based or SQL server? Which would be more efficient based on storage size, retrieval and performance? ...

XmlAttributeOverrides further customization

XmlAttributeOverrides is a good way to override some attributes for serialization. MSDN says: You can control and augment the serialization of objects found in a DLL, even if you do not have access to the source And I have a question is it possible to implement some custom algorithm with XmlAttributeOverrides? For example if you want t...

How to get XML structure with jquery?

Is it possibble to map the structure of an xml file with jquery? After an ajax call the client gets an xml file, but it doesn't know the file's node structure, how could we reach all of its content? Thanks edited: For examlpe this xml has changing node structure. How could I reconstruct the exact node structure with jquery? <?xml versi...

LINQ to XML when a node does not exist

Hi there, I was writing a generic class to read RSS feed from various source and to consolidate in one collection of object in VB.net. Basically the function - using LINQ to XML - is working properly, but I have a problem when the RSS feed I am trying to read does not contain one of the node (as you know, many of them are optional). I w...

fast and easy way to template xml files in python

Right now I've hard coded the whole xml file in my python script and just doing out.write(), but now it's getting harder to manage because i have multiple types of xml file. What is the easiest and quickest way to setup templating so that I can just give the variable names amd filename? ...

Wondering if there is a .html() equiv that can used for xml ?

$.ajax({ type: "GET", url: "awards.xml", dataType: "xml", success: parseXml }); function parseXml(xml) { I see $("#xml_test").append($(this).find("award").text()); }); returns all the text from my award nodes $("#xml_test").append($(this).find("award").html()); }); my award nodes have some html in them so i was hoping i coul...

Is there any way to make Excel preserve XML attributes in root element?

I've been experimenting with using MS Excel 2007 to edit tabular data stored in an XML file. It does a nice job of importing and even validating the XML data against the schema (xsd file), but when I export, it drops the xmlns, xlmns:xsi, and xsi:schemaLocation attributes from the root element. It also changes the default namespace to an...

Building objects from Google Maps geocode API HttpWebResponse

I'm using the Google Maps API to geocode some addresses. What is the easiest way to build objects using the childnodes of <Placemark> ? I may also have multiple placemarks returned in the same response depending on the level of detail provided in the request. I would like to build multiple objects in those cases and those objects will be...