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...
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...
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...
Is there any way to externalize a string that is inside of a xml file?
...
String root = "RdbTunnels";
DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();
Document document = documentBuilder.newDocument();
Element rootElement = document.createElement(root);
document.appendChild(rootElement);
Outp...
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 <...
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.
...
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.
...
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&cat=Books'>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...
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...
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">
<key>value</key>
</item>
<item>
<key>value</key>
</item>
<item xmlns="http://www.tempuri.org/Item.xsd">
<key>value</key>
</item>
</i...
How can i replace a "<" and a ">" (in the content of xml file) with a matching "<" and ">"
(with a pre known set of tags) using a regex?
example: <abc>fd<jkh</abc><def>e>e</def> should result with:
<abc>fd<jkh</abc><def>e<e</def>
it must be done with a regex! (no xml load and such...)
...
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()
{
...
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 ...
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...
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...
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
...
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"))
{
// ...
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...
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 ...