xml

PostgreSQL 8.3 data types: xml vs varchar

There's xml data type in Postgres, I never used it before so I'd like to hear opinions. Downsides and upsides vs using regular varchar (or Text) column to store xml. The text I'm going to store is xml, well-formed, UTF-8. No need to search by it (I've read searching by xml is slow). This XML actually is data prepared for PDF generation...

Flex: Replacing a node in a XML object

I have looked at some of the related posts on this subject but i can't figure out how to solve my problem. I guess it has something to do with the fact that its monday. Well, here goes. i have a XML object containing: <root> <page> <text> <style properties=""/> <label> Text one</label> </text> <te...

How does Linq-to-Xml convert objects to strings?

Linq-to-Xml contains lots of methods that allow you to add arbitrary objects to an xml tree. These objects are converted to strings by some means, but I can't seem to find the specification of how this occurs. The conversion I'm referring to is mentioned (but not specified) in MSDN. I happen to need this for javascript interop, but th...

Externalizing Strings n XML files

Is there any way to externalize a string that is inside of a xml file? ...

remove xml declaration from the generated xml document using java

String root = "RdbTunnels"; DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder(); Document document = documentBuilder.newDocument(); Element rootElement = document.createElement(root); document.appendChild(rootElement); Outp...

XML to XML using XSL Problem

I'd like to convert an XML file into another XML file with a different structure using XSL and I'm kindda new to XSL. The input section of the XML goes like this: <set> <object> Value </object> <name> Value </name> <tag> <event> Value </event> <group> Value </group> <other> Value <...

IRS E-File API?

I've been trying to understand how IRS e-file works. Does anyone know if it's a public API, and if so, where I can get information on it? Google has not been helpful. ...

How to call an external webservice in asp.net MVC

I want to call an external webservice. How do I do this in an asp.net mvc program? What options do I have. Does anyone have an example? Thanks. ...

XML links not working inside Flash

Hello, I have an XML which should display a simple link inside of my Flash site: <U><a href='http://dat.erobertparker.com/WAStore/shopdisplayproducts.asp?id=1&amp;cat=Books'&gt;Purchase Here</a></U> I am leaving the link as it may be relevant; it is not a simple path i.e. www.google.com. Anyway, you can check the problem by going to h...

Fast, lightweight XML parser

I have a specific format XML document that I will get pushed. This document will always be the same type so it's very strict. I need to parse this so that I can convert it into JSON (well, a slightly bastardized version so someone else can use it with DOJO). My question is, shall I use a very fast lightweight (no need for SAX, etc.) X...

Iterate through XML nodes that have xmlns attribute declared in a XSL.

I am working on creating an XSL to format some incoming XML from an API I am integrating. The xml I receive looks like: <items> <item xmlns="http://www.tempuri.org/Item.xsd"&gt; <key>value</key> </item> <item> <key>value</key> </item> <item xmlns="http://www.tempuri.org/Item.xsd"&gt; <key>value</key> </item> </i...

How can I replace < and > in the content of xml file using regex?

How can i replace a "<" and a ">" (in the content of xml file) with a matching "&lt;" and "&gt;" (with a pre known set of tags) using a regex? example: <abc>fd<jkh</abc><def>e>e</def> should result with: <abc>fd&lt;jkh</abc><def>e&lt;e</def> it must be done with a regex! (no xml load and such...) ...

Remove xml element with javascript in asp.net c#

How we can remove a xml node in javascript in asp.net C#? i tried this but is given me an error... ScriptManager.RegisterStartupScript(UpdatePanel1,this.GetType(),"RemoveDock", string.Format(@"function _removeDock() { ...

Why is URN one of more popular formats used to uniquely identify the resource?

I somewhat understand that URNs are used to provide unique and location independent name for the resource. Yet I fail to see their usefulness and how exactly they work: a) In order for URN to really be unique, there would have to be some central authority (similar to authority for domain names) where we could register URNs and that way ...

Binding, selecting and looping through XML data with jQuery

I have an XML document thus: <tab id="1"> <name>Individual</name> <coverLevel> <level id="1"> <month>20</month> <week>5</week> </level> <level id="2"> <month>40</month> <week>10</week> </level> <level id="3"> <month>80</mon...

When would we choose Public identifier over System identifier to locate DTD file?

Hi 1) FPIs can be used to identify DTD files. Since as far as I can tell, FPIs are somewhat similar to URNs in that they uniquely identify the resource ( DTD file ), then why don’t we use URNs instead of FPIs to locate DTDs? In other words, what makes FPIs more efficient in identifying DTD files? 2) I also don’t understand the usefuln...

Validate XML via XSD

Hi, I am trying to validate a xml file. The xml file is well-formed, the xsd validates. When I put in data that shouldn't validate, it still validates. I've played with xmlns and nothing seems to works. Bad info still validates. Thanks in advance ...

Badly formated XML generated by XElement.ReplaceWith()

Hi, I am trying to replace a node using ReplaceWith(), but noticed that it results in badly formated XML (missing new lines and indentations). Has anyone has come across this problem before? Code Snippet: [Test] public void Test() { XDocument document; using (var reader = XmlReader.Create("C:\\test.xml")) { // ...

Parse large XML files over a network

I did some quick searching on the site and couldn't seem to find the answer I was looking for so that being said, what are some best practices for passing large xml files across a network. My thoughts on the matter are to stream chunks across the network in manageable segments, however I am looking for other approaches and best practice...

Mixing XML and JSON in RESTful WCF without separate methods

I have a RESTful WCF service that can return XML, JSON, or JSONP, depending on the arguments, e.g. /service.svc/stuff?format=xml or service.svc/stuff?format=json&callback=myCallback. To do this, I've created a custom Behavior, MethodEncoder and MethodEncoderFactory which handle wrapping the JSONP callback and chooses the writer based on ...